|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.tableeditor.pages.constraints.SQLConstraintsTreeViewerInput
public class SQLConstraintsTreeViewerInput
Given a table, this class can generate a tree (The content) for the constraints tree viewer.
root
|-- Constraint
|
|---Primary Key
|---Unique Constraints
|---Foreign Keys
|---Check Constraints
| Field Summary | |
|---|---|
static java.lang.String |
CHECK_CONSTRAINT_NODE
|
static java.lang.String |
COLUMN_CHECK_CONSTRAINT_NODE
|
static java.lang.String |
CONSTRAINTS_NODE
|
static java.lang.String |
FOREIGN_KEY_NODE
|
static java.lang.String |
PRIMAEY_KEY_NODE
|
static java.lang.String |
UNIQUE_CONSTRAINT_NODE
|
| Constructor Summary | |
|---|---|
SQLConstraintsTreeViewerInput(BaseTable table)
|
|
| Method Summary | |
|---|---|
FolderNode |
getCKFolderNode()
Returns the check constraints folder node |
FolderNode |
getConstraintsNode()
Returns the constraints node |
FolderNode |
getFKFolderNode()
Returns the fk folder node |
LeafNode |
getNode(Constraint constraint)
Searches the tree to find the leaf node |
FolderNode |
getPKFolderNode()
Returns the pk folder node |
FolderNode |
getRoot()
|
FolderNode |
getUniqueFolderNode()
Returns the unique constraints folder node |
void |
notifyChanged(org.eclipse.emf.common.notify.Notification msg)
Will be notified when constraint is added or removed |
void |
resetInput(BaseTable table)
This should be called when the constraints of the table change. ATTN: The folder nodes will be kept, all the child nodes will be re-generated. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONSTRAINTS_NODE
public static final java.lang.String PRIMAEY_KEY_NODE
public static final java.lang.String FOREIGN_KEY_NODE
public static final java.lang.String UNIQUE_CONSTRAINT_NODE
public static final java.lang.String CHECK_CONSTRAINT_NODE
public static final java.lang.String COLUMN_CHECK_CONSTRAINT_NODE
| Constructor Detail |
|---|
public SQLConstraintsTreeViewerInput(BaseTable table)
| Method Detail |
|---|
public void resetInput(BaseTable table)
table - public FolderNode getRoot()
public FolderNode getConstraintsNode()
public FolderNode getPKFolderNode()
public FolderNode getFKFolderNode()
public FolderNode getUniqueFolderNode()
public FolderNode getCKFolderNode()
public LeafNode getNode(Constraint constraint)
constraint -
public void notifyChanged(org.eclipse.emf.common.notify.Notification msg)
notifyChanged in interface ISchemaObjectEditorModelListenermsg - the notification
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||