|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.devaki.nextobjects.workspace.models.objects.BaseObject org.devaki.nextobjects.workspace.models.objects.BaseLine org.devaki.nextobjects.workspace.models.objects.Constraint
A constraint
Constructor Summary | |
Constraint(Constraint pCst)
Clone a 'Constraint' object |
|
Constraint(PhysicalModel pModel,
Table pPrtClass,
java.util.List pLocalKeys,
Table pChdClass,
java.util.List pDistantKeys)
Construct a new 'Constraint' object |
Method Summary | |
void |
addReference(Column localColumn,
Column foreignColumn)
Add a reference ti the constraint |
java.util.List |
getLocalColumns()
Get the local columns |
ObjectView |
getObjectView()
get the ConstraintView |
java.lang.String |
getOnDelete()
Get the onDelete |
java.lang.String |
getOnUpdate()
Get the onUpdate |
java.util.List |
getReferences()
Get all the foreigns key for this constraint |
boolean |
isSelfRef()
Say if the constraint is self reference a table |
void |
setOnDelete(java.lang.String pDelete)
Set the onDelete |
void |
setOnUpdate(java.lang.String pUpdate)
Set the onUpdate |
Methods inherited from class org.devaki.nextobjects.workspace.models.objects.BaseLine |
getChildClass, getParentClass, setChildClass, setParentClass |
Methods inherited from class org.devaki.nextobjects.workspace.models.objects.BaseObject |
getCode, getColumns, getData, getDataChanged, getDescription, getDynamicTreeNode, getMyModel, getName, getNotes, resetModelStatus, setCode, setColumns, setDataChanged, setDescription, setDynamicTreeNode, setMyModel, setName, setNotes, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Constraint(PhysicalModel pModel, Table pPrtClass, java.util.List pLocalKeys, Table pChdClass, java.util.List pDistantKeys)
pModel
- the context modelpPrtClass
- The parent class, the one who owns the constraint (*)pLocalKeys
- the primary keyspChdClass
- The child class, the one who is master (1)pDistantKeys
- the foreign keyspublic Constraint(Constraint pCst)
pCst
- the constraint to cloneMethod Detail |
public final ObjectView getObjectView()
getObjectView
in class BaseLine
public final java.util.List getReferences()
public final java.util.List getLocalColumns()
public final void addReference(Column localColumn, Column foreignColumn)
localColumn
- local columnforeignColumn
- fioreign columnpublic final boolean isSelfRef()
public final java.lang.String getOnUpdate()
public final java.lang.String getOnDelete()
public final void setOnUpdate(java.lang.String pUpdate)
pUpdate
- onUpdatepublic final void setOnDelete(java.lang.String pDelete)
pDelete
- The new onDelete value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |