public interface DBRecord extends DBPersistent, java.lang.Comparable, Renderable
DBRecordTables, DBRecordLists and other DBObject
related tool classes.| Modifier and Type | Method and Description |
|---|---|
void |
copyRecordValues(DBRecord otherRecord,
boolean isIncludePK) |
boolean |
existsField(java.lang.String fieldName)
Tells wasCancelled this field exists in this DBObject.
|
int |
getFieldCount()
Returns the number columns of this DBObject including primary key columns
|
java.lang.String[] |
getFieldFullNames()
Returns the full names of all columns in the format table.column
|
java.lang.String |
getFieldIcon(java.lang.String fieldName)
Returns the name for an icon that should be used to render this column.
|
int |
getFieldLength(java.lang.String fieldName)
Returns the length (in number or characters) of the given fieldname.
|
java.lang.String[] |
getFieldNames()
Returns the names of all columns without the table prefix
|
java.lang.String |
getForeignKeyRef(java.lang.String fieldName)
If the given field is a foreign key field then the referenced
fieldname is returned in the format table.column.
|
java.lang.Class |
getJavaType(java.lang.String fieldName)
Returns the java variable type of the given fieldname.
|
int |
getJdbcType(java.lang.String fieldName)
Returns the jdbc-type of the given fieldname.
|
DBObject[] |
getManagedDBObjects()
If the instance is a DBObject then the DBObject itself is returned.
|
<R extends DBRecord> |
getMasterRecord() |
java.lang.String |
getTranslationAppKey()
Returns the main translation key for this record.
|
java.lang.Object |
getValue(java.lang.String fieldName)
Returns the current value of the given fieldname.
|
boolean |
isFieldVirtual(java.lang.String fieldName)
Tells wasCancelled this field is supposed to be editable.
|
boolean |
isForeignKey(java.lang.String fieldName)
Tells wasCancelled this field is a foreign key field.
|
boolean |
isNotNullField(java.lang.String fieldName)
Tells wasCancelled this field is a not null field.
|
boolean |
isPrimaryKey(java.lang.String fieldName)
Tells wasCancelled this field is or is part of the primary key.
|
dbDelete, dbInsert, dbLoad, dbLoad, dbRehash, dbSearch, dbSearch, dbSearch, dbSearch, dbSelect, dbSelect, dbUpdate, exists, getPrimaryKeyCount, getPrimaryKeyValues, getRecordName, hasPrimaryKey, isDirty, setPrimaryKeyValuesdeepClonetoDumpString, toDumpString, toString, toStringgetRenderColor, getRenderIcon, getRenderTextjava.lang.String getTranslationAppKey()
int getFieldCount()
java.lang.String[] getFieldFullNames()
java.lang.String[] getFieldNames()
boolean isPrimaryKey(java.lang.String fieldName)
fieldName - might be a pure column name or in the format table.column -
only the column name is checked!boolean isForeignKey(java.lang.String fieldName)
fieldName - might be a pure column name or in the format table.column -
only the column name is checked!getForeignKeyRef(String)boolean isNotNullField(java.lang.String fieldName)
fieldName - might be a pure column name or in the format table.column -
only the column name is checked!boolean existsField(java.lang.String fieldName)
fieldName - might be a pure column name or in the format table.column -
only the column name is checked!boolean isFieldVirtual(java.lang.String fieldName)
fieldName - can be the pure column name or in the format table.column -
only the column name is checked!java.lang.String getForeignKeyRef(java.lang.String fieldName)
fieldName - The name of the field in the format table.column -
only the column name is checked!java.lang.Object getValue(java.lang.String fieldName)
fieldName - might be a pure column name or in the format table.column -
only the column name is checked!int getJdbcType(java.lang.String fieldName)
fieldName - might be a pure column name or in the format table.column -
only the column name is checked!Typesint getFieldLength(java.lang.String fieldName)
fieldName - might be a pure column name or in the format table.column -
only the column name is checked!java.lang.Class getJavaType(java.lang.String fieldName)
fieldName - might be a pure column name or in the format table.column -
only the column name is checked!java.lang.String getFieldIcon(java.lang.String fieldName)
fieldName - might be a pure column name or in the format table.column -
only the column name is checked!DBObject[] getManagedDBObjects()
<R extends DBRecord> R getMasterRecord()
void copyRecordValues(DBRecord otherRecord, boolean isIncludePK) throws java.lang.Exception
java.lang.ExceptionCopyright © 2014 EsprIT-Systems. All Rights Reserved.