|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITableDefinition
This interface represents the definition of data source table.
| Method Summary | |
|---|---|
java.lang.String |
getDataSourceName()
Returns the name of the data source of this table. |
java.lang.String |
getDBName()
Returns the name of this table within the physical database. |
ITableField |
getHistoryField()
Returns the history field (Long text field) which is used to keep the change history information. |
IKey |
getKey(java.lang.String keyName)
Returns the key specified by name |
java.util.Iterator |
getKeys()
Returns the keys defined for this table. |
java.lang.String |
getName()
Returns the name of this table. |
IKey |
getPrimaryKey()
Returns the primary key of this table. |
ITableField |
getRepresentativeField()
Returns the table field which represents a record (row) of this table. |
ITableField |
getTableField(java.lang.String tableFieldName)
Returns the definition of the table field specified by name. |
ITableField |
getTableFieldByDBName(java.lang.String dbTableFieldName)
Returns the definition of the table field specified by its database name. |
java.util.List |
getTableFields()
Returns the definitions of all table fields of this table. |
boolean |
hasKey(IKey key)
Checks whether this table contains the given key. |
boolean |
hasKey(java.lang.String keyName)
Checks whether this table contains a key of the given name. |
boolean |
hasTableField(ITableField tableField)
Checks whether this table contains the given table field. |
boolean |
hasTableField(java.lang.String tableFieldName)
Checks whether this table contains a table field of the given name. |
boolean |
isInternal()
Checks whether this table is an internal table. |
boolean |
isOmitLocking()
Checks whether locking is omitted for entries of this table. |
| Methods inherited from interface de.tif.jacob.core.definition.INamedObjectDefinition |
|---|
getDescription, getProperty |
| Method Detail |
|---|
java.lang.String getName()
getName in interface INamedObjectDefinitionjava.lang.String getDBName()
IKey getPrimaryKey()
null, if the table has not
defined a primary key.
ITableField getTableField(java.lang.String tableFieldName)
throws java.lang.NoSuchFieldException
tableFieldName - the name of the table field
java.lang.NoSuchFieldException - if no table field of the specified name exists for this table
ITableField getTableFieldByDBName(java.lang.String dbTableFieldName)
throws java.lang.NoSuchFieldException
Note: Database field names are handled case insensitive!
dbTableFieldName - the name of the table field
java.lang.NoSuchFieldException - if no table field of the specified name exists for this tableboolean hasTableField(java.lang.String tableFieldName)
tableFieldName - the table field name to check
true if the table field belongs to this table,
otherwise falseboolean hasTableField(ITableField tableField)
tableField - the table field to check
true if the table field belongs to this table,
otherwise falsejava.util.List getTableFields()
List of ITableFieldIKey getKey(java.lang.String keyName)
keyName - the name of the key
boolean hasKey(java.lang.String keyName)
keyName - the key name to check
true if the key belongs to this table,
otherwise falseboolean hasKey(IKey key)
key - the key to check
true if the key belongs to this table,
otherwise falsejava.util.Iterator getKeys()
Iterator of IKeyjava.lang.String getDataSourceName()
boolean isInternal()
true for internal tables, otherwise falseboolean isOmitLocking()
Note: This feature should only be used, if modification performance is really a matter and unsynchronized modification is not a matter.
true if locking is omitted, otherwise
falseITableField getRepresentativeField()
A representative field must not necessarily be unique, but should denote a record in a human understandable manner. E.g. the representative field of the table "person" is "fullname" not "personid".
null, if no such field exists.ITableField getHistoryField()
null if no history field
exists.
|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||