public class FromNode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
FromNode() |
Modifier and Type | Method and Description |
---|---|
Selectable |
getCondition()
get the join condition
|
java.lang.Object |
getLeft()
Get the Left input
|
java.lang.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(java.lang.Object table) |
void |
setRight(FromNode join) |
void |
setRight(java.lang.Object table) |
void |
setType(int type)
Set the type of join.
|
java.lang.String |
toString() |
TableIdentifier[] |
toTableArray()
Array of tables in this FromNode or its children.
|
static java.lang.String |
typeToString(int type) |
public static final int TYPE_INNER
public static final int TYPE_LEFT
public static final int TYPE_RIGHT
public static final int TYPE_SINGLE
public Selectable getCondition()
public java.lang.Object getLeft()
FromNode
or TableIdentifier
public java.lang.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)
type
- condition Join condition.public void setLeft(FromNode join)
public void setLeft(java.lang.Object table)
public void setRight(FromNode join)
public void setRight(java.lang.Object table)
public void setType(int type)
type
- integer value representing join type (INNER, LEFT OUTER, RIGHT OUTER)public java.lang.String toString()
toString
in class java.lang.Object
public TableIdentifier[] toTableArray()
TableIdentifier
public static java.lang.String typeToString(int type)