Package com.wisecoders.dbs.schema
Class DataType
java.lang.Object
com.wisecoders.dbs.diagram.model.AbstractUnit
com.wisecoders.dbs.diagram.model.AbstractTable
com.wisecoders.dbs.schema.DataType
- All Implemented Interfaces:
SyncPrioritizable
,Entity
,TreeUnit
,Unit
,Comparable<AbstractUnit>
- Direct Known Subclasses:
UserDataType
Data type : varchar2, integer, etc. The actual length, precision, decimal are stored by each column apart.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String
static final int
static final int
final com.wisecoders.dbs.config.model.OptionsProperty
static int
static final int
Fields 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 TypeMethodDescriptionint
compareTo
(AbstractUnit unit) createColumn
(String name, DataType type) createRelation
(String name) getDbId()
int
int
int
com.wisecoders.dbs.sys.fx.glyph.Glyph
static com.wisecoders.dbs.sys.fx.glyph.Glyph
getSymbolicGlyph
(int javaType) getTypeString
(DataTypeFormat usage, int length, int decimal, String enumeration, String typeOptions) protected String
getTypeString
(String realName, int length, int decimal, String enumeration, String typeOptions) boolean
boolean
boolean
isArray()
boolean
boolean
boolean
isChar()
boolean
isDate()
boolean
isInet()
boolean
boolean
boolean
boolean
boolean
boolean
isSerial()
boolean
isText()
boolean
isTime()
boolean
boolean
isUUID()
boolean
isView()
void
refresh()
boolean
void
setAliases
(String aliases) void
setDefaultDecimal
(int defaultDecimal) void
setDefaultLength
(int defaultLength) void
setGeneric
(String generic) void
setJavaType
(int javaType) void
setOptions
(String options) void
setOptionsTitle
(String title) void
setPattern
(String pattern) void
setPrecision
(Precision typePrecision) void
setRegExMatchers
(String regExMatchers) void
setUpdateCast
(String updateCast) Methods inherited from class com.wisecoders.dbs.diagram.model.AbstractTable
getChildEntityByPath, getColumnByNameOrPath, getDefaultSyncPriority, getImportedRelations, getNameWithSchemaName, getSyncPriority, hasOneColumnPk, isChildEntity, isChildEntityArray, isReferredInString, ref, setSyncPriority
Methods inherited from class com.wisecoders.dbs.diagram.model.AbstractUnit
fixNull, getByName, getByName, getChildAt, getChildrenCount, 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, 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, getChildAt, getChildrenCount, getTickId, getTouchId, getUnitProperty, setTouchId
Methods inherited from interface com.wisecoders.dbs.diagram.model.Unit
getComment, getCommentTag, getCommentTags, getDisplayName, getParentEntity, is, isMarkedForDeletion, markForDeletion, setComment, setCommentTag, setCommentTags
-
Field Details
-
UNSET
public static int UNSET -
JSON_MAP
public static final int JSON_MAP- See Also:
-
JSON_LIST
public static final int JSON_LIST- See Also:
-
UUID
public static final int UUID- See Also:
-
dbId
-
columns
-
options
public final com.wisecoders.dbs.config.model.OptionsProperty options -
matcherPatterns
-
-
Constructor Details
-
DataType
-
DataType
-
-
Method Details
-
isJsonMap
public boolean isJsonMap() -
isJsonList
public boolean isJsonList() -
isJsonMapOrArray
public boolean isJsonMapOrArray() -
setAliases
-
getAliases
-
getUpdateCast
-
setUpdateCast
-
getPrecision
-
setJavaType
public void setJavaType(int javaType) -
getJavaType
public int getJavaType() -
setDefaultLength
public void setDefaultLength(int defaultLength) -
getDefaultLength
public int getDefaultLength() -
hasDefoLegth
public boolean hasDefoLegth() -
setDefaultDecimal
public void setDefaultDecimal(int defaultDecimal) -
getDefaultDecimal
public int getDefaultDecimal() -
hasDefoDecimal
public boolean hasDefoDecimal() -
setPrecision
-
isTimestamp
public boolean isTimestamp() -
isDate
public boolean isDate() -
isTime
public boolean isTime() -
isUUID
public boolean isUUID() -
isInet
public boolean isInet() -
isBoolean
public boolean isBoolean() -
setOptions
-
setOptionsTitle
-
isBlobOrSimilar
public boolean isBlobOrSimilar() -
isNumeric
public boolean isNumeric() -
isMongoDbObjectId
public boolean isMongoDbObjectId() -
isSerial
public boolean isSerial() -
isText
public boolean isText() -
isChar
public boolean isChar() -
isArray
public boolean isArray() -
setPattern
-
getPattern
-
getTypeString
public String getTypeString(DataTypeFormat usage, int length, int decimal, String enumeration, String typeOptions) -
getTypeString
-
refresh
public void refresh()- Specified by:
refresh
in interfaceEntity
- Specified by:
refresh
in classAbstractUnit
-
getParent
- Specified by:
getParent
in interfaceTreeUnit
- Specified by:
getParent
in classAbstractUnit
-
getSymbolicName
- Specified by:
getSymbolicName
in interfaceUnit
- Specified by:
getSymbolicName
in classAbstractUnit
-
getSymbolicIcon
- Specified by:
getSymbolicIcon
in classAbstractUnit
-
getSymbolicGlyph
public com.wisecoders.dbs.sys.fx.glyph.Glyph getSymbolicGlyph()- Specified by:
getSymbolicGlyph
in classAbstractUnit
-
getSymbolicGlyph
public static com.wisecoders.dbs.sys.fx.glyph.Glyph getSymbolicGlyph(int javaType) -
getEntity
- Specified by:
getEntity
in interfaceUnit
- Overrides:
getEntity
in classAbstractTable
-
compareTo
- Specified by:
compareTo
in interfaceComparable<AbstractUnit>
- Overrides:
compareTo
in classAbstractUnit
-
isView
public boolean isView()- Specified by:
isView
in interfaceEntity
- Specified by:
isView
in classAbstractTable
-
getSchema
- Specified by:
getSchema
in interfaceEntity
- Specified by:
getSchema
in classAbstractTable
-
createColumn
- Specified by:
createColumn
in classAbstractTable
-
getAttributes
- Specified by:
getAttributes
in interfaceEntity
- Specified by:
getAttributes
in classAbstractTable
-
getRelations
- Specified by:
getRelations
in interfaceEntity
- Specified by:
getRelations
in classAbstractTable
-
createRelation
- Specified by:
createRelation
in classAbstractTable
-
sameAs
-
getDbId
- Specified by:
getDbId
in classAbstractTable
-
getBaseTypeName
-
setRegExMatchers
-
getRegExMatchers
-
setGeneric
-
getGeneric
-