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 NameFinderstatic final Stringstatic final Stringfinal Projectfinal 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) intcompareTo(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) intgetDbId()intintgetIndexByName(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) intcom.wisecoders.dbs.sys.fx.glyph.GlyphFolder[]intgetUserDataType(String typeName) booleanbooleanisInUse()ref()voidrefresh()voidsetCatalogName(String catalogName) voidsetOptions(String options) booleansetPostScript(String preScript) booleansetPreScript(String preScript) voidsetSpecificationOptions(String specificationOptions) voidsetSyncPriority(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, setVirtualMethods 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
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:
getChildrenCountin interfaceTreeUnit- Overrides:
getChildrenCountin classAbstractUnit
-
getChildAt
- Specified by:
getChildAtin interfaceTreeUnit- Overrides:
getChildAtin classAbstractUnit
-
getSyncFolders
- Overrides:
getSyncFoldersin 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:
refreshin classAbstractUnit
-
getSymbolicName
- Specified by:
getSymbolicNamein interfaceUnit- Specified by:
getSymbolicNamein classAbstractUnit- Returns:
- the name to be used
-
getSymbolicIcon
- Specified by:
getSymbolicIconin classAbstractUnit- Returns:
- the icon to be used in tree pane
-
getSymbolicGlyph
public com.wisecoders.dbs.sys.fx.glyph.Glyph getSymbolicGlyph()- Specified by:
getSymbolicGlyphin classAbstractUnit
-
getParent
- Specified by:
getParentin interfaceTreeUnit- Specified by:
getParentin 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:
compareToin interfaceComparable<AbstractUnit>- Overrides:
compareToin classAbstractUnit
-
setCatalogName
-
toString
- Overrides:
toStringin classAbstractUnit
-
setPreScript
-
getPreScript
-
setPostScript
-
getPostScript
-
ref
- Specified by:
refin interfaceUnit- Overrides:
refin classAbstractUnit
-
isInUse
public boolean isInUse() -
setSyncPriority
public void setSyncPriority(int syncPriority) - Specified by:
setSyncPriorityin interfaceSyncPrioritizable
-
getSyncPriority
public int getSyncPriority()- Specified by:
getSyncPriorityin interfaceSyncPrioritizable
-
getDefaultSyncPriority
public int getDefaultSyncPriority()- Specified by:
getDefaultSyncPriorityin interfaceSyncPrioritizable
-
cloneTable
-