Package gudusoft.gsqlparser.nodes
Class TJoin
Object
gudusoft.gsqlparser.nodes.TParseTreeNode
gudusoft.gsqlparser.nodes.TNodeWithAliasClause
gudusoft.gsqlparser.nodes.TJoin
- All Implemented Interfaces:
Visitable,Iterator<TSourceToken>
Deprecated.
-
Field Summary
Fields inherited from class gudusoft.gsqlparser.nodes.TParseTreeNode
dbvendor, doubleLinkedTokenListToString, nodeActionAppend, nodeActionInsert, nodeActionRemove, nodeActionUnknown, nodeActionUpdate, nodeActionUpdateText, nodeChangeEndToken, nodeChangeStartToken -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Accept a visitorvoidDeprecated.Accept a visitor to iterate this class and sub-nodes of this classDeprecated.getJoin()Deprecated.Deprecated.List of joinItems.intgetKind()Deprecated.According to the table source in from clause, there are 3 kinds of join.intDeprecated.getTable()Deprecated.booleanDeprecated.voidDeprecated.voidsetJoinItems(TJoinItemList joinItems) Deprecated.voidsetKind(int kind) Deprecated.voidsetNestedParen(int nestedParen) Deprecated.voidDeprecated.voidsetWithParen(boolean withParen) Deprecated.Methods inherited from class gudusoft.gsqlparser.nodes.TNodeWithAliasClause
setAliasClause, toStringMethods inherited from class gudusoft.gsqlparser.nodes.TParseTreeNode
addAllMyTokensToTokenList, addToTokenChain, appendNewNode, calculateTokenCount, doAppendNewNode, doParse, fastSetString, getAnchorNode, getColumnNo, getCommentAfterNode, getCommentBeforeNode, getCompactString, getDummyTag, getEndToken, getEvaluateDatatype, getEvalValue, getGsqlparser, getLineNo, getLocation, getMd5, getNodeStatus, getNodeType, getParentObjectName, getPlainText, getStartToken, getTokenCount, hasNext, 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, toString2Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
TJoin
public TJoin()Deprecated.
-
-
Method Details
-
setNestedParen
Deprecated. -
getNestedParen
Deprecated. -
setWithParen
Deprecated. -
isWithParen
Deprecated. -
setJoinItems
Deprecated. -
setJoin
Deprecated. -
setTable
Deprecated. -
setKind
Deprecated. -
getJoinItems
Deprecated.List of joinItems.SQL 1:
select f from t1 left join t2 on t1.f1 = t2.f1 right join t3 on t1.f1 = t3.f1
Text in Item 0 will be: left join t2 on t1.f1 = t2.f1Text in Item 1 will be: right join t3 on t1.f1 = t3.f1
Check
TJoinItemto see how information was organized.- Returns:
-
getJoin
Deprecated.- Returns:
- this join start with another join( (a as a_alias left join a1 on a1.f1 = a_alias.f1) as a_join ) in SQL:
select a_join.f1 from (a as a_alias left join a1 on a1.f1 = a_alias.f1) as a_join join b on a_join.f1 = b.f1;
-
getTable
Deprecated.- Returns:
- this join start with a table(t1) in SQL:
select f from t1 join t2 on t1.f1 = t2.f1
-
getKind
Deprecated.According to the table source in from clause, there are 3 kinds of join.TBaseType.join_source_fake, it's a fake join likeselect f from t1
the whole from clause was represented by this class, you can get text representation of this from clause by using toString() method, it returns "t1" . and table t1 can be fetch fromgetTable().TBaseType.join_source_table,select f from t1 join t2 on t1.f1 = t2.f1
the whole from clause was represented by this class, you can get text representation of this from clause by using toString() method, it returns "t1 join t2 on t1.f1 = t2.f1". t1 can be fetch fromgetTable().TBaseType.join_source_join,select a_join.f1 from (a as a_alias left join a1 on a1.f1 = a_alias.f1) as a_join join b on a_join.f1 = b.f1;
the whole from clause was represented by this class, you can get text representation of this from clause by using toString() method, it returns "(a as a_alias left join a1 on a1.f1 = a_alias.f1) as a_join join b on a_join.f1 = b.f1".(a as a_alias left join a1 on a1.f1 = a_alias.f1) can be fetched from
getJoin().
- Returns:
-
getAliasClause
Deprecated.- Overrides:
getAliasClausein classTNodeWithAliasClause- Returns:
- alias of
getJoin(), valid only when= TBaseType#join_source_join. In this SQL, alias is "as a_join"select a_join.f1 from (a as a_alias left join a1 on a1.f1 = a_alias.f1) as a_join join b on a_join.f1 = b.f1;
But in this SQL, alias is null, "as t1" is the alias of t1.
select f from t as t1 join t2 on t1.f1 = t2.f1
-
accept
Deprecated.Description copied from class:TParseTreeNodeAccept a visitor- Specified by:
acceptin interfaceVisitable- Overrides:
acceptin classTParseTreeNode- Parameters:
v- visitor is a descendant class ofTParseTreeVisitor
-
acceptChildren
Deprecated.Description copied from class:TParseTreeNodeAccept a visitor to iterate this class and sub-nodes of this class- Specified by:
acceptChildrenin interfaceVisitable- Overrides:
acceptChildrenin classTParseTreeNode- Parameters:
v- visitor is a descendant class ofTParseTreeVisitor
-
TJoinExprinstead. A list of joinTCustomSqlStatement.joinsrepresents table sources in following clauses of SQL statement:Each table source in from clause was treated as a join which is type of
TJoin.The reason for this design is that we can treat all table sources in from clause in a uniform way.