Class RelationNodeImpl
java.lang.Object
ch.tocco.nice2.dbrefactoring.impl.model.AbstractTreeNode
ch.tocco.nice2.dbrefactoring.impl.model.ModelElementNodeImpl
ch.tocco.nice2.dbrefactoring.impl.model.RelationNodeImpl
- All Implemented Interfaces:
ModelElementNode
,ModelElementNode.Relation
,TreeNode
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.dbrefactoring.api.model.ModelElementNode
ModelElementNode.Entity, ModelElementNode.Relation
-
Constructor Summary
ConstructorDescriptionRelationNodeImpl
(DatabaseTypeMap typeMap, ModuleNodeImpl parent, RelationModel model) RelationNodeImpl
(DatabaseTypeMap typeMap, ModuleNodeImpl parent, RelationModel model, boolean removed) -
Method Summary
Methods inherited from class ch.tocco.nice2.dbrefactoring.impl.model.ModelElementNodeImpl
getModel, getParent
Methods inherited from class ch.tocco.nice2.dbrefactoring.impl.model.AbstractTreeNode
getName, getParentNode, visitChildren, visitChildren, visitParents, visitParents
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.dbrefactoring.api.model.ModelElementNode
getParent
Methods inherited from interface ch.tocco.nice2.dbrefactoring.api.model.TreeNode
getName, getParentNode, visitChildren, visitChildren, visitParents, visitParents
-
Constructor Details
-
RelationNodeImpl
public RelationNodeImpl(DatabaseTypeMap typeMap, ModuleNodeImpl parent, RelationModel model, boolean removed) -
RelationNodeImpl
-
-
Method Details
-
getRelationModel
- Specified by:
getRelationModel
in interfaceModelElementNode.Relation
- Returns:
- the relation model this node represents
-
getConstraintInfos
- Specified by:
getConstraintInfos
in interfaceModelElementNode.Relation
- Returns:
- all constraints this relation implies. these are either one
ConstraintInfo.ForeignKey
or aConstraintInfo.JoinTable
with its twoConstraintInfo.ForeignKey
s.
-
isRemoved
public boolean isRemoved()- Specified by:
isRemoved
in interfaceModelElementNode.Relation
-
getShortDescription
- Specified by:
getShortDescription
in interfaceTreeNode
-
getChildren
- Specified by:
getChildren
in interfaceTreeNode
- Overrides:
getChildren
in classAbstractTreeNode
-
toString
-