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
Fields 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 void
accept0
(SQLASTVisitor visitor) clone()
getHints()
int
boolean
int
jdbcType()
void
setCharSetName
(String charSetName) void
setCharType
(String charType) void
setCollate
(String collate) void
setHasBinary
(boolean hasBinary) void
setHints
(List<SQLCommentHint> hints) toString()
Methods inherited from class com.alibaba.druid.sql.ast.SQLDataTypeImpl
addArgument, cloneTo, equals, getArguments, getDbType, getIndexBy, getName, getWithTimeZone, hashCode, hasKeyLength, isInt, isNumberic, isString, isUnsigned, isWithLocalTimeZone, isZerofill, nameHashCode64, setDbType, setIndexBy, setName, setUnsigned, setWithLocalTimeZone, setWithTimeZone, setZerofill
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
finalize, getClass, 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
-
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:
accept0
in classSQLDataTypeImpl
-
clone
- Specified by:
clone
in interfaceSQLDataType
- Specified by:
clone
in interfaceSQLObject
- Overrides:
clone
in classSQLDataTypeImpl
-
toString
- Overrides:
toString
in classSQLDataTypeImpl
-
jdbcType
public int jdbcType()- Specified by:
jdbcType
in interfaceSQLDataType
- Overrides:
jdbcType
in classSQLDataTypeImpl
-