( documentation for Telosys generator version 3.3.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 |
.databaseCatalog : String
Returns the database catalog of the table mapped with this entity |
.databaseComment : String
Returns the database comment of 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 mapped with this entity |
.databaseType : String
Returns the database type of the table mapped with this entity |
.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 |
.getAttributesByCriteria(int crit1, int crit2, int crit3, int crit4) : List of 'attribute' objects
Returns all the attributes of this entity matching the given criteria |
.hasAutoIncrementedKey() : boolean
Returns TRUE if this entity has an 'auto-incremented' key attribute |
.hasCompositePrimaryKey() : boolean
Returns TRUE if this entity has a composite primary key |
.hasLinks() : boolean
Returns TRUE if this entity has at least one link |
.hasPrimaryKey() : boolean
Returns TRUE if this entity has a primary key |
.hasTextAttribute() : boolean
Returns TRUE if this entity has at least one attribute tagged as 'long text' |
.isJoinEntity() : boolean
Returns TRUE if the entity is a 'join entity' |
.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 class name for the entity 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 "" ) |
.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 |
.selectedLinks : List of 'link' objects
Returns a list of all the links selected in the model for the current entity |
.textAttributes : List of 'attribute' objects
Returns the attributes tagged as 'long text' for this entity |