( documentation for Telosys generator version 4.1.0 )
Entity class for the current generation
Provides all information available for an entity as defined in the model :
. attributes information (class fields)
. database mapping
Since : 2.0.0
Attributes and methods |
.attributes : List of 'attribute' objects
Returns all the attributes defined for this entity |
.attributesCount : int
Returns the number of attributes defined for this entity |
.attributesNamesAsString(String separator) : String
Returns all the attributes names as a string. |
.attributesNamesAsString(String separator, String prefix, String suffix) : String
Returns all the attributes names as a string. |
.autoincrementedKeyAttribute : 'attribute' object
Returns the attribute used as the autoincremented key |
.context : String
Returns the 'context' to which the entity belongs |
.databaseCatalog : String
Returns the 'database catalog' of the table mapped with this entity |
.databaseComment : String
Returns the 'database comment' for the table mapped with this entity |
.databaseForeignKeys : List of 'foreign keys' objects
Returns all the database foreign keys defined for this entity |
.databaseForeignKeysCount : int
Returns the number of database foreign keys defined for this entity |
.databaseSchema : String
Returns the 'database schema' of the table mapped with this entity |
.databaseTable : String
Returns the 'database table name' mapped with this entity in the model |
.databaseTablespace : String
Returns the 'database tablespace' |
.databaseType : String
Returns the real database type for the table mapped with this entity |
.domain : String
Returns the 'domain' to which the entity belongs |
.fullName : String
Returns the full class name for the entity (ie : "my.package.MyClass" ) |
.getAttributeByColumnName(String columnName) : 'attribute' object
Returns the attribute associated with the given database column name |
.getAttributeByName(String attributeName) : 'attribute' object
Returns the attribute associated with the given name |
.getAttributesByCriteria(int crit1, int crit2, int crit3, int crit4) : List of 'attribute' objects
Returns all the attributes of this entity matching the given criteria |
.hasAttribute(String attributeName) : boolean
Returns TRUE if the entity has an attribute with the given name |
.hasAutoIncrementedKey() : boolean
Returns TRUE if this entity has an 'auto-incremented' key attribute |
.hasCollections() : boolean
Returns TRUE if this entity has at least one collection |
.hasCompositePrimaryKey() : boolean
Returns TRUE if this entity has a composite primary key |
.hasContext() : boolean
Returns TRUE if the entity belongs to a 'context' |
.hasDatabaseCatalog() : boolean
Returns TRUE if the entity has a 'database catalog' explicitly defined in the model |
.hasDatabaseComment() : boolean
Returns TRUE if the entity has a 'database comment' explicitly defined in the model |
.hasDatabaseSchema() : boolean
Returns TRUE if the entity has a 'database schema' explicitly defined in the model |
.hasDatabaseTable() : boolean
Returns TRUE if this entity has a 'database table name' explicitly defined in the model |
.hasDatabaseTablespace() : boolean
Returns TRUE if the entity has a 'database tablespace' explicitly defined in the model |
.hasDomain() : boolean
Returns TRUE if the entity belongs to a 'domain' |
.hasForeignKeys() : boolean
Returns TRUE if this entity has at least one Foreign Key |
.hasGeneratedKey() : boolean
Returns TRUE if this entity has a key with an 'auto-generated' value. |
.hasLinks() : boolean
Returns TRUE if this entity has at least one link |
.hasPrimaryKey() : boolean
Returns TRUE if this entity has a primary key |
.hasSuperClass() : boolean
Returns TRUE if the entity has a 'super class' (if its class extends another class) |
.hasTag(String tagName) : boolean
Returns TRUE if a tag is defined with the given name |
.hasTextAttribute() : boolean
Returns TRUE if this entity has at least one attribute tagged as 'long text' |
.isAbstract() : boolean
Returns TRUE if the entity class is abstract |
.isAggregateRoot() : boolean
Returns TRUE if the entity is an 'aggregate root' |
.isDatabaseView() : boolean
Returns TRUE if the entity data comes from a 'database view' |
.isInMemoryRepository() : boolean
Returns TRUE if entity occurrences are stored in memory ( in a 'in-memory repository' ) |
.isJoinEntity() : boolean
Returns TRUE if the entity is marked as '@JoinEntity' |
.isReadOnly() : boolean
Returns TRUE if the entity occurrences are 'read only' |
.isTableType() : boolean
Returns TRUE if the database type of the entity is 'TABLE' |
.isViewType() : boolean
Returns TRUE if the database type of the entity is 'VIEW' |
.keyAttribute : Instance of 'attribute'
Returns the unique attribute used as the Primary Key for this entity. |
.keyAttributes : List of 'attribute' objects
Returns the attributes used in the Primary Key for this entity |
.keyAttributesCount : int
Returns the number of attributes used in the Primary Key for this entity |
.keyAttributesNamesAsString(String separator) : String
Returns the key attributes names as a string. |
.keyAttributesNamesAsString(String separator, String prefix, String suffix) : String
Returns the key attributes names as a string. |
.links : List of 'link' objects
Returns a list of all the links defined for the current entity |
.linksCount : int
Returns the number of links defined in the entity |
.name : String
Returns the entity class name without the package ( ie : "MyClass" ) |
.nonKeyAttributes : List of 'attribute' objects
Returns the attributes NOT used in the Primary Key for this entity |
.nonKeyAttributesCount : int
Returns the number of attributes NOT used in the Primary Key for this entity |
.nonKeyAttributesNamesAsString(String separator) : String
Returns the 'non key' attributes names as a string. |
.nonKeyAttributesNamesAsString(String separator, String prefix, String suffix) : String
Returns the 'non key' attributes names as a string. |
.nonTextAttributes : List of 'attribute' objects
Returns the attributes NOT tagged as 'long text' for this entity |
.package : String
Returns the package name (or void) for the entity ( ie : "my.package" or "" ) |
.referencedEntities : List of 'entity' objects
Returns a list containing all entities referenced by the current entity |
.referencedEntitiesForAllLevels : List of 'entity' objects
Returns a list containing all entities referenced by the current entity |
.referencedEntityTypes() : List
Returns a list of 'simple type' for all the entities referenced by the current entity |
.referencedEntityTypes(List attributes) : List
Returns a list of 'simple type' for each entity referenced by the given attributes |
.references : List of 'reference' objects
Returns a list containing all references hold by the current entity |
.referencesInDepth : List of 'reference' objects
Returns a list containing all references hold by the current entity |
.selectedLinks : List of 'link' objects
Returns a list of all the links selected in the model for the current entity |
.sqlPrimaryKeyColumns : List of strings
Returns a list of SQL column names for all the attributes making up the Primary Key |
.sqlPrimaryKeyColumnsAsString : String
Returns a string containing SQL column names for all the attributes making up the Primary Key |
.sqlTableName : String
Returns the database table name for the given entity |
.superClass : String
Returns the 'super class' extended by the entity class |
.tagValue(String tagName) : String
Returns the value held by the given tag name |
.tagValue(String tagName, String defaultValue) : String
Returns the value held by the given tag name |
.tagValueAsBoolean(String tagName, boolean defaultValue) : boolean
Returns the boolean value held by the given tag name |
.tagValueAsInt(String tagName, int defaultValue) : int
Returns the integer value held by the given tag name |
.textAttributes : List of 'attribute' objects
Returns the attributes tagged as 'long text' for this entity |