$model

Object giving access to the lightweight model

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')

.getEntities(List ?) : List


Parameters :
   ? :

.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

.numberOfEntities : int

Returns the number of entities defined in the model