www.element4solution.com

e4s.db
Class E4DBTypeUsage

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.db.E4DBTypeUsage
All Implemented Interfaces:
E4DBUsage_Intf

public class E4DBTypeUsage
extends E4Object
implements E4DBUsage_Intf

Holds information about usage for a E4DBType type. The usage is a reference to a database table (E4DBTableName) and a column name (E4DBColumnName). Beside this, information about client distinction is provided.

Since:
JDK 1.4
See Also:
E4DBTableName, E4DBColumnName, E4Client, e4s.db.E4DBSelect_Intf#getUsage(), E4DBType.getUsage()

Field Summary
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Constructor Summary
E4DBTypeUsage(E4DBTableName table, boolean has_client, E4DBColumnName column)
           
E4DBTypeUsage(E4DBTypeUsage usage)
           
E4DBTypeUsage(java.lang.String packagedef, E4DBTableName table, boolean has_client, E4DBColumnName column)
           
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
static E4DBTypeUsage[] addUsage(E4DBTypeUsage[] usage, E4DBTypeUsage newUsage)
          Add an element to an array of E4DBTypeUsage elements.
 java.lang.String getPackage()
           
 E4DBColumnName getRefColumnName()
           
 boolean getRefHasClient()
           
 E4DBTableName getRefTableName()
           
static E4DBTypeUsage[] removeUsage(E4DBTypeUsage[] usage, E4DBTableName table)
          Remove an element from an array of E4DBTypeUsage elements.
static E4DBTypeUsage[] removeUsage(E4DBTypeUsage[] usage, E4DBTableName[] table)
          Remove an element from an array of E4DBTypeUsage elements.
static E4DBTypeUsage[] removeUsage(E4DBTypeUsage[] usage, E4DBTableName[] table, E4DBColumnName[] column)
          Remove an element from an array of E4DBTypeUsage elements.
static E4DBTypeUsage[] removeUsage(E4DBTypeUsage[] usage, E4DBTableName table, E4DBColumnName column)
          Remove an element from an array of E4DBTypeUsage elements.
 java.lang.String toString()
           
 
Methods inherited from class e4s.util.E4Object
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

E4DBTypeUsage

public E4DBTypeUsage(E4DBTypeUsage usage)

E4DBTypeUsage

public E4DBTypeUsage(java.lang.String packagedef,
                     E4DBTableName table,
                     boolean has_client,
                     E4DBColumnName column)

E4DBTypeUsage

public E4DBTypeUsage(E4DBTableName table,
                     boolean has_client,
                     E4DBColumnName column)
Method Detail

getPackage

public java.lang.String getPackage()

getRefTableName

public E4DBTableName getRefTableName()
Specified by:
getRefTableName in interface E4DBUsage_Intf

getRefHasClient

public boolean getRefHasClient()
Specified by:
getRefHasClient in interface E4DBUsage_Intf

getRefColumnName

public E4DBColumnName getRefColumnName()
Specified by:
getRefColumnName in interface E4DBUsage_Intf

toString

public java.lang.String toString()
Overrides:
toString in class E4Object

addUsage

public static E4DBTypeUsage[] addUsage(E4DBTypeUsage[] usage,
                                       E4DBTypeUsage newUsage)
Add an element to an array of E4DBTypeUsage elements.

Parameters:
usage - the array of dbType_usage elements, can be null
newUsage - the new element to be added
Returns:
an array which is +1 in size, containing the given array and appended the element
See Also:
AEP_EditingDataDescriptor_Intf.modifyDeleteIntegrityList(e4s.db.E4DBReference[]), #removeUsage()

removeUsage

public static E4DBTypeUsage[] removeUsage(E4DBTypeUsage[] usage,
                                          E4DBTableName table)
Remove an element from an array of E4DBTypeUsage elements. All entries by the specified table will be removed.

Parameters:
usage - the array of dbType_usage elements, can be null
table - the table to be removed, may not be null or empty
Returns:
an array which is propably -1 in size, containing the given array but removed one or more elements
See Also:
AEP_EditingDataDescriptor_Intf.modifyDeleteIntegrityList(e4s.db.E4DBReference[]), #addUsage()

removeUsage

public static E4DBTypeUsage[] removeUsage(E4DBTypeUsage[] usage,
                                          E4DBTableName[] table)
Remove an element from an array of E4DBTypeUsage elements. All entries by the specified table will be removed.

Parameters:
usage - the array of dbType_usage elements, can be null
table - the table to be removed, may not be null or empty
Returns:
an array which is propably -1 in size, containing the given array but removed one or more elements
See Also:
AEP_EditingDataDescriptor_Intf.modifyDeleteIntegrityList(e4s.db.E4DBReference[]), #addUsage()

removeUsage

public static E4DBTypeUsage[] removeUsage(E4DBTypeUsage[] usage,
                                          E4DBTableName table,
                                          E4DBColumnName column)
Remove an element from an array of E4DBTypeUsage elements.

Parameters:
usage - the array of dbType_usage elements, can be null
table - the table to be removed, may not be null or empty
column - null if all columns targeting the specified table shall be removed, or a particular column
Returns:
an array which is propably -1 in size, containing the given array but removed one or more elements
See Also:
AEP_EditingDataDescriptor_Intf.modifyDeleteIntegrityList(e4s.db.E4DBReference[]), #addUsage()

removeUsage

public static E4DBTypeUsage[] removeUsage(E4DBTypeUsage[] usage,
                                          E4DBTableName[] table,
                                          E4DBColumnName[] column)
Remove an element from an array of E4DBTypeUsage elements.

Parameters:
usage - the array of dbType_usage elements, can be null
table - the table to be removed, may not be null or empty
column - null if all columns targeting the specified table shall be removed, or a particular column
Returns:
an array which is propably -1 in size, containing the given array but removed one or more elements
See Also:
AEP_EditingDataDescriptor_Intf.modifyDeleteIntegrityList(e4s.db.E4DBReference[]), #addUsage()

_getSVNVersionString

public static java.lang.String _getSVNVersionString()
Get version info string from subversion.

Returns:
the version info string.
See Also:
E4Util.getRevisionCodeFromSVN(Class)

www.element4solution.com