org.apache.cayenne.access.trans
Class JoinStack
java.lang.Object
org.apache.cayenne.access.trans.JoinStack
public class JoinStack
- extends java.lang.Object
Encapsulates join reuse/split logic used in SelectQuery processing. All expression
path's that exist in the query (in the qualifier, etc.) are processed to produce a
combined join tree.
- Since:
- 3.0
Method Summary |
protected void |
appendJoins(java.lang.Appendable out)
Appends all configured joins to the provided output object. |
protected void |
appendJoinSubtree(java.lang.Appendable out,
JoinTreeNode node)
|
protected void |
appendQualifier(java.lang.Appendable out,
boolean firstQualifierElement)
Append join information to the qualifier - the part after "WHERE". |
protected java.lang.String |
newAlias()
|
protected int |
size()
Returns the number of configured joins. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rootNode
protected JoinTreeNode rootNode
topNode
protected JoinTreeNode topNode
JoinStack
protected JoinStack(DbAdapter dbAdapter,
DataMap dataMap,
QueryAssembler assembler)
size
protected int size()
- Returns the number of configured joins.
appendJoins
protected void appendJoins(java.lang.Appendable out)
throws java.io.IOException
- Appends all configured joins to the provided output object.
- Throws:
java.io.IOException
appendJoinSubtree
protected void appendJoinSubtree(java.lang.Appendable out,
JoinTreeNode node)
throws java.io.IOException
- Throws:
java.io.IOException
appendQualifier
protected void appendQualifier(java.lang.Appendable out,
boolean firstQualifierElement)
throws java.io.IOException
- Append join information to the qualifier - the part after "WHERE".
- Throws:
java.io.IOException
newAlias
protected java.lang.String newAlias()
Copyright © 2001-2012 Apache Cayenne. All Rights Reserved.