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) intgetName()com.wisecoders.dbs.sys.fx.glyph.GlyphbooleanhasFlag(int flag) booleanbooleanbooleanvoidCall this method to mark a unit (table, column) to be deleted.voidrefresh()voidresetFlag(int flag) voidsetComment(String comment) voidsetFlag(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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
refreshin classAbstractUnit
-
getParent
- Specified by:
getParentin interfaceTreeUnit- Specified by:
getParentin classAbstractUnit
-
getSymbolicIcon
- Specified by:
getSymbolicIconin classAbstractUnit
-
getEntity
-
getTargetEntity
- Specified by:
getTargetEntityin interfaceRelation<Entity>
-
getSourceAttributes
- Specified by:
getSourceAttributesin interfaceRelation<Entity>
-
getTargetAttributes
- Specified by:
getTargetAttributesin interfaceRelation<Entity>
-
getColumnAt
- Specified by:
getColumnAtin interfaceRelation<Entity>
-
getColumnsName
- Specified by:
getColumnsNamein interfaceRelation<Entity>
-
getCascadeText
- Specified by:
getCascadeTextin interfaceRelation<Entity>
-
isAutoReference
public boolean isAutoReference()- Specified by:
isAutoReferencein interfaceRelation<Entity>
-
getLastSourceAttribute
- Specified by:
getLastSourceAttributein interfaceRelation<Entity>
-
getLastTargetAttribute
- Specified by:
getLastTargetAttributein interfaceRelation<Entity>
-
setFlag
public void setFlag(int flag) -
resetFlag
public void resetFlag(int flag) -
hasFlag
public boolean hasFlag(int flag) -
getSymbolicName
- Specified by:
getSymbolicNamein interfaceUnit- Specified by:
getSymbolicNamein classAbstractUnit
-
getSymbolicGlyph
public com.wisecoders.dbs.sys.fx.glyph.Glyph getSymbolicGlyph()- Specified by:
getSymbolicGlyphin classAbstractUnit
-
markForDeletion
public void markForDeletion()Description copied from class:AbstractUnitCall 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:
markForDeletionin interfaceUnit- Overrides:
markForDeletionin classAbstractUnit
-
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletionin interfaceUnit- Overrides:
isMarkedForDeletionin classAbstractUnit
-
setComment
- Specified by:
setCommentin interfaceUnit- Overrides:
setCommentin classAbstractUnit
-
getComment
- Specified by:
getCommentin interfaceUnit- Overrides:
getCommentin classAbstractUnit
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCountin interfaceRelation<Entity>
-
getRelationType
- Specified by:
getRelationTypein interfaceRelation<Entity>
-
getRelationCardinality
- Specified by:
getRelationCardinalityin interfaceRelation<Entity>
-
isDeduced
public boolean isDeduced()
-