Package com.wisecoders.dbs.schema
Class Sql
java.lang.Object
com.wisecoders.dbs.diagram.model.AbstractUnit
com.wisecoders.dbs.schema.Sql
- All Implemented Interfaces:
SyncPrioritizable,TreeUnit,Unit,Comparable<AbstractUnit>
- Direct Known Subclasses:
AbstractFunction,PropertyAddOn,Script,ScriptAddOn,Trigger
Abstract class storing SQL text.
-
Field Summary
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 TypeMethodDescriptionvoidabstract StringgetDbId()intgetFile()getKey()intgetText()booleanhasFile()booleanhasText()booleanbooleanbooleanisSystem()voidsetConfirmed(boolean keepInModel) voidvoidsetFreshCreated(boolean freshCreated) voidsetIsSystem(boolean isSystem) voidvoidsetLanguage(Language language) voidsetSchedule(String schedule) voidsetSyncPriority(int syncPriority) voidMethods inherited from class com.wisecoders.dbs.diagram.model.AbstractUnit
compareTo, fixNull, getByName, getByName, getChildAt, getChildrenCount, getComment, getCommentNotNull, getCommentTag, getCommentTags, getDefaultKey, getDisplayName, getName, getParent, getParentEntity, getPlainName, getPropertyAddOnFolder, getString, getSymbolicGlyph, getSymbolicIcon, getSymbolicName, getSyncFolders, getTickId, getTouchId, getUnitProperty, has, is, is, isMarkedForDeletion, isVirtual, markForDeletion, matches, ref, refresh, removeUnitProperty, rename, sameAs, sameAs, setComment, setCommentTag, setCommentTags, setTouchId, setUnitProperty, setVirtual, toString
-
Constructor Details
-
Sql
-
-
Method Details
-
getFile
-
hasFile
public boolean hasFile() -
setFile
-
hasText
public boolean hasText() -
getText
-
setText
-
setLanguage
-
getLanguage
-
getDbId
-
setIsSystem
public void setIsSystem(boolean isSystem) -
isSystem
public boolean isSystem() -
getKey
- Overrides:
getKeyin classAbstractUnit- Returns:
- A string to uniquely identify this Unit. Is used for saving if is open or not, its position, etc.
-
setKey
-
setConfirmed
public void setConfirmed(boolean keepInModel) -
isConfirmed
public boolean isConfirmed() -
setSchedule
-
getSchedule
-
cloneFrom
-
setFreshCreated
public void setFreshCreated(boolean freshCreated) -
isFreshCreated
public boolean isFreshCreated() -
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
-