|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.devaki.nextobjects.workspace.models.BaseModel org.devaki.nextobjects.workspace.models.PhysicalModel
Physical model represent the database as it is
http://www.devaki.org/pdm.html
,
Serialized FormConstructor Summary | |
PhysicalModel(java.lang.String pName)
Construct a new 'PhysicalModel' object |
Method Summary | |
int |
countConstraint()
Return the number of constraint in the model |
int |
countTable()
Return the number of tables in the model |
java.lang.String |
getBestFilename()
Return the best possible filename for save |
Constraint |
getConstraintAt(int at)
Return the constraint identified by the parameter in the list of constraints. |
java.util.Vector |
getConstraints()
Get the list of constraints in the model |
java.util.Vector |
getConstraints(Table t)
Get constraint(s) for the given table |
BaseObject[] |
getModelObjects()
Conveniency method wich return all the objects in the models |
BaseModelView |
getModelView()
Get the model view |
java.lang.String |
getSqlFile()
Get the path for the SQL file generated from this model |
Table |
getTableAt(int at)
Return the table identified by the parameter in the list of tables. |
Table |
getTableForId(java.lang.String pString)
Get table for the given tableCode |
java.util.Vector |
getTables()
Get the list of tables in the model |
void |
setPhysicalView(PhysicalView pView)
Set the model view |
void |
setSqlFile(java.lang.String pSqlFile)
Set the path for the SQL file generated from this model |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PhysicalModel(java.lang.String pName)
pName
- Nae of the modelMethod Detail |
public final java.lang.String getBestFilename()
getBestFilename
in class BaseModel
public final BaseModelView getModelView()
getModelView
in class BaseModel
public final java.util.Vector getTables()
public final java.util.Vector getConstraints()
public final java.util.Vector getConstraints(Table t)
t
- the context table
public final Table getTableForId(java.lang.String pString)
pString
- the table code
public final Table getTableAt(int at)
at
- index
public final Constraint getConstraintAt(int at)
at
- index
public final int countTable()
public final int countConstraint()
public final java.lang.String getSqlFile()
public final void setSqlFile(java.lang.String pSqlFile)
pSqlFile
- filenamepublic final void setPhysicalView(PhysicalView pView)
pView
- the model viewpublic final BaseObject[] getModelObjects()
getModelObjects
in class BaseModel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |