Package com.alibaba.druid.sql.ast
Class SQLPivot
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLPivot
-
- All Implemented Interfaces:
SQLObject
- Direct Known Subclasses:
OracleSelectPivotBase
public class SQLPivot extends SQLObjectImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected List<SQLSelectItem>itemsprotected List<SQLExpr>pivotForprotected List<SQLSelectItem>pivotInprotected booleanxml-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLPivot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(SQLASTVisitor v)voidaddItem(SQLSelectItem item)SQLPivotclone()List<SQLSelectItem>getItems()List<SQLExpr>getPivotFor()List<SQLSelectItem>getPivotIn()booleanisXml()voidsetXml(boolean xml)-
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
-
xml
protected boolean xml
-
items
protected final List<SQLSelectItem> items
-
pivotIn
protected final List<SQLSelectItem> pivotIn
-
-
Method Detail
-
getPivotIn
public List<SQLSelectItem> getPivotIn()
-
accept0
protected void accept0(SQLASTVisitor v)
- Specified by:
accept0in classSQLObjectImpl
-
getItems
public List<SQLSelectItem> getItems()
-
addItem
public void addItem(SQLSelectItem item)
-
isXml
public boolean isXml()
-
setXml
public void setXml(boolean xml)
-
clone
public SQLPivot clone()
- Specified by:
clonein interfaceSQLObject- Overrides:
clonein classSQLObjectImpl
-
-