$model

( documentation for Telosys generator version 3.3.0 )


Object giving access to the current model

Since : 2.0.0

Attributes and methods
.allEntites : List

Returns a list containing all the entities defined in the model

.databaseId : int

Returns the ID of the database used to generate the model
A valid ID is >= 0
-1 means undefined

.databaseProductName : String

Returns the product name of the database used to generate the model
This is the product name return by the JDBC meta-data
(e.g. 'Apache Derby')

.description : String

Returns the model description

Since : 3.3.0

.folderName : String

Returns the name of the folder where entities are located

Since : 3.3.0

.getEntityByClassName(String name) : EntityInContext

Returns the entity identified by the given class name
or null if not found

Parameters :
   name : the class name identifying the entity (supposed to be unique)

.getEntityByTableName(String name) : EntityInContext

Returns the entity identified by the given database table name
or null if not found

Parameters :
   name : the table name identifying the entity (the table name)

.hasEntityWithClassName(String name) : boolean

Returns TRUE if the model contains an entity identified by the given class name
else FALSE

Parameters :
   name : the class name identifying the entity

.hasEntityWithTableName(String name) : boolean

Returns TRUE if the model contains an entity identified by the given table name
else FALSE

Parameters :
   name : the table name identifying the entity

.name : String

Returns the model name as defined by file/folder in the project directory

Since : 3.3.0

.numberOfEntities : int

Returns the number of entities defined in the model

.title : String

Returns the model title

Since : 3.3.0

.type : String

Returns the Telosys model type (DSL-MODEL, DB-MODEL, etc)

Since : 3.3.0

.version : String

Returns the Telosys model version

Since : 3.3.0