Package com.alibaba.druid.sql.ast
Class SQLOrderBy
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLOrderBy
-
- All Implemented Interfaces:
SQLObject,SQLReplaceable
public final class SQLOrderBy extends SQLObjectImpl implements SQLReplaceable
-
-
Field Summary
Fields Modifier and Type Field Description protected List<SQLSelectOrderByItem>items-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLOrderBy()SQLOrderBy(SQLExpr expr)SQLOrderBy(SQLExpr expr, SQLOrderingSpecification type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(SQLASTVisitor v)voidaddItem(SQLExpr item)voidaddItem(SQLExpr expr, SQLOrderingSpecification type)voidaddItem(SQLSelectOrderByItem item)SQLOrderByclone()protected SQLSelectOrderByItemcreateItem()booleanequals(Object o)List<SQLSelectOrderByItem>getItems()inthashCode()booleanisSiblings()booleanreplace(SQLExpr expr, SQLExpr target)voidsetSiblings(boolean siblings)-
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
-
items
protected final List<SQLSelectOrderByItem> items
-
-
Constructor Detail
-
SQLOrderBy
public SQLOrderBy()
-
SQLOrderBy
public SQLOrderBy(SQLExpr expr)
-
SQLOrderBy
public SQLOrderBy(SQLExpr expr, SQLOrderingSpecification type)
-
-
Method Detail
-
addItem
public void addItem(SQLSelectOrderByItem item)
-
addItem
public void addItem(SQLExpr item)
-
getItems
public List<SQLSelectOrderByItem> getItems()
-
isSiblings
public boolean isSiblings()
-
setSiblings
public void setSiblings(boolean siblings)
-
accept0
protected void accept0(SQLASTVisitor v)
- Specified by:
accept0in classSQLObjectImpl
-
addItem
public void addItem(SQLExpr expr, SQLOrderingSpecification type)
-
replace
public boolean replace(SQLExpr expr, SQLExpr target)
- Specified by:
replacein interfaceSQLReplaceable
-
createItem
protected SQLSelectOrderByItem createItem()
-
clone
public SQLOrderBy clone()
- Specified by:
clonein interfaceSQLObject- Overrides:
clonein classSQLObjectImpl
-
-