Package com.wisecoders.dbs.schema
Class ChildEntityRelation
java.lang.Object
com.wisecoders.dbs.diagram.model.AbstractUnit
com.wisecoders.dbs.schema.ChildEntityRelation
- All Implemented Interfaces:
Relation<Entity>
,TreeUnit
,Unit
,Comparable<AbstractUnit>
-
Field Summary
Fields inherited from interface com.wisecoders.dbs.diagram.model.Relation
MANY_TO_MANY, SOURCE_MANDATORY, TARGET_MANDATORY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColumnAt
(int index, boolean atSource) int
getName()
com.wisecoders.dbs.sys.fx.glyph.Glyph
boolean
hasFlag
(int flag) boolean
boolean
boolean
void
Call this method to mark a unit (table, column) to be deleted.void
refresh()
void
resetFlag
(int flag) void
setComment
(String comment) void
setFlag
(int flag) Methods inherited from class com.wisecoders.dbs.diagram.model.AbstractUnit
compareTo, fixNull, getByName, getByName, getChildAt, getChildrenCount, getCommentNotNull, getCommentTag, getCommentTags, getDefaultKey, getDisplayName, getKey, getParentEntity, getPlainName, getPropertyAddOnFolder, getString, getSyncFolders, getTickId, getTouchId, getUnitProperty, has, is, is, isVirtual, matches, ref, removeUnitProperty, rename, sameAs, sameAs, setCommentTag, setCommentTags, setTouchId, setUnitProperty, setVirtual, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.wisecoders.dbs.diagram.model.Unit
getCommentTag, getCommentTags, getDisplayName, getParentEntity, is, ref, setCommentTag, setCommentTags
-
Constructor Details
-
ChildEntityRelation
-
-
Method Details
-
getName
-
refresh
public void refresh()- Specified by:
refresh
in classAbstractUnit
-
getParent
- Specified by:
getParent
in interfaceTreeUnit
- Specified by:
getParent
in classAbstractUnit
-
getSymbolicIcon
- Specified by:
getSymbolicIcon
in classAbstractUnit
-
getEntity
-
getTargetEntity
- Specified by:
getTargetEntity
in interfaceRelation<Entity>
-
getSourceAttributes
- Specified by:
getSourceAttributes
in interfaceRelation<Entity>
-
getTargetAttributes
- Specified by:
getTargetAttributes
in interfaceRelation<Entity>
-
getColumnAt
- Specified by:
getColumnAt
in interfaceRelation<Entity>
-
getColumnsName
- Specified by:
getColumnsName
in interfaceRelation<Entity>
-
getCascadeText
- Specified by:
getCascadeText
in interfaceRelation<Entity>
-
isAutoReference
public boolean isAutoReference()- Specified by:
isAutoReference
in interfaceRelation<Entity>
-
getLastSourceAttribute
- Specified by:
getLastSourceAttribute
in interfaceRelation<Entity>
-
getLastTargetAttribute
- Specified by:
getLastTargetAttribute
in interfaceRelation<Entity>
-
setFlag
public void setFlag(int flag) -
resetFlag
public void resetFlag(int flag) -
hasFlag
public boolean hasFlag(int flag) -
getSymbolicName
- Specified by:
getSymbolicName
in interfaceUnit
- Specified by:
getSymbolicName
in classAbstractUnit
-
getSymbolicGlyph
public com.wisecoders.dbs.sys.fx.glyph.Glyph getSymbolicGlyph()- Specified by:
getSymbolicGlyph
in classAbstractUnit
-
markForDeletion
public void markForDeletion()Description copied from class:AbstractUnit
Call this method to mark a unit (table, column) to be deleted. It can be called from any thread. The effective deletion is done by calling project.refresh() or schema.refresh() on JavaFX GUI thread.- Specified by:
markForDeletion
in interfaceUnit
- Overrides:
markForDeletion
in classAbstractUnit
-
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletion
in interfaceUnit
- Overrides:
isMarkedForDeletion
in classAbstractUnit
-
setComment
- Specified by:
setComment
in interfaceUnit
- Overrides:
setComment
in classAbstractUnit
-
getComment
- Specified by:
getComment
in interfaceUnit
- Overrides:
getComment
in classAbstractUnit
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCount
in interfaceRelation<Entity>
-
getRelationType
- Specified by:
getRelationType
in interfaceRelation<Entity>
-
getRelationCardinality
- Specified by:
getRelationCardinality
in interfaceRelation<Entity>
-
isDeduced
public boolean isDeduced()
-