Package com.wisecoders.dbs.diagram.model
Class AbstractUnit
java.lang.Object
com.wisecoders.dbs.diagram.model.AbstractUnit
- All Implemented Interfaces:
TreeUnit,Unit,Comparable<AbstractUnit>
- Direct Known Subclasses:
AbstractTable,ChildEntity,ChildEntityRelation,Column,ConnectorGroup,Constraint,ForeignKey,Group,Index,Layout,LayoutDepict,Line,Project,Schema,Sequence,Shape,Sql
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(AbstractUnit unit) protected static Stringstatic UnitgetChildAt(int idx) intgetCommentTag(String key) getDisplayName(Diagram diagram) getKey()getName()abstract TreeUnitgetPropertyAddOnFolder(String name) getString(UnitProperty key) abstract com.wisecoders.dbs.sys.fx.glyph.Glyphabstract Stringabstract StringFolder[]intintbooleanhas(UnitProperty key) is(UnitProperty key) is(UnitProperty key, boolean defo) booleanbooleanvoidCall this method to mark a unit (table, column) to be deleted.booleanmatches(AbstractUnit unit) ref()abstract voidrefresh()voidbooleanbooleansameAs(AbstractUnit unit) booleansameAs(AbstractUnit unit, boolean considerRenaming) voidsetComment(String comment) voidsetCommentTag(String key, String value) voidsetCommentTags(Map<String, String> tags) voidsetTouchId(int id) voidsetUnitProperty(UnitProperty key, Object value) voidsetVirtual(boolean virtual) toString()
-
Constructor Details
-
AbstractUnit
-
-
Method Details
-
getName
-
getPlainName
-
setTouchId
public void setTouchId(int id) - Specified by:
setTouchIdin interfaceTreeUnit
-
getTouchId
public int getTouchId()- Specified by:
getTouchIdin interfaceTreeUnit
-
rename
-
toString
-
refresh
public abstract void refresh() -
markForDeletion
public void markForDeletion()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:
markForDeletionin interfaceUnit
-
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletionin interfaceUnit
-
getComment
- Specified by:
getCommentin interfaceUnit
-
getCommentNotNull
-
setComment
- Specified by:
setCommentin interfaceUnit
-
fixNull
-
compareTo
- Specified by:
compareToin interfaceComparable<AbstractUnit>
-
matches
-
getSyncFolders
-
sameAs
-
sameAs
-
getChildrenCount
public int getChildrenCount()- Specified by:
getChildrenCountin interfaceTreeUnit
-
getChildAt
- Specified by:
getChildAtin interfaceTreeUnit
-
getParent
-
getSymbolicName
- Specified by:
getSymbolicNamein interfaceUnit
-
getSymbolicIcon
-
getSymbolicGlyph
public abstract com.wisecoders.dbs.sys.fx.glyph.Glyph getSymbolicGlyph() -
getByName
-
getTickId
public int getTickId() -
getKey
- Returns:
- A string to uniquely identify this Unit. Is used for saving if is open or not, its position, etc.
-
getDefaultKey
-
getParentEntity
- Specified by:
getParentEntityin interfaceUnit
-
getByName
-
setUnitProperty
-
getUnitProperty
- Specified by:
getUnitPropertyin interfaceTreeUnit
-
is
-
is
-
getString
-
has
-
removeUnitProperty
-
getCommentTags
- Specified by:
getCommentTagsin interfaceUnit
-
getCommentTag
- Specified by:
getCommentTagin interfaceUnit
-
setCommentTags
- Specified by:
setCommentTagsin interfaceUnit
-
setCommentTag
- Specified by:
setCommentTagin interfaceUnit
-
ref
-
getDisplayName
- Specified by:
getDisplayNamein interfaceUnit
-
getPropertyAddOnFolder
-
isVirtual
public boolean isVirtual() -
setVirtual
public void setVirtual(boolean virtual)
-