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,SQLReplaceable
public class SQLCharacterDataType extends SQLDataTypeImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.alibaba.druid.sql.ast.SQLDataType
SQLDataType.Constants
-
-
Field Summary
Fields Modifier and Type Field Description static StringCHAR_TYPE_BYTEstatic StringCHAR_TYPE_CHARList<SQLCommentHint>hints-
Fields inherited from class com.alibaba.druid.sql.ast.SQLDataTypeImpl
arguments, enumList
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLCharacterDataType(String name)SQLCharacterDataType(String name, int precision)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(SQLASTVisitor visitor)SQLCharacterDataTypeclone()StringgetCharSetName()StringgetCharType()StringgetCollate()List<SQLCommentHint>getHints()intgetLength()booleanisHasBinary()intjdbcType()voidsetCharSetName(String charSetName)voidsetCharType(String charType)voidsetCollate(String collate)voidsetHasBinary(boolean hasBinary)voidsetHints(List<SQLCommentHint> hints)StringtoString()-
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, replace, setDbType, setEnumList, setIndexBy, setName, setUnsigned, setWithLocalTimeZone, setWithTimeZone, setZerofill
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, cloneTo, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setHint, setParent, setSource, 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, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setParent, setSource
-
-
-
-
Field Detail
-
hints
public List<SQLCommentHint> hints
-
CHAR_TYPE_BYTE
public static final String CHAR_TYPE_BYTE
- See Also:
- Constant Field Values
-
CHAR_TYPE_CHAR
public static final String CHAR_TYPE_CHAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCharSetName
public String getCharSetName()
-
setCharSetName
public void setCharSetName(String charSetName)
-
isHasBinary
public boolean isHasBinary()
-
setHasBinary
public void setHasBinary(boolean hasBinary)
-
getCollate
public String getCollate()
-
setCollate
public void setCollate(String collate)
-
getCharType
public String getCharType()
-
setCharType
public void setCharType(String charType)
-
getHints
public List<SQLCommentHint> getHints()
-
setHints
public void setHints(List<SQLCommentHint> hints)
-
getLength
public int getLength()
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Overrides:
accept0in classSQLDataTypeImpl
-
clone
public SQLCharacterDataType clone()
- Specified by:
clonein interfaceSQLDataType- Specified by:
clonein interfaceSQLObject- Overrides:
clonein classSQLDataTypeImpl
-
toString
public String toString()
- Overrides:
toStringin classSQLDataTypeImpl
-
jdbcType
public int jdbcType()
- Specified by:
jdbcTypein interfaceSQLDataType- Overrides:
jdbcTypein classSQLDataTypeImpl
-
-