Package com.alibaba.druid.sql.ast
Class SQLArrayDataType
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLArrayDataType
-
- All Implemented Interfaces:
SQLDataType,SQLObject
public class SQLArrayDataType extends SQLObjectImpl implements SQLDataType
-
-
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 SQLArrayDataTypeARRYA_CHAR-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLArrayDataType()SQLArrayDataType(SQLDataType componentType)SQLArrayDataType(SQLDataType componentType, DbType dbType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(SQLASTVisitor visitor)SQLArrayDataTypeclone()List<SQLExpr>getArguments()SQLDataTypegetComponentType()DbTypegetDbType()StringgetName()BooleangetWithTimeZone()booleanhasKeyLength()booleanisInt()booleanisNumberic()booleanisString()booleanisUsedForCast()booleanisWithLocalTimeZone()intjdbcType()longnameHashCode64()voidsetComponentType(SQLDataType x)voidsetDbType(DbType dbType)voidsetName(String name)voidsetUsedForCast(boolean usedForCast)voidsetWithLocalTimeZone(boolean value)voidsetWithTimeZone(Boolean value)-
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, toString
-
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, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setParent, setSource
-
-
-
-
Field Detail
-
ARRYA_CHAR
public static final SQLArrayDataType ARRYA_CHAR
-
-
Constructor Detail
-
SQLArrayDataType
public SQLArrayDataType()
-
SQLArrayDataType
public SQLArrayDataType(SQLDataType componentType)
-
SQLArrayDataType
public SQLArrayDataType(SQLDataType componentType, DbType dbType)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceSQLDataType
-
nameHashCode64
public long nameHashCode64()
- Specified by:
nameHashCode64in interfaceSQLDataType
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceSQLDataType
-
getArguments
public List<SQLExpr> getArguments()
- Specified by:
getArgumentsin interfaceSQLDataType
-
getWithTimeZone
public Boolean getWithTimeZone()
- Specified by:
getWithTimeZonein interfaceSQLDataType
-
setWithTimeZone
public void setWithTimeZone(Boolean value)
- Specified by:
setWithTimeZonein interfaceSQLDataType
-
isUsedForCast
public boolean isUsedForCast()
-
setUsedForCast
public void setUsedForCast(boolean usedForCast)
-
isWithLocalTimeZone
public boolean isWithLocalTimeZone()
- Specified by:
isWithLocalTimeZonein interfaceSQLDataType
-
setWithLocalTimeZone
public void setWithLocalTimeZone(boolean value)
- Specified by:
setWithLocalTimeZonein interfaceSQLDataType
-
setDbType
public void setDbType(DbType dbType)
- Specified by:
setDbTypein interfaceSQLDataType
-
getDbType
public DbType getDbType()
- Specified by:
getDbTypein interfaceSQLDataType
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Specified by:
accept0in classSQLObjectImpl
-
clone
public SQLArrayDataType clone()
- Specified by:
clonein interfaceSQLDataType- Specified by:
clonein interfaceSQLObject- Overrides:
clonein classSQLObjectImpl
-
getComponentType
public SQLDataType getComponentType()
-
setComponentType
public void setComponentType(SQLDataType x)
-
jdbcType
public int jdbcType()
- Specified by:
jdbcTypein interfaceSQLDataType
-
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
-
-