Class SQLSubqueryTableSource
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.statement.SQLTableSourceImpl
-
- com.alibaba.druid.sql.ast.statement.SQLSubqueryTableSource
-
- All Implemented Interfaces:
SQLObject,SQLTableSource
- Direct Known Subclasses:
OracleSelectSubqueryTableSource
public class SQLSubqueryTableSource extends SQLTableSourceImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected List<SQLName>columnsprotected SQLSelectselect-
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
-
-
Constructor Summary
Constructors Constructor Description SQLSubqueryTableSource()SQLSubqueryTableSource(SQLSelect select)SQLSubqueryTableSource(SQLSelectQuery query)SQLSubqueryTableSource(SQLSelectQuery query, String alias)SQLSubqueryTableSource(SQLSelect select, String alias)SQLSubqueryTableSource(String alias)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(SQLASTVisitor visitor)voidaddColumn(SQLName column)SQLSubqueryTableSourceclone()voidcloneTo(SQLSubqueryTableSource x)booleanequals(Object o)SQLColumnDefinitionfindColumn(long columnNameHash)SQLColumnDefinitionfindColumn(String columnName)SQLTableSourcefindTableSourceWithColumn(long columnNameHash, String columnName, int option)SQLTableSourcefindTableSourceWithColumn(String columnName)static SQLSubqueryTableSourcefixParenthesized(SQLSubqueryTableSource rightTableSourceTmp)List<SQLName>getColumns()SQLSelectgetSelect()inthashCode()SQLObjectresolveColumn(long columnNameHash)voidsetSelect(SQLSelect x)-
Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLTableSourceImpl
aliasHashCode64, computeAlias, containsAlias, findTableSource, findTableSource, 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
-
-
-
-
Constructor Detail
-
SQLSubqueryTableSource
public SQLSubqueryTableSource()
-
SQLSubqueryTableSource
public SQLSubqueryTableSource(String alias)
-
SQLSubqueryTableSource
public SQLSubqueryTableSource(SQLSelect select)
-
SQLSubqueryTableSource
public SQLSubqueryTableSource(SQLSelectQuery query)
-
SQLSubqueryTableSource
public SQLSubqueryTableSource(SQLSelectQuery query, String alias)
-
-
Method Detail
-
getSelect
public SQLSelect getSelect()
-
setSelect
public void setSelect(SQLSelect x)
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Overrides:
accept0in classSQLTableSourceImpl
-
resolveColumn
public SQLObject resolveColumn(long columnNameHash)
- Specified by:
resolveColumnin interfaceSQLTableSource- Overrides:
resolveColumnin classSQLTableSourceImpl
-
cloneTo
public void cloneTo(SQLSubqueryTableSource x)
-
clone
public SQLSubqueryTableSource clone()
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLTableSource- Overrides:
clonein classSQLTableSourceImpl
-
findTableSourceWithColumn
public SQLTableSource findTableSourceWithColumn(String columnName)
- Specified by:
findTableSourceWithColumnin interfaceSQLTableSource- Overrides:
findTableSourceWithColumnin classSQLTableSourceImpl
-
findTableSourceWithColumn
public SQLTableSource findTableSourceWithColumn(long columnNameHash, String columnName, int option)
- Specified by:
findTableSourceWithColumnin interfaceSQLTableSource- Overrides:
findTableSourceWithColumnin classSQLTableSourceImpl
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classSQLTableSourceImpl
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSQLTableSourceImpl
-
addColumn
public void addColumn(SQLName column)
-
findColumn
public SQLColumnDefinition findColumn(long columnNameHash)
- Specified by:
findColumnin interfaceSQLTableSource- Overrides:
findColumnin classSQLTableSourceImpl
-
findColumn
public SQLColumnDefinition findColumn(String columnName)
- Specified by:
findColumnin interfaceSQLTableSource- Overrides:
findColumnin classSQLTableSourceImpl
-
fixParenthesized
public static SQLSubqueryTableSource fixParenthesized(SQLSubqueryTableSource rightTableSourceTmp)
-
-