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 Stringstatic final intstatic final intfinal com.wisecoders.dbs.config.model.OptionsPropertystatic intstatic final intFields inherited from class com.wisecoders.dbs.diagram.model.AbstractTable
importedRelations, triggersFields 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 TypeMethodDescriptionintcompareTo(AbstractUnit unit) createColumn(String name, DataType type) createRelation(String name) getDbId()intintintcom.wisecoders.dbs.sys.fx.glyph.Glyphstatic com.wisecoders.dbs.sys.fx.glyph.GlyphgetSymbolicGlyph(int javaType) getTypeString(DataTypeFormat usage, int length, int decimal, String enumeration, String typeOptions) protected StringgetTypeString(String realName, int length, int decimal, String enumeration, String typeOptions) booleanbooleanbooleanisArray()booleanbooleanbooleanisChar()booleanisDate()booleanisInet()booleanbooleanbooleanbooleanbooleanbooleanisSerial()booleanisText()booleanisTime()booleanbooleanisUUID()booleanisView()voidrefresh()booleanvoidsetAliases(String aliases) voidsetDefaultDecimal(int defaultDecimal) voidsetDefaultLength(int defaultLength) voidsetGeneric(String generic) voidsetJavaType(int javaType) voidsetOptions(String options) voidsetOptionsTitle(String title) voidsetPattern(String pattern) voidsetPrecision(Precision typePrecision) voidsetRegExMatchers(String regExMatchers) voidsetUpdateCast(String updateCast) Methods inherited from class com.wisecoders.dbs.diagram.model.AbstractTable
getChildEntityByPath, getColumnByNameOrPath, getDefaultSyncPriority, getImportedRelations, getNameWithSchemaName, getSyncPriority, hasOneColumnPk, isChildEntity, isChildEntityArray, isReferredInString, ref, setSyncPriorityMethods 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.wisecoders.dbs.diagram.model.TreeUnit
getByName, getChildAt, getChildrenCount, getTickId, getTouchId, getUnitProperty, setTouchIdMethods 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:
refreshin interfaceEntity- Specified by:
refreshin classAbstractUnit
-
getParent
- Specified by:
getParentin interfaceTreeUnit- Specified by:
getParentin classAbstractUnit
-
getSymbolicName
- Specified by:
getSymbolicNamein interfaceUnit- Specified by:
getSymbolicNamein classAbstractUnit
-
getSymbolicIcon
- Specified by:
getSymbolicIconin classAbstractUnit
-
getSymbolicGlyph
public com.wisecoders.dbs.sys.fx.glyph.Glyph getSymbolicGlyph()- Specified by:
getSymbolicGlyphin classAbstractUnit
-
getSymbolicGlyph
public static com.wisecoders.dbs.sys.fx.glyph.Glyph getSymbolicGlyph(int javaType) -
getEntity
- Specified by:
getEntityin interfaceUnit- Overrides:
getEntityin classAbstractTable
-
compareTo
- Specified by:
compareToin interfaceComparable<AbstractUnit>- Overrides:
compareToin classAbstractUnit
-
isView
public boolean isView()- Specified by:
isViewin interfaceEntity- Specified by:
isViewin classAbstractTable
-
getSchema
- Specified by:
getSchemain interfaceEntity- Specified by:
getSchemain classAbstractTable
-
createColumn
- Specified by:
createColumnin classAbstractTable
-
getAttributes
- Specified by:
getAttributesin interfaceEntity- Specified by:
getAttributesin classAbstractTable
-
getRelations
- Specified by:
getRelationsin interfaceEntity- Specified by:
getRelationsin classAbstractTable
-
createRelation
- Specified by:
createRelationin classAbstractTable
-
sameAs
-
getDbId
- Specified by:
getDbIdin classAbstractTable
-
getBaseTypeName
-
setRegExMatchers
-
getRegExMatchers
-
setGeneric
-
getGeneric
-