|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.axiondb.FromNode
A binary tree of tables (or "table like" objects) being selected from. Each element in the tree is either a FromNode or a TableIdentifier or a sub-query.
Field Summary | |
static int |
TYPE_INNER
Inner join. |
static int |
TYPE_LEFT
Left outer join |
static int |
TYPE_RIGHT
Right outer join |
static int |
TYPE_SINGLE
No Join |
Constructor Summary | |
FromNode()
|
Method Summary | |
Selectable |
getCondition()
get the join condition |
Object |
getLeft()
Get the Left input |
Object |
getRight()
get the right input |
int |
getTableCount()
Number of tables in this FromNode and its children. |
int |
getType()
get the type of the join |
boolean |
hasCondition()
|
boolean |
hasLeft()
|
boolean |
hasRight()
|
boolean |
isInnerJoin()
|
boolean |
isLeftJoin()
|
boolean |
isRightJoin()
|
void |
setCondition(Selectable condition)
Set the join condition |
void |
setLeft(FromNode join)
|
void |
setLeft(Object table)
|
void |
setRight(FromNode join)
|
void |
setRight(Object table)
|
void |
setType(int type)
Set the type of join. |
String |
toString()
|
TableIdentifier[] |
toTableArray()
Array of tables in this FromNode or its children. |
static String |
typeToString(int type)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int TYPE_INNER
public static final int TYPE_LEFT
public static final int TYPE_RIGHT
public static final int TYPE_SINGLE
Constructor Detail |
public FromNode()
Method Detail |
public Selectable getCondition()
public Object getLeft()
FromNode
or TableIdentifier
public Object getRight()
FromNode
or TableIdentifier
public int getTableCount()
public int getType()
public boolean hasCondition()
public boolean hasLeft()
public boolean hasRight()
public boolean isInnerJoin()
public boolean isLeftJoin()
public boolean isRightJoin()
public void setCondition(Selectable condition)
public void setLeft(FromNode join)
public void setLeft(Object table)
public void setRight(FromNode join)
public void setRight(Object table)
public void setType(int type)
type
- integer value representing join type (INNER, LEFT OUTER, RIGHT OUTER)public String toString()
public TableIdentifier[] toTableArray()
TableIdentifier
public static String typeToString(int type)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |