Package com.wisecoders.dbs.schema
Class Schema
java.lang.Object
com.wisecoders.dbs.diagram.model.AbstractUnit
com.wisecoders.dbs.schema.Schema
- All Implemented Interfaces:
SyncPrioritizable
,TreeUnit
,Unit
,DbUnit
,Comparable<AbstractUnit>
A schema in the database.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Folder<MaterializedView>
final NameFinder
static final String
static final String
final Project
final Folder<UserDataType>
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 TypeMethodDescriptioncloneTable
(Table original, boolean moveImportedFks) int
compareTo
(AbstractUnit unit) createFunction
(String name) createMaterializedView
(String name) createProcedure
(String name) createRule
(String name) createRule
(String name, Table table) createSequence
(String name) createTable
(String name) createTrigger
(String name) createTrigger
(String name, AbstractTable table) createUserDataType
(String name) createView
(String name) generateVirtualForeignKeysWhenReferredIsNotPrimaryKey
(boolean preSelect, boolean referredIsPk, String pkPattern, String fkPattern) getCatalogName
(SchemaMapping mapping) getChildAt
(int idx) int
getDbId()
int
int
getIndexByName
(String name) getMaterializedView
(String name) getOrCreate
(String unitName, Class cls) getOrCreateFunction
(String functionName) getOrCreateMaterializedView
(String tableName) getOrCreateProcedure
(String procedureName) getOrCreateSequence
(String sequenceName) getOrCreateTable
(String tableName) getOrCreateTrigger
(String procedureName) getOrCreateUserDataType
(String sequenceName) getOrCreateView
(String tableName) int
com.wisecoders.dbs.sys.fx.glyph.Glyph
Folder[]
int
getUserDataType
(String typeName) boolean
boolean
isInUse()
ref()
void
refresh()
void
setCatalogName
(String catalogName) void
setOptions
(String options) boolean
setPostScript
(String preScript) boolean
setPreScript
(String preScript) void
setSpecificationOptions
(String specificationOptions) void
setSyncPriority
(int syncPriority) toString()
Methods inherited from class com.wisecoders.dbs.diagram.model.AbstractUnit
fixNull, getByName, getByName, getComment, getCommentNotNull, getCommentTag, getCommentTags, getDefaultKey, getDisplayName, getKey, getName, getParentEntity, getPlainName, getPropertyAddOnFolder, getString, getTickId, getTouchId, getUnitProperty, has, is, is, isMarkedForDeletion, isVirtual, markForDeletion, matches, removeUnitProperty, rename, sameAs, sameAs, setComment, setCommentTag, setCommentTags, setTouchId, setUnitProperty, setVirtual
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
getComment, getCommentTag, getCommentTags, getDisplayName, getParentEntity, is, isMarkedForDeletion, markForDeletion, setComment, setCommentTag, setCommentTags
-
Field Details
-
project
-
tables
-
userDataTypes
-
views
-
materializedViews
-
sequences
-
procedures
-
functions
-
triggers
-
rules
-
children
-
nameFinder
-
PK_TABLE
- See Also:
-
PK_COLUMN
- See Also:
-
-
Constructor Details
-
Schema
Public constructor- Parameters:
project
- it belongs toname
- of the schemacatalogName
- from Jdbc
-
-
Method Details
-
getChildrenCount
public int getChildrenCount()- Specified by:
getChildrenCount
in interfaceTreeUnit
- Overrides:
getChildrenCount
in classAbstractUnit
-
getChildAt
- Specified by:
getChildAt
in interfaceTreeUnit
- Overrides:
getChildAt
in classAbstractUnit
-
getSyncFolders
- Overrides:
getSyncFolders
in classAbstractUnit
-
getEntity
-
getCatalogName
-
getCatalogName
-
getNameWithCatalog
-
getMDCatalog
-
getMDSchema
-
getTable
-
getOrCreateTable
-
getOrCreateView
-
getOrCreateMaterializedView
-
getOrCreateSequence
-
getOrCreateUserDataType
-
getOrCreateFunction
-
getOrCreateProcedure
-
getOrCreateTrigger
-
getOrCreate
-
get
-
getView
-
getMaterializedView
-
getUserDataType
-
getTableOrViewOrMatViewOrUDT
-
getIndexByName
-
refresh
public void refresh()- Specified by:
refresh
in classAbstractUnit
-
getSymbolicName
- Specified by:
getSymbolicName
in interfaceUnit
- Specified by:
getSymbolicName
in classAbstractUnit
- Returns:
- the name to be used
-
getSymbolicIcon
- Specified by:
getSymbolicIcon
in classAbstractUnit
- Returns:
- the icon to be used in tree pane
-
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
-
createTable
-
createUserDataType
-
createView
-
createMaterializedView
-
createSequence
-
createProcedure
-
createRule
-
createRule
-
createFunction
-
createTrigger
-
createTrigger
-
getEntities
-
hasEntities
public boolean hasEntities() -
getRelationCount
public int getRelationCount() -
getForeignKeyCount
public int getForeignKeyCount() -
generateVirtualForeignKeysWhenReferredIsNotPrimaryKey
public List<VirtualForeignKeySuggestion> generateVirtualForeignKeysWhenReferredIsNotPrimaryKey(boolean preSelect, boolean referredIsPk, String pkPattern, String fkPattern) -
getDbId
-
getSchema
-
getSpecificationOptions
-
getOptions
-
setSpecificationOptions
-
setOptions
-
compareTo
- Specified by:
compareTo
in interfaceComparable<AbstractUnit>
- Overrides:
compareTo
in classAbstractUnit
-
setCatalogName
-
toString
- Overrides:
toString
in classAbstractUnit
-
setPreScript
-
getPreScript
-
setPostScript
-
getPostScript
-
ref
- Specified by:
ref
in interfaceUnit
- Overrides:
ref
in classAbstractUnit
-
isInUse
public boolean isInUse() -
setSyncPriority
public void setSyncPriority(int syncPriority) - Specified by:
setSyncPriority
in interfaceSyncPrioritizable
-
getSyncPriority
public int getSyncPriority()- Specified by:
getSyncPriority
in interfaceSyncPrioritizable
-
getDefaultSyncPriority
public int getDefaultSyncPriority()- Specified by:
getDefaultSyncPriority
in interfaceSyncPrioritizable
-
cloneTable
-