Package com.alibaba.druid.sql.ast
Class SQLStructDataType
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLStructDataType
-
- All Implemented Interfaces:
SQLDataType,SQLObject
public class SQLStructDataType extends SQLObjectImpl implements SQLDataType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSQLStructDataType.Field-
Nested classes/interfaces inherited from interface com.alibaba.druid.sql.ast.SQLDataType
SQLDataType.Constants
-
-
Field Summary
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLStructDataType()SQLStructDataType(DbType dbType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(SQLASTVisitor visitor)SQLStructDataType.FieldaddField(SQLName name, SQLDataType dataType)SQLStructDataTypeclone()List<SQLExpr>getArguments()DbTypegetDbType()List<SQLStructDataType.Field>getFields()StringgetName()BooleangetWithTimeZone()booleanhasKeyLength()booleanisInt()booleanisNumberic()booleanisString()booleanisWithLocalTimeZone()intjdbcType()longnameHashCode64()voidsetDbType(DbType dbType)voidsetName(String name)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
-
-
-
-
Constructor Detail
-
SQLStructDataType
public SQLStructDataType()
-
SQLStructDataType
public SQLStructDataType(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
-
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 SQLStructDataType clone()
- Specified by:
clonein interfaceSQLDataType- Specified by:
clonein interfaceSQLObject- Overrides:
clonein classSQLObjectImpl
-
getFields
public List<SQLStructDataType.Field> getFields()
-
addField
public SQLStructDataType.Field addField(SQLName name, SQLDataType dataType)
-
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
-
-