public interface Model
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DM_CLASS_TABLES_PATTERN |
Modifier and Type | Method and Description |
---|---|
void |
addClass(Class c)
Adds a Class to the Model
|
java.lang.String[] |
classNamesToArray()
Returns the names of the classes of the model, as array of strings.
|
Class |
getClass(int index)
Returns a Class by its index
|
Class |
getClass(java.lang.String name)
Returns a Class by its name
|
int |
getClassCount()
Returns the number of classes of the model
|
java.util.Vector |
getClassNames()
Returns the names of the classes of the model, as Vector.
|
ClassVO |
getClassVO(int classId) |
ClassVO |
getClassVO(java.lang.String classname) |
long |
getDescriptionId() |
java.lang.String |
getLang() |
int |
getModelId() |
java.lang.String |
getModelLabel() |
java.lang.String |
getModelName() |
Instance |
getNewInstance(java.lang.String classname)
Rebuilds the model from the database
|
Relation |
getRelation(java.lang.String relationName) |
long |
getVersion() |
boolean |
refresh() |
void |
setVersion(long version) |
java.lang.String |
toString()
Returns a String representation of the Model
|
static final java.lang.String DM_CLASS_TABLES_PATTERN
java.lang.String getModelName()
int getModelId()
long getDescriptionId()
java.lang.String getModelLabel()
java.lang.String getLang()
long getVersion()
java.lang.String[] classNamesToArray()
java.util.Vector getClassNames()
Class getClass(java.lang.String name)
name
- Name of the ClassClass getClass(int index)
index
- Index of the Class in the Modelint getClassCount()
void addClass(Class c) throws java.sql.SQLException, SchemaUpdateException
c
- Class to be addedjava.sql.SQLException
SchemaUpdateException
Instance getNewInstance(java.lang.String classname)
boolean refresh() throws java.sql.SQLException, DataModelException
java.sql.SQLException
DataModelException
java.lang.String toString()
toString
in class java.lang.Object
Relation getRelation(java.lang.String relationName)
ClassVO getClassVO(int classId) throws DataModelException
DataModelException
ClassVO getClassVO(java.lang.String classname) throws java.sql.SQLException, DataModelException
java.sql.SQLException
DataModelException
void setVersion(long version)