Package de.xima.fc.entities
Class Datatable
- java.lang.Object
-
- de.xima.cmn.dao.model.AEntity<Long>
-
- de.xima.fc.entities.AbstractEntity
-
- de.xima.fc.entities.AbstractLockableEntity
-
- de.xima.fc.entities.Datatable
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>,de.xima.cmn.dao.interfaces.ILockableEntity<Long>,ILockingVersionProviding,INameProviding,IProjektDependent,ITransferable,ITransferableEntity,ITransferableLockableEntity,IUUIDEntity,Serializable,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity public class Datatable extends AbstractLockableEntity implements IUUIDEntity, IProjektDependent, INameProviding
Datatable entity.- Since:
- 8.6.0
- Author:
- Hannes John
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_DATA_TABLE_TEMPLATEAttribute data table templatestatic StringATTR_DB_CONNECTIONAttribute database connectionstatic StringATTR_IDAttribute IDstatic StringATTR_NAMEAttribute namestatic StringATTR_PROJEKTAttribute projectstatic StringATTR_TABLE_NAMEAttribute table namestatic StringATTR_UUIDAttribute UUIDstatic StringCOL_DB_CONNECTIONColumn DB connectionstatic StringCOL_NAMEColumn namestatic StringCOL_PROJECTColumn projectstatic StringCOL_TABLE_NAMETable name to override default naming schemastatic StringCOL_TEMPLATEColumn templatestatic StringCOL_UUIDColumn UUID-
Fields inherited from class de.xima.fc.entities.AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersion
-
Fields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, id
-
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
-
Fields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID
-
-
Constructor Summary
Constructors Constructor Description Datatable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataTableTemplategetDataTableTemplate()StringgetDataTableTemplateString()DatenbankZugriffgetDbConnection()LonggetId()StringgetName()ProjektgetProjekt()StringgetTableName()Retrieves the datatable's table name.StringgetTableNameForExternalDatabase(String name)Generates the table name for an external datatable.StringgetUUID()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.UUIDgetUUIDObject()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.booleanisSystemDatabase()Determines, whether the table is to be stored in the system database.voidsetDataTableTemplate(DataTableTemplate dt)voidsetDataTableTemplateString(String dataTableTemplateString)voidsetDbConnection(DatenbankZugriff dbConnection)DB connectionvoidsetName(String name)NamevoidsetProjekt(Projekt projekt)ProjectvoidsetTableName(String tableName)Table name to override default naming schema.voidsetUUID(String uuid)Sets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(UUID uuid)-
Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toString
-
Methods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId, setId
-
Methods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
COL_UUID
public static final String COL_UUID
Column UUID- See Also:
- Constant Field Values
-
COL_PROJECT
public static final String COL_PROJECT
Column project- See Also:
- Constant Field Values
-
COL_DB_CONNECTION
public static final String COL_DB_CONNECTION
Column DB connection- See Also:
- Constant Field Values
-
COL_NAME
public static final String COL_NAME
Column name- See Also:
- Constant Field Values
-
COL_TABLE_NAME
public static final String COL_TABLE_NAME
Table name to override default naming schema- See Also:
- Constant Field Values
-
COL_TEMPLATE
public static final String COL_TEMPLATE
Column template- See Also:
- Constant Field Values
-
ATTR_ID
public static final String ATTR_ID
Attribute ID- See Also:
- Constant Field Values
-
ATTR_UUID
public static final String ATTR_UUID
Attribute UUID- See Also:
- Constant Field Values
-
ATTR_PROJEKT
public static final String ATTR_PROJEKT
Attribute project- See Also:
- Constant Field Values
-
ATTR_DB_CONNECTION
public static final String ATTR_DB_CONNECTION
Attribute database connection- See Also:
- Constant Field Values
-
ATTR_NAME
public static final String ATTR_NAME
Attribute name- See Also:
- Constant Field Values
-
ATTR_TABLE_NAME
public static final String ATTR_TABLE_NAME
Attribute table name- See Also:
- Constant Field Values
-
ATTR_DATA_TABLE_TEMPLATE
public static final String ATTR_DATA_TABLE_TEMPLATE
Attribute data table template- See Also:
- Constant Field Values
-
-
Method Detail
-
getUUID
public String getUUID()
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
getUUIDin interfaceIUUIDEntity- Returns:
- The UUID of the entity.
-
setUUID
public void setUUID(String uuid)
Description copied from interface:IUUIDEntitySets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
setUUIDin interfaceIUUIDEntity- Parameters:
uuid- The UUID of the entity.
-
getUUIDObject
public UUID getUUIDObject()
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
getUUIDObjectin interfaceIUUIDEntity- Returns:
- The UUID of the entity.
-
setUUIDObject
public void setUUIDObject(UUID uuid)
-
getProjekt
public Projekt getProjekt()
- Specified by:
getProjektin interfaceIProjektDependent
-
getDbConnection
public DatenbankZugriff getDbConnection()
-
getName
public String getName()
- Specified by:
getNamein interfaceINameProviding- Returns:
- The name of this object.
-
getTableName
public String getTableName()
Retrieves the datatable's table name.- Returns:
- table name
-
getDataTableTemplateString
public String getDataTableTemplateString()
-
setDataTableTemplateString
public void setDataTableTemplateString(String dataTableTemplateString)
-
getDataTableTemplate
public DataTableTemplate getDataTableTemplate()
-
setDataTableTemplate
public void setDataTableTemplate(DataTableTemplate dt)
-
isSystemDatabase
public boolean isSystemDatabase()
Determines, whether the table is to be stored in the system database.- Returns:
- true, if system database
-
getTableNameForExternalDatabase
public String getTableNameForExternalDatabase(String name)
Generates the table name for an external datatable. External datatables always have a unique name, due to the datatable ID, which is being appended.- Parameters:
name- name of the datatable- Returns:
- table name
-
setProjekt
public void setProjekt(Projekt projekt)
Project- Specified by:
setProjektin interfaceIProjektDependent
-
setDbConnection
public void setDbConnection(DatenbankZugriff dbConnection)
DB connection
-
setName
public void setName(String name)
Name
-
setTableName
public void setTableName(String tableName)
Table name to override default naming schema. The table name is being excluded in export and will be generated again after import.
-
-