Class SQLTableSourceImpl
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.statement.SQLTableSourceImpl
-
- All Implemented Interfaces:
SQLObject,SQLTableSource
- Direct Known Subclasses:
DB2IntermediateResultTableSource,MySqlUpdateTableSource,SQLAdhocTableSource,SQLExprTableSource,SQLGeneratedTableSource,SQLJoinTableSource,SQLLateralViewTableSource,SQLSubqueryTableSource,SQLUnionQueryTableSource,SQLUnnestTableSource,SQLValuesTableSource,SQLWithSubqueryClause.Entry
public abstract class SQLTableSourceImpl extends SQLObjectImpl implements SQLTableSource
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringaliasprotected longaliasHashCode64protected SQLExprflashbackprotected List<SQLHint>hintsprotected booleanneedAsTokenForAliasprotected SQLPivotpivotprotected SQLUnpivotunpivot-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLTableSourceImpl()SQLTableSourceImpl(String alias)
-
Method Summary
-
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
-
SQLTableSourceImpl
public SQLTableSourceImpl()
-
SQLTableSourceImpl
public SQLTableSourceImpl(String alias)
-
-
Method Detail
-
isNeedAsTokenForAlias
public boolean isNeedAsTokenForAlias()
-
setNeedAsTokenForAlias
public void setNeedAsTokenForAlias(boolean needAsTokenForAlias)
-
getAlias
public String getAlias()
- Specified by:
getAliasin interfaceSQLTableSource
-
getAlias2
public String getAlias2()
-
setAlias
public void setAlias(String alias)
- Specified by:
setAliasin interfaceSQLTableSource
-
getHintsSize
public int getHintsSize()
-
getHints
public List<SQLHint> getHints()
- Specified by:
getHintsin interfaceSQLTableSource
-
clone
public SQLTableSource clone()
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLTableSource- Overrides:
clonein classSQLObjectImpl
-
computeAlias
public String computeAlias()
- Specified by:
computeAliasin interfaceSQLTableSource
-
getFlashback
public SQLExpr getFlashback()
- Specified by:
getFlashbackin interfaceSQLTableSource
-
setFlashback
public void setFlashback(SQLExpr flashback)
- Specified by:
setFlashbackin interfaceSQLTableSource
-
containsAlias
public boolean containsAlias(String alias)
- Specified by:
containsAliasin interfaceSQLTableSource
-
aliasHashCode64
public long aliasHashCode64()
- Specified by:
aliasHashCode64in interfaceSQLTableSource
-
findColumn
public SQLColumnDefinition findColumn(String columnName)
- Specified by:
findColumnin interfaceSQLTableSource
-
findColumn
public SQLColumnDefinition findColumn(long columnNameHash)
- Specified by:
findColumnin interfaceSQLTableSource
-
resolveColumn
public SQLObject resolveColumn(long columnNameHash)
- Specified by:
resolveColumnin interfaceSQLTableSource
-
findTableSourceWithColumn
public SQLTableSource findTableSourceWithColumn(String columnName)
- Specified by:
findTableSourceWithColumnin interfaceSQLTableSource
-
findTableSourceWithColumn
public SQLTableSource findTableSourceWithColumn(SQLName columnName)
- Specified by:
findTableSourceWithColumnin interfaceSQLTableSource
-
findTableSourceWithColumn
public SQLTableSource findTableSourceWithColumn(long columnNameHash)
- Specified by:
findTableSourceWithColumnin interfaceSQLTableSource
-
findTableSourceWithColumn
public SQLTableSource findTableSourceWithColumn(long columnNameHash, String columnName, int option)
- Specified by:
findTableSourceWithColumnin interfaceSQLTableSource
-
findTableSource
public SQLTableSource findTableSource(String alias)
- Specified by:
findTableSourcein interfaceSQLTableSource
-
findTableSource
public SQLTableSource findTableSource(long alias_hash)
- Specified by:
findTableSourcein interfaceSQLTableSource
-
getPivot
public SQLPivot getPivot()
- Specified by:
getPivotin interfaceSQLTableSource
-
setPivot
public void setPivot(SQLPivot x)
- Specified by:
setPivotin interfaceSQLTableSource
-
getUnpivot
public SQLUnpivot getUnpivot()
- Specified by:
getUnpivotin interfaceSQLTableSource
-
setUnpivot
public void setUnpivot(SQLUnpivot x)
- Specified by:
setUnpivotin interfaceSQLTableSource
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Specified by:
accept0in classSQLObjectImpl
-
-