| |
|
| java.lang.Object org.axiondb.FromNode
FromNode | public class FromNode (Code) | | 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.
version: $Revision: 1.12 $ $Date: 2005/04/01 01:35:26 $ author: Amrish Lal |
TYPE_INNER | final public static int TYPE_INNER(Code) | | Inner join.
|
TYPE_LEFT | final public static int TYPE_LEFT(Code) | | Left outer join
|
TYPE_RIGHT | final public static int TYPE_RIGHT(Code) | | Right outer join
|
TYPE_SINGLE | final public static int TYPE_SINGLE(Code) | | No Join
|
FromNode | public FromNode()(Code) | | |
getCondition | public Selectable getCondition()(Code) | | get the join condition
join condition. |
getTableCount | public int getTableCount()(Code) | | Number of tables in this FromNode and its children.
table count. |
getType | public int getType()(Code) | | get the type of the join
integer indicating type (UNDEFINED, LEFT OUTER, RIGHT OUTER, INNER) |
hasCondition | public boolean hasCondition()(Code) | | |
hasLeft | public boolean hasLeft()(Code) | | |
hasRight | public boolean hasRight()(Code) | | |
isInnerJoin | public boolean isInnerJoin()(Code) | | |
isLeftJoin | public boolean isLeftJoin()(Code) | | |
isRightJoin | public boolean isRightJoin()(Code) | | |
setCondition | public void setCondition(Selectable condition)(Code) | | Set the join condition
Parameters: type - condition Join condition. |
setType | public void setType(int type)(Code) | | Set the type of join.
Parameters: type - integer value representing join type (INNER, LEFT OUTER, RIGHT OUTER) |
toTableArray | public TableIdentifier[] toTableArray()(Code) | | Array of tables in this FromNode or its children. Array is devleoped by preorder
traversal of the FromNode tree.
Array of TableIdentifier |
typeToString | public static String typeToString(int type)(Code) | | |
|
|
|