|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Model
This interface declares the methods needed to implement an OMS Object Model. A Model offers methods to get the Class objects conforming the OMS Object Model. and methods to add new Class objects to the model.
Field Summary | |
---|---|
static java.lang.String |
DM_CLASS_TABLES_PATTERN
|
Method Summary | |
---|---|
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()
|
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 |
Field Detail |
---|
static final java.lang.String DM_CLASS_TABLES_PATTERN
Method Detail |
---|
java.lang.String getModelName()
int getModelId()
long getDescriptionId()
java.lang.String getModelLabel()
long getVersion()
java.lang.String[] classNamesToArray()
java.util.Vector getClassNames()
Class getClass(java.lang.String name)
name
- Name of the Class
Class getClass(int index)
index
- Index of the Class in the Model
int getClassCount()
void addClass(Class c) throws java.sql.SQLException, SchemaUpdateException
c
- Class to be added
java.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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |