|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.torque.util.Criteria.Join
public static class Criteria.Join
Data object to describe a join between two tables, for example
table_a LEFT JOIN table_b ON table_a.id = table_b.a_idThe class is immutable. Because the class is also used by
BasePeer
, it is visible from the package.
Constructor Summary | |
---|---|
Criteria.Join(String leftColumn,
String rightColumn,
SqlEnum joinType)
Constructor |
Method Summary | |
---|---|
boolean |
equals(Object obj)
This method checks another Criteria.Join to see if they contain the same attributes. |
SqlEnum |
getJoinType()
|
String |
getLeftColumn()
|
String |
getRightColumn()
|
int |
hashCode()
Returns the hash code value for this Join. |
String |
toString()
returns a String representation of the class, mainly for debuggung purposes |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Criteria.Join(String leftColumn, String rightColumn, SqlEnum joinType)
leftColumn
- the left column of the join condition;
might contain an alias namerightColumn
- the right column of the join condition
might contain an alias namejoinType
- the type of the join. Valid join types are
null (adding the join condition to the where clause),
SqlEnum.LEFT_JOIN, SqlEnum.RIGHT_JOIN, and SqlEnum.INNER_JOINMethod Detail |
---|
public final SqlEnum getJoinType()
public final String getLeftColumn()
public final String getRightColumn()
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |