Package com.wisecoders.dbs.schema
Class View
java.lang.Object
com.wisecoders.dbs.diagram.model.AbstractUnit
com.wisecoders.dbs.diagram.model.AbstractTable
com.wisecoders.dbs.schema.View
- All Implemented Interfaces:
SyncPrioritizable
,Entity
,TreeUnit
,Unit
,DbUnit
,Comparable<AbstractUnit>
- Direct Known Subclasses:
MaterializedView
Database view. The View columns are generated by running the view SQL against the database.
-
Field Summary
FieldsFields inherited from class com.wisecoders.dbs.diagram.model.AbstractTable
importedRelations, triggers
Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateColumn
(String name, DataType type) createRelation
(String name) void
getChildAt
(int idx) int
getDbId()
int
com.wisecoders.dbs.sys.fx.glyph.Glyph
Returns the symbolic icon to be used in the tree node.Returns the name of the node.boolean
isView()
void
refresh()
boolean
sameAs
(AbstractUnit unit, boolean considerRenaming) void
Methods inherited from class com.wisecoders.dbs.diagram.model.AbstractTable
getChildEntityByPath, getColumnByNameOrPath, getEntity, getImportedRelations, getNameWithSchemaName, getSyncPriority, hasOneColumnPk, isChildEntity, isChildEntityArray, isReferredInString, ref, setSyncPriority
Methods inherited from class com.wisecoders.dbs.diagram.model.AbstractUnit
compareTo, fixNull, getByName, getByName, getComment, getCommentNotNull, getCommentTag, getCommentTags, getDefaultKey, getDisplayName, getKey, getName, getParentEntity, getPlainName, getPropertyAddOnFolder, getString, getSyncFolders, getTickId, getTouchId, getUnitProperty, has, is, is, isMarkedForDeletion, isVirtual, markForDeletion, matches, removeUnitProperty, rename, 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.TreeUnit
getByName, getTickId, getTouchId, getUnitProperty, setTouchId
Methods inherited from interface com.wisecoders.dbs.diagram.model.Unit
getComment, getCommentTag, getCommentTags, getDisplayName, getEntity, getParentEntity, is, isMarkedForDeletion, markForDeletion, ref, setComment, setCommentTag, setCommentTags
-
Field Details
-
schema
-
columns
-
-
Constructor Details
-
View
-
-
Method Details
-
getSchema
-
getAttributes
- Specified by:
getAttributes
in interfaceEntity
- Specified by:
getAttributes
in classAbstractTable
-
getRelations
- Specified by:
getRelations
in interfaceEntity
- Specified by:
getRelations
in classAbstractTable
-
getChildrenCount
public int getChildrenCount()- Specified by:
getChildrenCount
in interfaceTreeUnit
- Overrides:
getChildrenCount
in classAbstractUnit
-
getChildAt
- Specified by:
getChildAt
in interfaceTreeUnit
- Overrides:
getChildAt
in classAbstractUnit
-
getSymbolicName
Returns the name of the node.- Specified by:
getSymbolicName
in interfaceUnit
- Specified by:
getSymbolicName
in classAbstractUnit
- Returns:
- the symbolic name
-
getSymbolicIcon
Returns the symbolic icon to be used in the tree node.- Specified by:
getSymbolicIcon
in classAbstractUnit
- Returns:
- the symbolic icon
-
getSymbolicGlyph
public com.wisecoders.dbs.sys.fx.glyph.Glyph getSymbolicGlyph()- Specified by:
getSymbolicGlyph
in classAbstractUnit
-
getParent
- Specified by:
getParent
in interfaceTreeUnit
- Specified by:
getParent
in classAbstractUnit
-
getScript
-
setScript
-
createColumn
- Specified by:
createColumn
in classAbstractTable
-
getColumn
-
isView
public boolean isView()- Specified by:
isView
in interfaceEntity
- Specified by:
isView
in classAbstractTable
-
createRelation
- Specified by:
createRelation
in classAbstractTable
-
deduceVirtualFks
public void deduceVirtualFks() -
refresh
public void refresh()- Specified by:
refresh
in interfaceEntity
- Specified by:
refresh
in classAbstractUnit
-
sameAs
- Overrides:
sameAs
in classAbstractUnit
-
getDbId
- Specified by:
getDbId
in interfaceDbUnit
- Specified by:
getDbId
in classAbstractTable
-
getDefaultSyncPriority
public int getDefaultSyncPriority()- Specified by:
getDefaultSyncPriority
in interfaceSyncPrioritizable
- Overrides:
getDefaultSyncPriority
in classAbstractTable
-