public class TTable extends TNodeWithAliasClause implements IRelation
getTableType() can be one of:
tableNamesubquerytableExprfuncCallETableSource.rowList, it's constructed rows, reference: rowListcontainsTable, type of TContainsTablecontainsTable, type of TContainsTableopenRowSet, type of TOpenRowSetopenXML, type of TOpenXMLopenDatasource, type of TOpenDatasourceopenquery, type of (@link TOpenQuery)| Modifier and Type | Field and Description |
|---|---|
static String |
PIVOT_CLAUSE_ALIAS |
TSelectSqlStatement |
subquery |
static String |
TABLE_COLLECTION_ALIAS |
TTableReferenceList |
tablerefs |
static String |
UNPIVOT_CLAUSE_ALIAS |
dbvendor, doubleLinkedTokenListToString, nodeActionAppend, nodeActionInsert, nodeActionRemove, nodeActionUnknown, nodeActionUpdate, nodeActionUpdateText, nodeChangeEndToken, nodeChangeStartToken| Constructor and Description |
|---|
TTable() |
TTable(TObjectName pobjectname) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TParseTreeVisitor v)
Accept a visitor
|
void |
acceptChildren(TParseTreeVisitor v)
Accept a visitor to iterate this class and sub-nodes of this class
|
void |
addAttribute(TAttributeNode node) |
boolean |
checkTableByName(String pTablename) |
boolean |
equalByName(String pTableName) |
String |
getAliasName() |
TObjectName |
getArrayIndexAlias() |
ArrayList<TAttributeNode> |
getAttributes()
Deprecated.
, this method is deprecated since version 3.3.1.0, don't use it in TSQLResolver2
|
ArrayList<TObjectName> |
getAttributesReferenceToThisRelation() |
TCaseJoinClause |
getCaseJoin() |
ETableCatalogStatus |
getCatalogStatus()
Whether this table reference was found in the catalog metadata.
|
TColumnDefinitionList |
getColumnDefinitions() |
TResultColumnList |
getColumnListInTempTable() |
ArrayList<TObjectName> |
getColumnsFromSQLEnv(TSQLEnv sqlEnv) |
TContainsTable |
getContainsTable() |
TCTE |
getCTE() |
TObjectNameList |
getCteColomnReferences() |
TDataChangeTable |
getDatachangeTable()
DB2 data change
|
List<String> |
getDeclaredFunctionColumns()
The columns of the user table function this FROM item calls, as the catalog declares them (a CREATE FUNCTION of
the input registered before the call, or catalog metadata): recorded by resolver2 when it resolves the call, so
that
getLateralColumnNames() and resolver2 read one layout. |
String |
getDisplayName() |
String |
getDisplayName(boolean removeDBLink) |
ETableEffectType |
getEffectType() |
ArrayList<String> |
getExpandedStarColumns()
If a star column is linked to this table, use this method to returns all underlying columns that represented by
the star column.
|
TFlashback |
getFlashback() |
TForXMLClause |
getForXMLClause()
SQL Server for xml clause
|
TFromTableList |
getFromTableList() |
String |
getFullName() |
String |
getFullNameWithAliasString() |
TFunctionCall |
getFuncCall() |
THashByClause |
getHashByClause()
Gets the HASH BY clause for Teradata table functions.
|
THiveFromQuery |
getHiveFromQuery()
Deprecated.
As of v2.1.0.0, please use
getSubquery() |
TJoinExpr |
getJoinExpr() |
TJsonTable |
getJsonTable() |
List<TParseTreeNode> |
getLateralArguments()
The arguments
getLateralColumnInputs() index: the call's argument expressions (a named argument's
value), or the arrays of an UNNEST (an expression, or the column name of its legacy form); null when the
call has no layout. |
List<String> |
getLateralColumnInputs()
Per column of
getLateralColumnNames(), the indexes in getLateralArguments() of the arguments
whose values make it ("0,1"), or the empty string for a column computed over the generated rows (an
ordinal); null when the arguments are not settled. |
List<String> |
getLateralColumnNames()
The columns this FROM item's call generates, in order (a built-in table function,
UNNEST, a Hive-family
LATERAL VIEW generator), by the rule resolver2 resolves their names with
(TableFunctionLayout); null when the rule does not settle the
call's columns. |
String |
getLateralRowInputs()
The indexes in
getLateralArguments() of the arguments whose values decide the rows the call generates
("0,1"; empty when none, as for an array literal), or null when the rule does not settle the rows. |
TLateralView |
getLateralView()
The LATERAL VIEW this table stands for when it is the relation a Hive-family
LATERAL VIEW adds to its
SELECT (TLateralView.createATable(gudusoft.gsqlparser.TCustomSqlStatement)); null for any other table. |
ArrayList<TLateralView> |
getLateralViewList() |
TObjectNameList |
getLinkedColumns()
Deprecated.
, this method is deprecated since version 3.3.1.0, don't use it in TSQLResolver2
|
TTable |
getLinkTable() |
TOrderBy |
getLocalOrderBy()
Gets the LOCAL ORDER BY clause for Teradata table functions.
|
String |
getName() |
TObjectNameList |
getObjectNameReferences()
Deprecated.
As of v1.6.0.1, use
getLinkedColumns() instead |
TOpenDatasource |
getOpenDatasource()
Valid when
tableType is ftt_opendatasource. |
TOpenQuery |
getOpenquery() |
TOpenRowSet |
getOpenRowSet() |
TOpenXML |
getOpenXML() |
TInformixOuterClause |
getOuterClause() |
TMergeSqlStatement |
getOutputMerge() |
int |
getParenthesisAfterAliasCount() |
int |
getParenthesisCount() |
TPartitionExtensionClause |
getPartitionExtensionClause() |
TPivotClause |
getPivotClause()
Deprecated.
As of v1.6.2.4, replaced by
TPivotedTable |
TPivotedTable |
getPivotedTable() |
TExpression |
getPointInTime()
The expression that picks the point in time a table is read at:
AS OF <expr> (Oracle flashback,
Teradata temporal tables) or AT | BEFORE (TIMESTAMP | OFFSET => <expr>) (Snowflake time travel). |
String |
getPrefixDatabase() |
String |
getPrefixSchema() |
String |
getPrefixServer() |
TPxGranule |
getPxGranule() |
String |
getRelationName() |
TSQLTable |
getResolvedTable() |
TMultiTargetList |
getRowList()
Deprecated.
As of v2.3.6.9, please use
getValueClause() instead
row constructor like this: '(' RW_VALUES MultiTargets ')' |
TTable |
getSourceTableOfPivot() |
TSQLEnv |
getSqlEnv() |
String |
getStageName() |
TStageReference |
getStageReference() |
TSelectSqlStatement |
getSubquery() |
TExpression |
getTableExpr() |
TPTNodeList<TTableHint> |
getTableHintList() |
TObjectName |
getTableName() |
TAliasClause |
getTableOperatorInputAlias() |
TOrderBy |
getTableOperatorOrderBy() |
TPartitionClause |
getTableOperatorPartitionBy() |
TPTNodeList<THiveKeyValueProperty> |
getTableProperties() |
TTableSample |
getTableSample() |
ETableSource |
getTableType() |
TTDUnpivot |
getTdUnpivot() |
TAtBeforeClause |
getTimeTravelClause() |
TUnnestClause |
getUnnestClause() |
TValueClause |
getValueClause() |
TXmlTable |
getXmlTable() |
void |
initAttributeForRowList() |
void |
initAttributeForTableFunction() |
void |
initAttributeForXMLTable() |
void |
initAttributesForJoin()
主要是在处理列级别的信息,
它的主要目的是确保 JOIN 操作后的表对象包含所有参与 JOIN 的表的列信息,这对于后续的查询处理(特别是列引用解析)是必要的。
|
void |
initAttributesForPivotTable() |
void |
initAttributesForUnnest(TSQLEnv sqlEnv,
TSelectSqlStatement select) |
void |
initAttributesFromCTE(TCTE cte) |
void |
initAttributesFromSubquery(TSelectSqlStatement subquery,
String prefix) |
void |
initStarAttribute()
Initialize a star attribute node (tableName.*) for this table.
|
boolean |
isBaseTable() |
boolean |
isCTEName() |
boolean |
isIncludeColumnAlias() |
boolean |
isLateralLayoutClosed()
Whether
getLateralColumnNames() are all the call's columns (false for an array of unknown element type,
whose STRUCT or ROW fields would be columns of their own). |
boolean |
isLinkTable() |
boolean |
isNPathOnClauseTable()
Returns true if this table comes from a Teradata NPath function's ON clause.
|
boolean |
isOnlyKeyword() |
boolean |
isResolved() |
boolean |
isSuperUnpivot() |
boolean |
isTableKeyword() |
boolean |
isTableRefBelongToThisTable(TTableReference tableref) |
boolean |
searchColumn(TSelectSqlStatement select,
String tableName,
TObjectName pColumn,
boolean pMustIn) |
int |
searchColumnInAlias(TObjectName pColumn) |
void |
setArrayIndexAlias(TObjectName arrayIndexAlias) |
void |
setCaseJoin(TCaseJoinClause caseJoin) |
void |
setCatalogStatus(ETableCatalogStatus catalogStatus) |
void |
setColumnDefinitions(TColumnDefinitionList columnDefinitions) |
void |
setColumnListInTempTable(TResultColumnList columnListInTempTable) |
void |
setContainsTable(TContainsTable containsTable) |
boolean |
setCTE(TCTE pCTE) |
void |
setCteColomnReferences(TObjectNameList cteColomnReferences) |
void |
setCTEName(boolean CTEName) |
void |
setDatachangeTable(TDataChangeTable datachangeTable) |
void |
setDeclaredFunctionColumns(List<String> columns)
Sets the declared columns of the user table function this FROM item calls (see
getDeclaredFunctionColumns()). |
void |
setEffectType(ETableEffectType effectType) |
void |
setFlashback(TFlashback flashback) |
void |
setForXMLClause(TForXMLClause forXMLClause) |
void |
setFromTableList(TFromTableList fromTableList) |
void |
setFuncCall(TFunctionCall funcCall) |
void |
setHashByClause(THashByClause hashByClause)
Sets the HASH BY clause for Teradata table functions.
|
void |
setHiveFromQuery(THiveFromQuery hiveFromQuery) |
void |
setJoinExpr(TJoinExpr joinExpr) |
void |
setJsonTable(TJsonTable jsonTable) |
void |
setLateralView(TLateralView lateralView) |
void |
setLateralViewList(ArrayList<TLateralView> lateralViewList) |
void |
setLinkedColumns(TObjectNameList linkedColumns) |
void |
setLinkTable(boolean isLinkTable)
Deprecated.
As of v1.8.4.6, set in
setLinkTable(gudusoft.gsqlparser.nodes.TTable) |
void |
setLinkTable(TTable linkTable) |
void |
setLocalOrderBy(TOrderBy localOrderBy)
Sets the LOCAL ORDER BY clause for Teradata table functions.
|
void |
setNPathOnClauseTable(boolean npathOnClauseTable)
Marks this table as coming from a Teradata NPath function's ON clause.
|
void |
setObjectNameReferences(TObjectNameList objectNameReferences) |
void |
setOnlyKeyword(boolean onlyKeyword) |
void |
setOpenDatasource(TOpenDatasource openDatasource) |
void |
setOpenquery(TOpenQuery openquery) |
void |
setOpenRowSet(TOpenRowSet openRowSet) |
void |
setOpenXML(TOpenXML openXML) |
void |
setOuterClause(TInformixOuterClause outerClause) |
void |
setOutputMerge(TMergeSqlStatement outputMerge) |
void |
setParenthesisAfterAliasCount(int parenthesisAfterAliasCount) |
void |
setParenthesisCount(int parenthesisCount) |
void |
setPartitionExtensionClause(TPartitionExtensionClause partitionExtensionClause) |
void |
setPivotClause(TPivotClause pivotClause) |
void |
setPivotedTable(TPivotedTable pivotedTable) |
void |
setPropertyFromObjectName(TObjectName objectName,
ETableEffectType tableEffectType) |
void |
setPxGranule(TPxGranule pxGranule) |
void |
setResolved(boolean resolved) |
void |
setResolvedTable(TSQLTable resolvedTable) |
void |
setRowList(TMultiTargetList rowList) |
void |
setSourceTableOfPivot(TTable sourceTableOfPivot) |
void |
setSqlEnv(TSQLEnv sqlEnv) |
void |
setStageReference(TStageReference stageReference) |
void |
setSubquery(TSelectSqlStatement subquery) |
void |
setSuperUnpivot(boolean superUnpivot) |
void |
setTableExpr(TExpression tableExpr) |
void |
setTableHintList(TPTNodeList<TTableHint> tableHintList) |
void |
setTableKeyword(boolean tableKeyword) |
void |
setTableName(TObjectName tableName) |
void |
setTableOperatorInputAlias(TAliasClause value) |
void |
setTableOperatorOrderBy(TOrderBy value) |
void |
setTableOperatorPartitionBy(TPartitionClause value) |
void |
setTableProperties(TPTNodeList<THiveKeyValueProperty> tableProperties) |
void |
setTablerefs(TTableReferenceList tablerefs) |
void |
setTableSample(TTableSample tableSample) |
void |
setTableType(ETableSource tableType) |
void |
setTdUnpivot(TTDUnpivot tdUnpivot) |
void |
setTimeTravelClause(TAtBeforeClause timeTravelClause) |
void |
setUnnestClause(TUnnestClause unnestClause) |
void |
setValueClause(TValueClause valueClause) |
void |
setXmlTable(TXmlTable xmlTable) |
int |
size() |
String |
toString()
Tf there is no alias clause of this node, then toString() is the same as
TParseTreeNode |
getAliasClause, setAliasClauseaddAllMyTokensToTokenList, addToTokenChain, appendNewNode, calculateTokenCount, commentBlockAfter, commentBlockEndAfter, doAppendNewNode, doParse, fastSetString, getAnchorNode, getColumnNo, getCommentAfterNode, getCommentBeforeNode, getCommentBeforeNode, getCommentBeforeNode, getCompactString, getDummyTag, getEndToken, getEvaluateDatatype, getEvalValue, getGsqlparser, getLineNo, getLocation, getMd5, getNodeStatus, getNodeType, getParentObjectName, getPlainText, getStartToken, getTokenCount, hasNext, init, init, init, init, init, init, init, init, init, init, insertAfterAToken, insertNewNodeBeforeMe, isChanged, isTokensInChain, next, refreshAllNodesTokenCount, remove, removeAllMyTokensFromTokenList, removeTokens, removeTokensBetweenNodes, removeTokensBetweenToken, replaceWithNewNode, resetIterator, setAnchorNode, setChanged, setDummyTag, setEndToken, setEndToken, setEndToken, setEndToken, setEndToken, setEndTokenDirectly, setEvaluateDatatype, setEvalValue, setGsqlparser, setIncludingComment, setLocation, setNewSubNode, setNodeStatus, setNodeType, setParent, setPlainText, setStartToken, setStartToken, setStartToken, setStartToken, setStartTokenDirectly, setString, setString2, subNodeInNode, toScript, toString2clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachRemainingpublic static final String PIVOT_CLAUSE_ALIAS
public static final String UNPIVOT_CLAUSE_ALIAS
public static final String TABLE_COLLECTION_ALIAS
public TSelectSqlStatement subquery
public TTableReferenceList tablerefs
public TTable(TObjectName pobjectname)
public TTable()
public ArrayList<TAttributeNode> getAttributes()
IRelationgetAttributes in interface IRelationpublic String getRelationName()
getRelationName in interface IRelationpublic void setStageReference(TStageReference stageReference)
public TStageReference getStageReference()
public void setTimeTravelClause(TAtBeforeClause timeTravelClause)
public TAtBeforeClause getTimeTravelClause()
public void setCaseJoin(TCaseJoinClause caseJoin)
public TCaseJoinClause getCaseJoin()
public String getStageName()
public void initStarAttribute()
public void initAttributeForXMLTable()
public void initAttributeForTableFunction()
public void initAttributeForRowList()
public void initAttributesFromCTE(TCTE cte)
public void initAttributesFromSubquery(TSelectSqlStatement subquery, String prefix)
public String getDisplayName()
public String getDisplayName(boolean removeDBLink)
public void initAttributesForPivotTable()
public void initAttributesForJoin()
public void initAttributesForUnnest(TSQLEnv sqlEnv, TSelectSqlStatement select)
public void addAttribute(TAttributeNode node)
public ArrayList<TObjectName> getAttributesReferenceToThisRelation()
public void setResolvedTable(TSQLTable resolvedTable)
public ETableCatalogStatus getCatalogStatus()
ETableCatalogStatus.public void setCatalogStatus(ETableCatalogStatus catalogStatus)
public void setResolved(boolean resolved)
public TSQLTable getResolvedTable()
public boolean isResolved()
public ArrayList<TObjectName> getColumnsFromSQLEnv(TSQLEnv sqlEnv)
public void setJoinExpr(TJoinExpr joinExpr)
public TJoinExpr getJoinExpr()
public void setForXMLClause(TForXMLClause forXMLClause)
public TForXMLClause getForXMLClause()
public TColumnDefinitionList getColumnDefinitions()
public TAliasClause getTableOperatorInputAlias()
public void setTableOperatorInputAlias(TAliasClause value)
public TPartitionClause getTableOperatorPartitionBy()
public void setTableOperatorPartitionBy(TPartitionClause value)
public TOrderBy getTableOperatorOrderBy()
public void setTableOperatorOrderBy(TOrderBy value)
public THashByClause getHashByClause()
public void setHashByClause(THashByClause hashByClause)
hashByClause - the HASH BY clausepublic TOrderBy getLocalOrderBy()
public void setLocalOrderBy(TOrderBy localOrderBy)
localOrderBy - the LOCAL ORDER BY clausepublic TValueClause getValueClause()
public void setValueClause(TValueClause valueClause)
public void setSourceTableOfPivot(TTable sourceTableOfPivot)
public TTable getSourceTableOfPivot()
public void setJsonTable(TJsonTable jsonTable)
public TJsonTable getJsonTable()
public void setPropertyFromObjectName(TObjectName objectName, ETableEffectType tableEffectType)
public void setTdUnpivot(TTDUnpivot tdUnpivot)
public TTDUnpivot getTdUnpivot()
public void setUnnestClause(TUnnestClause unnestClause)
public TUnnestClause getUnnestClause()
public void setColumnListInTempTable(TResultColumnList columnListInTempTable)
public TResultColumnList getColumnListInTempTable()
public void setPxGranule(TPxGranule pxGranule)
public TPxGranule getPxGranule()
public void setFlashback(TFlashback flashback)
public TFlashback getFlashback()
public TExpression getPointInTime()
AS OF <expr> (Oracle flashback,
Teradata temporal tables) or AT | BEFORE (TIMESTAMP | OFFSET => <expr>) (Snowflake time travel).public TObjectName getArrayIndexAlias()
public void setArrayIndexAlias(TObjectName arrayIndexAlias)
public boolean isSuperUnpivot()
public void setSuperUnpivot(boolean superUnpivot)
public void setNPathOnClauseTable(boolean npathOnClauseTable)
public boolean isNPathOnClauseTable()
public void setTableKeyword(boolean tableKeyword)
public void setOnlyKeyword(boolean onlyKeyword)
public boolean isTableKeyword()
public boolean isOnlyKeyword()
public void setParenthesisCount(int parenthesisCount)
public void setParenthesisAfterAliasCount(int parenthesisAfterAliasCount)
public int getParenthesisCount()
public int getParenthesisAfterAliasCount()
public void setOutputMerge(TMergeSqlStatement outputMerge)
public TMergeSqlStatement getOutputMerge()
public void setPivotedTable(TPivotedTable pivotedTable)
public TPivotedTable getPivotedTable()
public void setEffectType(ETableEffectType effectType)
public ETableEffectType getEffectType()
public void setLinkTable(TTable linkTable)
public TTable getLinkTable()
public boolean isLinkTable()
public void setLinkTable(boolean isLinkTable)
setLinkTable(gudusoft.gsqlparser.nodes.TTable)public String getAliasName()
public boolean equalByName(String pTableName)
public void setTableProperties(TPTNodeList<THiveKeyValueProperty> tableProperties)
public TPTNodeList<THiveKeyValueProperty> getTableProperties()
public void setLateralViewList(ArrayList<TLateralView> lateralViewList)
public TLateralView getLateralView()
LATERAL VIEW adds to its
SELECT (TLateralView.createATable(gudusoft.gsqlparser.TCustomSqlStatement)); null for any other table.public void setLateralView(TLateralView lateralView)
public ArrayList<TLateralView> getLateralViewList()
public List<String> getLateralColumnNames()
UNNEST, a Hive-family
LATERAL VIEW generator), by the rule resolver2 resolves their names with
(TableFunctionLayout); null when the rule does not settle the
call's columns. An element is null for a column the vendor leaves without a name a query can use.public List<String> getLateralColumnInputs()
getLateralColumnNames(), the indexes in getLateralArguments() of the arguments
whose values make it ("0,1"), or the empty string for a column computed over the generated rows (an
ordinal); null when the arguments are not settled.public String getLateralRowInputs()
getLateralArguments() of the arguments whose values decide the rows the call generates
("0,1"; empty when none, as for an array literal), or null when the rule does not settle the rows. The
rows can be settled while the columns are not (getLateralColumnNames() null).public boolean isLateralLayoutClosed()
getLateralColumnNames() are all the call's columns (false for an array of unknown element type,
whose STRUCT or ROW fields would be columns of their own).public List<TParseTreeNode> getLateralArguments()
getLateralColumnInputs() index: the call's argument expressions (a named argument's
value), or the arrays of an UNNEST (an expression, or the column name of its legacy form); null when the
call has no layout.public List<String> getDeclaredFunctionColumns()
getLateralColumnNames() and resolver2 read one layout. Null when none is known.public void setDeclaredFunctionColumns(List<String> columns)
getDeclaredFunctionColumns()).public void setTableSample(TTableSample tableSample)
public TTableSample getTableSample()
public void setPartitionExtensionClause(TPartitionExtensionClause partitionExtensionClause)
public TPartitionExtensionClause getPartitionExtensionClause()
public void setOuterClause(TInformixOuterClause outerClause)
public TInformixOuterClause getOuterClause()
public void setFromTableList(TFromTableList fromTableList)
public TFromTableList getFromTableList()
public TXmlTable getXmlTable()
public void setXmlTable(TXmlTable xmlTable)
public void setTableHintList(TPTNodeList<TTableHint> tableHintList)
public TPTNodeList<TTableHint> getTableHintList()
public TOpenQuery getOpenquery()
public TSelectSqlStatement getSubquery()
public void setOpenquery(TOpenQuery openquery)
public void setOpenDatasource(TOpenDatasource openDatasource)
public TOpenDatasource getOpenDatasource()
tableType is ftt_opendatasource.public void setOpenXML(TOpenXML openXML)
public TOpenXML getOpenXML()
public TOpenRowSet getOpenRowSet()
public void setOpenRowSet(TOpenRowSet openRowSet)
public TContainsTable getContainsTable()
public void setContainsTable(TContainsTable containsTable)
public TFunctionCall getFuncCall()
public void setFuncCall(TFunctionCall funcCall)
public TMultiTargetList getRowList()
getValueClause() instead
row constructor like this: '(' RW_VALUES MultiTargets ')'public boolean isBaseTable()
public void setCteColomnReferences(TObjectNameList cteColomnReferences)
public TObjectNameList getCteColomnReferences()
public void setObjectNameReferences(TObjectNameList objectNameReferences)
public boolean isCTEName()
public void setCTEName(boolean CTEName)
public void setHiveFromQuery(THiveFromQuery hiveFromQuery)
public THiveFromQuery getHiveFromQuery()
getSubquery()public TExpression getTableExpr()
public void setTableExpr(TExpression tableExpr)
public void setTableType(ETableSource tableType)
public ETableSource getTableType()
ETableSource.objectname, in from clause, a simple table/view name, reference: tableNameETableSource.subquery, is a subquery that retrieves rows from the database, also known as derived table. reference: subqueryETableSource.tableExpr,it's usually a table-valued expression., reference: tableExprETableSource.function, it's usually a table-valued function., reference: funcCallETableSource.rowList, it's constructed rows, reference: rowListETableSource.containsTable, CONTAINSTABLE clause of sql server. reference: containsTable, type of TContainsTableETableSource.freetextTable, FREETEXTTABLE clause of sql server. reference: containsTable, type of TContainsTableETableSource.openrowset, OPENROWSET clause of sql server. reference: openRowSet, type of TOpenRowSetETableSource.openxml, OPENXML clause of sql server. reference: openXML, type of TOpenXMLETableSource.opendatasource, OPENDATASOURCE clause of sql server. reference: openDatasource, type of TOpenDatasourceETableSource.openquery, OPENQUERY clause of sql server. reference: openquery, type of (@link TOpenQuery)public void setTableName(TObjectName tableName)
public TObjectName getTableName()
public String getPrefixServer()
public String getPrefixDatabase()
public String getPrefixSchema()
public boolean isIncludeColumnAlias()
public int searchColumnInAlias(TObjectName pColumn)
public boolean checkTableByName(String pTablename)
public boolean searchColumn(TSelectSqlStatement select, String tableName, TObjectName pColumn, boolean pMustIn)
public TObjectNameList getLinkedColumns()
public String getFullNameWithAliasString()
public String getFullName()
public TObjectNameList getObjectNameReferences()
getLinkedColumns() insteadpublic void setPivotClause(TPivotClause pivotClause)
public TPivotClause getPivotClause()
TPivotedTablepublic void setDatachangeTable(TDataChangeTable datachangeTable)
public TDataChangeTable getDatachangeTable()
public boolean isTableRefBelongToThisTable(TTableReference tableref)
public void accept(TParseTreeVisitor v)
TParseTreeNodeaccept in interface Visitableaccept in class TParseTreeNodev - visitor is a descendant class of TParseTreeVisitorpublic void setColumnDefinitions(TColumnDefinitionList columnDefinitions)
public void acceptChildren(TParseTreeVisitor v)
TParseTreeNodeacceptChildren in interface VisitableacceptChildren in class TParseTreeNodev - visitor is a descendant class of TParseTreeVisitorpublic void setRowList(TMultiTargetList rowList)
public void setSubquery(TSelectSqlStatement subquery)
public void setLinkedColumns(TObjectNameList linkedColumns)
public void setTablerefs(TTableReferenceList tablerefs)
public ArrayList<String> getExpandedStarColumns()
public String toString()
TNodeWithAliasClauseTParseTreeNode
Otherwise, return text of node only, don't include text of alias clause.
If this node was modified by TParseTreeNode.setString(String), then node text including alias node
text was replaced by new string.
toString in class TNodeWithAliasClause