Package com.alibaba.druid.sql.ast
Class SQLDataTypeImpl
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLDataTypeImpl
- All Implemented Interfaces:
SQLDataType,SQLDbTypedObject,SQLObject
- Direct Known Subclasses:
OracleDataTypeIntervalDay,OracleDataTypeIntervalYear,OracleFunctionDataType,OracleProcedureDataType,SQLCharacterDataType,SQLRecordDataType,SQLUnionDataType
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.alibaba.druid.sql.ast.SQLDataType
SQLDataType.Constants -
Field Summary
FieldsFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
ConstructorsConstructorDescriptionSQLDataTypeImpl(String name) SQLDataTypeImpl(String name, int precision) SQLDataTypeImpl(String name, int precision, int scale) SQLDataTypeImpl(String name, SQLListExpr enumList) SQLDataTypeImpl(String name, SQLExpr arg) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept0(SQLASTVisitor visitor) voidaddArgument(SQLExpr argument) clone()voidbooleangetName()inthashCode()booleanbooleanisInt()booleanbooleanisString()booleanbooleanbooleanintjdbcType()longvoidvoidsetEnumList(SQLListExpr enumList) voidvoidvoidsetUnsigned(boolean unsigned) voidsetWithLocalTimeZone(boolean withLocalTimeZone) voidsetWithTimeZone(Boolean withTimeZone) voidsetZerofill(boolean zerofill) 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, putAttribute, setHint, setParent, setSourceColumn, setSourceLineMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, putAttribute, setParent
-
Field Details
-
arguments
-
enumList
-
-
Constructor Details
-
SQLDataTypeImpl
public SQLDataTypeImpl() -
SQLDataTypeImpl
-
SQLDataTypeImpl
-
SQLDataTypeImpl
-
SQLDataTypeImpl
-
SQLDataTypeImpl
-
-
Method Details
-
accept0
- Specified by:
accept0in classSQLObjectImpl
-
getName
- Specified by:
getNamein interfaceSQLDataType
-
nameHashCode64
public long nameHashCode64()- Specified by:
nameHashCode64in interfaceSQLDataType
-
setName
- Specified by:
setNamein interfaceSQLDataType
-
getEnumList
-
setEnumList
-
getArguments
- Specified by:
getArgumentsin interfaceSQLDataType
-
addArgument
-
equals
-
hashCode
public int hashCode() -
getWithTimeZone
- Specified by:
getWithTimeZonein interfaceSQLDataType
-
setWithTimeZone
- Specified by:
setWithTimeZonein interfaceSQLDataType
-
isWithLocalTimeZone
public boolean isWithLocalTimeZone()- Specified by:
isWithLocalTimeZonein interfaceSQLDataType
-
setWithLocalTimeZone
public void setWithLocalTimeZone(boolean withLocalTimeZone) - Specified by:
setWithLocalTimeZonein interfaceSQLDataType
-
getDbType
- Specified by:
getDbTypein interfaceSQLDataType- Specified by:
getDbTypein interfaceSQLDbTypedObject
-
jdbcType
public int jdbcType()- Specified by:
jdbcTypein interfaceSQLDataType
-
setDbType
- Specified by:
setDbTypein interfaceSQLDataType
-
clone
- Specified by:
clonein interfaceSQLDataType- Specified by:
clonein interfaceSQLObject- Overrides:
clonein classSQLObjectImpl
-
cloneTo
-
toString
- Overrides:
toStringin classSQLObjectImpl
-
isUnsigned
public boolean isUnsigned() -
setUnsigned
public void setUnsigned(boolean unsigned) -
isZerofill
public boolean isZerofill() -
setZerofill
public void setZerofill(boolean zerofill) -
getIndexBy
-
setIndexBy
-
isInt
public boolean isInt()- Specified by:
isIntin interfaceSQLDataType
-
isNumberic
public boolean isNumberic()- Specified by:
isNumbericin interfaceSQLDataType
-
isString
public boolean isString()- Specified by:
isStringin interfaceSQLDataType
-
hasKeyLength
public boolean hasKeyLength()- Specified by:
hasKeyLengthin interfaceSQLDataType
-