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 TypeMethodDescriptionvoid
abstract String
getDbId()
int
getFile()
getKey()
int
getText()
boolean
hasFile()
boolean
hasText()
boolean
boolean
boolean
isSystem()
void
setConfirmed
(boolean keepInModel) void
void
setFreshCreated
(boolean freshCreated) void
setIsSystem
(boolean isSystem) void
void
setLanguage
(Language language) void
setSchedule
(String schedule) void
setSyncPriority
(int syncPriority) void
Methods 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:
getKey
in 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:
setSyncPriority
in interfaceSyncPrioritizable
-
getSyncPriority
public int getSyncPriority()- Specified by:
getSyncPriority
in interfaceSyncPrioritizable
-
getDefaultSyncPriority
public int getDefaultSyncPriority()- Specified by:
getDefaultSyncPriority
in interfaceSyncPrioritizable
-