Package com.wisecoders.dbs.diagram.model
Class AbstractTable
java.lang.Object
com.wisecoders.dbs.diagram.model.AbstractUnit
com.wisecoders.dbs.diagram.model.AbstractTable
- All Implemented Interfaces:
SyncPrioritizable
,Entity
,TreeUnit
,Unit
,Comparable<AbstractUnit>
Entities are representable. They store the attributes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from interface com.wisecoders.dbs.dbms.sync.engine.nodes.SyncPrioritizable
CHANGE, COMMENT, CREATE_CLUSTERED_INDEX, CREATE_COLUMNS, CREATE_CONSTRAINT, CREATE_FOREIGN_KEY, CREATE_FUNCTIONS, CREATE_INDEX, CREATE_PLSQL, CREATE_SCHEMA, CREATE_SEQUENCES, CREATE_TABLES, CREATE_TRIGGERS, CREATE_USER_DATA_TYPES, CREATE_VIEWS, DROP, DROP_CONSTRAINT, DROP_FOREIGN_KEY, DROP_LAST, DROP_PLSQL, DROP_VIEW, FINAL, NO_PRIORITY, RENAME
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractTable
(String name) The constructor is called by the parent Folder -
Method Summary
Modifier and TypeMethodDescriptionabstract Column
createColumn
(String name, DataType type) abstract ForeignKey
createRelation
(String name) getChildEntityByPath
(String name) getColumnByNameOrPath
(String name) abstract String
getDbId()
int
abstract Folder<ForeignKey>
abstract Schema
int
boolean
boolean
boolean
boolean
isReferredInString
(String someName) abstract boolean
isView()
ref()
void
setSyncPriority
(int syncPriority) Methods inherited from class com.wisecoders.dbs.diagram.model.AbstractUnit
compareTo, fixNull, getByName, getByName, getChildAt, getChildrenCount, getComment, getCommentNotNull, getCommentTag, getCommentTags, getDefaultKey, getDisplayName, getKey, getName, getParent, getParentEntity, getPlainName, getPropertyAddOnFolder, getString, getSymbolicGlyph, getSymbolicIcon, getSymbolicName, getSyncFolders, getTickId, getTouchId, getUnitProperty, has, is, is, isMarkedForDeletion, isVirtual, markForDeletion, matches, refresh, removeUnitProperty, rename, sameAs, sameAs, setComment, 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.Entity
getName, isVirtual, refresh, rename
Methods inherited from interface com.wisecoders.dbs.diagram.model.TreeUnit
getByName, getChildAt, getChildrenCount, getParent, getTickId, getTouchId, getUnitProperty, setTouchId
Methods inherited from interface com.wisecoders.dbs.diagram.model.Unit
getComment, getCommentTag, getCommentTags, getDisplayName, getParentEntity, getSymbolicName, is, isMarkedForDeletion, markForDeletion, setComment, setCommentTag, setCommentTags
-
Field Details
-
importedRelations
-
triggers
-
-
Constructor Details
-
AbstractTable
The constructor is called by the parent Folder- Parameters:
name
- of the unit
-
-
Method Details
-
getChildEntityByPath
-
getColumnByNameOrPath
-
isView
public abstract boolean isView() -
getDbId
-
isChildEntity
public boolean isChildEntity()- Specified by:
isChildEntity
in interfaceEntity
-
isChildEntityArray
public boolean isChildEntityArray()- Specified by:
isChildEntityArray
in interfaceEntity
-
getSchema
-
createColumn
-
getNameWithSchemaName
- Specified by:
getNameWithSchemaName
in interfaceEntity
-
getAttributes
- Specified by:
getAttributes
in interfaceEntity
-
getRelations
- Specified by:
getRelations
in interfaceEntity
-
getImportedRelations
- Specified by:
getImportedRelations
in interfaceEntity
-
getEntity
-
createRelation
-
isReferredInString
-
hasOneColumnPk
public boolean hasOneColumnPk() -
ref
- Specified by:
ref
in interfaceUnit
- Overrides:
ref
in classAbstractUnit
-
getSyncPriority
public int getSyncPriority()- Specified by:
getSyncPriority
in interfaceSyncPrioritizable
-
setSyncPriority
public void setSyncPriority(int syncPriority) - Specified by:
setSyncPriority
in interfaceSyncPrioritizable
-
getDefaultSyncPriority
public int getDefaultSyncPriority()- Specified by:
getDefaultSyncPriority
in interfaceSyncPrioritizable
-