Class SQLWithSubqueryClause.Entry
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.statement.SQLTableSourceImpl
-
- com.alibaba.druid.sql.ast.statement.SQLWithSubqueryClause.Entry
-
- All Implemented Interfaces:
SQLObject,SQLReplaceable,SQLTableSource
- Direct Known Subclasses:
OracleWithSubqueryEntry
- Enclosing class:
- SQLWithSubqueryClause
public static class SQLWithSubqueryClause.Entry extends SQLTableSourceImpl implements SQLReplaceable
-
-
Field Summary
Fields Modifier and Type Field Description protected List<SQLName>columnsprotected SQLExprexprprotected booleanprefixAliasprotected SQLStatementreturningStatementprotected SQLSelectsubQuery-
Fields inherited from class com.alibaba.druid.sql.ast.statement.SQLTableSourceImpl
alias, aliasHashCode64, flashback, hints, needAsTokenForAlias, pivot, unpivot
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(SQLASTVisitor visitor)SQLWithSubqueryClause.Entryclone()voidcloneTo(SQLWithSubqueryClause.Entry x)booleanequals(Object o)SQLTableSourcefindTableSourceWithColumn(long columnNameHash, String columnName, int option)List<SQLName>getColumns()SQLExprgetExpr()SQLStatementgetReturningStatement()SQLSelectgetSubQuery()inthashCode()booleanisPrefixAlias()booleanreplace(SQLExpr expr, SQLExpr target)SQLObjectresolveColumn(long columnNameHash)voidsetExpr(SQLExpr expr)voidsetPrefixAlias(boolean prefixAlias)voidsetReturningStatement(SQLStatement returningStatement)voidsetSubQuery(SQLSelect subQuery)-
Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLTableSourceImpl
aliasHashCode64, computeAlias, containsAlias, findColumn, findColumn, findTableSource, findTableSource, findTableSourceWithColumn, findTableSourceWithColumn, findTableSourceWithColumn, getAlias, getAlias2, getFlashback, getHints, getHintsSize, getPivot, getUnpivot, isNeedAsTokenForAlias, setAlias, setFlashback, setHints, setNeedAsTokenForAlias, setPivot, setUnpivot
-
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
finalize, getClass, 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
-
Methods inherited from interface com.alibaba.druid.sql.ast.statement.SQLTableSource
resolveColum
-
-
-
-
Field Detail
-
subQuery
protected SQLSelect subQuery
-
returningStatement
protected SQLStatement returningStatement
-
expr
protected SQLExpr expr
-
prefixAlias
protected boolean prefixAlias
-
-
Method Detail
-
cloneTo
public void cloneTo(SQLWithSubqueryClause.Entry x)
-
resolveColumn
public SQLObject resolveColumn(long columnNameHash)
- Specified by:
resolveColumnin interfaceSQLTableSource- Overrides:
resolveColumnin classSQLTableSourceImpl
-
replace
public boolean replace(SQLExpr expr, SQLExpr target)
- Specified by:
replacein interfaceSQLReplaceable
-
clone
public SQLWithSubqueryClause.Entry clone()
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLTableSource- Overrides:
clonein classSQLTableSourceImpl
-
getExpr
public SQLExpr getExpr()
-
setExpr
public void setExpr(SQLExpr expr)
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Overrides:
accept0in classSQLTableSourceImpl
-
getSubQuery
public SQLSelect getSubQuery()
-
setSubQuery
public void setSubQuery(SQLSelect subQuery)
-
getReturningStatement
public SQLStatement getReturningStatement()
-
setReturningStatement
public void setReturningStatement(SQLStatement returningStatement)
-
findTableSourceWithColumn
public SQLTableSource findTableSourceWithColumn(long columnNameHash, String columnName, int option)
- Specified by:
findTableSourceWithColumnin interfaceSQLTableSource- Overrides:
findTableSourceWithColumnin classSQLTableSourceImpl
-
isPrefixAlias
public boolean isPrefixAlias()
-
setPrefixAlias
public void setPrefixAlias(boolean prefixAlias)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classSQLTableSourceImpl
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSQLTableSourceImpl
-
-