Package com.alibaba.druid.sql.ast
Class SQLPartitionSingle
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLPartition
-
- com.alibaba.druid.sql.ast.SQLPartitionSingle
-
- All Implemented Interfaces:
SQLObject
- Direct Known Subclasses:
MysqlPartitionSingle,OraclePartitionSingle
public class SQLPartitionSingle extends SQLPartition
-
-
Field Summary
Fields Modifier and Type Field Description protected SQLExprlocalityprotected SQLNamenameprotected List<SQLSubPartition>subPartitionsprotected SQLExprsubPartitionsCountprotected SQLNametablespaceprotected SQLPartitionValuevalues-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLPartitionSingle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(SQLASTVisitor visitor)voidaddSubPartition(SQLSubPartition partition)SQLPartitionSingleclone()SQLExprgetLocality()SQLNamegetName()List<SQLSubPartition>getSubPartitions()SQLExprgetSubPartitionsCount()SQLNamegetTablespace()SQLPartitionValuegetValues()voidsetLocality(SQLExpr x)voidsetName(SQLName name)voidsetSubPartitionsCount(SQLExpr subPartitionsCount)voidsetTablespace(SQLName tablespace)voidsetValues(SQLPartitionValue values)-
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
-
-
-
-
Field Detail
-
name
protected SQLName name
-
subPartitionsCount
protected SQLExpr subPartitionsCount
-
subPartitions
protected List<SQLSubPartition> subPartitions
-
values
protected SQLPartitionValue values
-
tablespace
protected SQLName tablespace
-
locality
protected SQLExpr locality
-
-
Method Detail
-
getLocality
public SQLExpr getLocality()
-
setLocality
public void setLocality(SQLExpr x)
-
getTablespace
public SQLName getTablespace()
-
setTablespace
public void setTablespace(SQLName tablespace)
-
getName
public SQLName getName()
-
setName
public void setName(SQLName name)
-
getSubPartitionsCount
public SQLExpr getSubPartitionsCount()
-
setSubPartitionsCount
public void setSubPartitionsCount(SQLExpr subPartitionsCount)
-
getValues
public SQLPartitionValue getValues()
-
setValues
public void setValues(SQLPartitionValue values)
-
getSubPartitions
public List<SQLSubPartition> getSubPartitions()
-
addSubPartition
public void addSubPartition(SQLSubPartition partition)
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Overrides:
accept0in classSQLPartition
-
clone
public SQLPartitionSingle clone()
- Specified by:
clonein interfaceSQLObject- Overrides:
clonein classSQLPartition
-
-