Class SQLColumnDefinition
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.statement.SQLColumnDefinition
- All Implemented Interfaces:
SQLDbTypedObject
,SQLObject
,SQLObjectWithDataType
,SQLReplaceable
,SQLTableElement
public class SQLColumnDefinition
extends SQLObjectImpl
implements SQLTableElement, SQLObjectWithDataType, SQLReplaceable, SQLDbTypedObject
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected SQLAnnIndex
protected SQLExpr
protected boolean
protected SQLExpr
protected SQLExpr
protected SQLExpr
protected final List<SQLColumnConstraint>
protected SQLDataType
protected DbType
protected SQLExpr
protected SQLExpr
protected SQLExpr
protected boolean
protected Boolean
protected SQLExpr
protected SQLExpr
protected SQLColumnDefinition.Identity
protected SQLExpr
protected SQLName
protected SQLExpr
protected SQLExpr
protected boolean
protected int
protected Boolean
protected AutoIncrementType
protected SQLExpr
protected boolean
protected Boolean
protected SQLExpr
protected boolean
protected boolean
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
accept0
(SQLASTVisitor visitor) void
addConstraint
(SQLColumnConstraint constraint) clone()
boolean
getName()
int
getRely()
getStep()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isStored()
boolean
boolean
int
jdbcType()
long
boolean
void
void
void
setAutoIncrement
(boolean autoIncrement) void
setCharsetExpr
(SQLExpr charsetExpr) void
void
setComment
(SQLExpr comment) void
setComment
(String comment) void
setCompression
(SQLCharExpr compression) void
setDataType
(SQLDataType dataType) void
void
setDefaultExpr
(SQLExpr defaultExpr) void
void
setDelimiterTokenizer
(SQLExpr delimiterTokenizer) void
setDisableIndex
(boolean disableIndex) void
void
setEncode
(SQLCharExpr encode) void
void
void
setIdentity
(SQLColumnDefinition.Identity identity) void
setJsonIndexAttrsExpr
(SQLExpr jsonIndexAttrsExpr) void
void
void
setNlpTokenizer
(SQLExpr nlpTokenizer) void
void
setOnUpdate
(SQLExpr onUpdate) void
setPreSort
(boolean preSort) void
setPreSortOrder
(int preSortOrder) void
void
setSequenceType
(AutoIncrementType sequenceType) void
void
setStorage
(SQLExpr storage) void
setStored
(boolean stored) void
setUnitCount
(SQLExpr unitCount) void
setUnitIndex
(SQLExpr unitIndex) void
setValidate
(Boolean validate) void
void
setVirtual
(boolean virtual) void
setVisible
(boolean visible) void
simplify()
toString()
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, output, putAttribute, setHint, setParent, setSourceColumn, setSourceLine
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParent
-
Field Details
-
dbType
-
name
-
dataType
-
defaultExpr
-
constraints
-
comment
-
enable
-
validate
-
rely
-
autoIncrement
protected boolean autoIncrement -
onUpdate
-
format
-
storage
-
charsetExpr
-
collateExpr
-
asExpr
-
stored
protected boolean stored -
virtual
protected boolean virtual -
visible
protected boolean visible -
sequenceType
-
preSort
protected boolean preSort -
preSortOrder
protected int preSortOrder -
identity
-
generatedAlawsAs
-
delimiter
-
delimiterTokenizer
-
nlpTokenizer
-
valueType
-
disableIndex
protected boolean disableIndex -
jsonIndexAttrsExpr
-
annIndex
-
-
Constructor Details
-
SQLColumnDefinition
public SQLColumnDefinition()
-
-
Method Details
-
getIdentity
-
setIdentity
-
getEnable
-
setEnable
-
getValidate
-
setValidate
-
getRely
-
setRely
-
getName
-
getColumnName
-
nameHashCode64
public long nameHashCode64() -
getNameAsString
-
setName
-
setName
-
getDataType
- Specified by:
getDataType
in interfaceSQLObjectWithDataType
-
jdbcType
public int jdbcType() -
setDataType
- Specified by:
setDataType
in interfaceSQLObjectWithDataType
-
getDefaultExpr
-
setDefaultExpr
-
getConstraints
-
isPrimaryKey
public boolean isPrimaryKey() -
isOnlyPrimaryKey
public boolean isOnlyPrimaryKey() -
isPartitionBy
public boolean isPartitionBy() -
addConstraint
-
accept0
- Specified by:
accept0
in classSQLObjectImpl
-
getComment
-
setComment
-
setComment
-
isVirtual
public boolean isVirtual() -
setVirtual
public void setVirtual(boolean virtual) -
isStored
public boolean isStored() -
setStored
public void setStored(boolean stored) -
getCharsetExpr
-
setCharsetExpr
-
getCollateExpr
-
setCollateExpr
-
getAsExpr
-
setAsExpr
-
isAutoIncrement
public boolean isAutoIncrement() -
setAutoIncrement
public void setAutoIncrement(boolean autoIncrement) -
getOnUpdate
-
setOnUpdate
-
getFormat
-
setFormat
-
getStorage
-
setStorage
-
replace
- Specified by:
replace
in interfaceSQLReplaceable
-
setUnitCount
-
computeAlias
-
clone
- Specified by:
clone
in interfaceSQLObject
- Specified by:
clone
in interfaceSQLTableElement
- Overrides:
clone
in classSQLObjectImpl
-
getDbType
- Specified by:
getDbType
in interfaceSQLDbTypedObject
-
setDbType
-
simplify
public void simplify() -
containsNotNullConstaint
public boolean containsNotNullConstaint() -
getGeneratedAlawsAs
-
setGeneratedAlawsAs
-
isVisible
public boolean isVisible() -
setVisible
public void setVisible(boolean visible) -
getDelimiter
-
isDisableIndex
public boolean isDisableIndex() -
setDisableIndex
public void setDisableIndex(boolean disableIndex) -
setDelimiter
-
getDelimiterTokenizer
-
setDelimiterTokenizer
-
getNlpTokenizer
-
setNlpTokenizer
-
getValueType
-
setValueType
-
isPreSort
public boolean isPreSort() -
setPreSort
public void setPreSort(boolean preSort) -
getPreSortOrder
public int getPreSortOrder() -
setPreSortOrder
public void setPreSortOrder(int preSortOrder) -
getJsonIndexAttrsExpr
-
setJsonIndexAttrsExpr
-
getAnnIndex
-
setAnnIndex
-
getSequenceType
-
setSequenceType
-
toString
- Overrides:
toString
in classSQLObjectImpl
-
getUnitCount
-
getUnitIndex
-
setUnitIndex
-
getNplTokenizer
-
setNplTokenizer
-
getStep
-
setStep
-
getMappedBy
-
getMappedByDirect
-
getColProperties
-
getEncode
-
setEncode
-
getCompression
-
setCompression
-
getColPropertiesDirect
-