Class SQLCharacterDataType
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLDataTypeImpl
com.alibaba.druid.sql.ast.statement.SQLCharacterDataType
- All Implemented Interfaces:
SQLDataType,SQLDbTypedObject,SQLObject
-
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.SQLDataTypeImpl
arguments, enumListFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
ConstructorsConstructorDescriptionSQLCharacterDataType(String name) SQLCharacterDataType(String name, int precision) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept0(SQLASTVisitor visitor) clone()getHints()intbooleanintjdbcType()voidsetCharSetName(String charSetName) voidsetCharType(String charType) voidsetCollate(String collate) voidsetHasBinary(boolean hasBinary) voidsetHints(List<SQLCommentHint> hints) toString()Methods inherited from class com.alibaba.druid.sql.ast.SQLDataTypeImpl
addArgument, cloneTo, equals, getArguments, getDbType, getEnumList, getIndexBy, getName, getWithTimeZone, hashCode, hasKeyLength, isInt, isNumberic, isString, isUnsigned, isWithLocalTimeZone, isZerofill, nameHashCode64, setDbType, setEnumList, setIndexBy, setName, setUnsigned, setWithLocalTimeZone, setWithTimeZone, setZerofillMethods 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
-
hints
-
CHAR_TYPE_BYTE
- See Also:
-
CHAR_TYPE_CHAR
- See Also:
-
-
Constructor Details
-
SQLCharacterDataType
-
SQLCharacterDataType
-
-
Method Details
-
getCharSetName
-
setCharSetName
-
isHasBinary
public boolean isHasBinary() -
setHasBinary
public void setHasBinary(boolean hasBinary) -
getCollate
-
setCollate
-
getCharType
-
setCharType
-
getHints
-
setHints
-
getLength
public int getLength() -
accept0
- Overrides:
accept0in classSQLDataTypeImpl
-
clone
- Specified by:
clonein interfaceSQLDataType- Specified by:
clonein interfaceSQLObject- Overrides:
clonein classSQLDataTypeImpl
-
toString
- Overrides:
toStringin classSQLDataTypeImpl
-
jdbcType
public int jdbcType()- Specified by:
jdbcTypein interfaceSQLDataType- Overrides:
jdbcTypein classSQLDataTypeImpl
-