Package org.apache.torque.criteria
Klasse Join
java.lang.Object
org.apache.torque.criteria.Join
- Alle implementierten Schnittstellen:
Serializable
Data object to describe a join between two tables, for example
table_a LEFT JOIN table_b ON table_a.id = table_b.a_id
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungConstructor with the comparison operator.Join(PreparedStatementPart leftTable, PreparedStatementPart rightTable, Criterion joinCondition, JoinType joinType) Constructor. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanThis method checks another Criteria.Join to see if they contain the same attributes.final Criterionfinal JoinTypefinal PreparedStatementPartfinal PreparedStatementPartinthashCode()Returns the hash code value for this Join.toString()Returns a String representation of the class, mainly for debugging purposes.
-
Konstruktordetails
-
Join
Constructor with the comparison operator.- Parameter:
leftColumn- the left column of the join condition; might contain an alias name, not null.rightColumn- the right column of the join condition might contain an alias name, not null.comparison- the comparison, not null. The operator CUSTOM is not supported.joinType- the type of the join, or null (adding the join condition to the where clause).- Löst aus:
NullPointerException- if leftColumn, comparison or rightColumn are null.IllegalArgumentException- if comparison id SqlEnum.CUSTOM
-
Join
public Join(PreparedStatementPart leftTable, PreparedStatementPart rightTable, Criterion joinCondition, JoinType joinType) Constructor.- Parameter:
leftTable- the left table of the join, might contain an alias name, or null to be determined from the join clause.rightTable- the right table of the join, might contain an alias name, or null to be determined from the join clause.joinCondition- the join condition, not null.joinType- the type of the join, or null (adding the join condition to the where clause).
-
-
Methodendetails
-
getJoinCondition
- Gibt zurück:
- the type of the join, i.e. SqlEnum.LEFT_JOIN, ..., or null for adding the join condition to the where Clause
-
getJoinType
- Gibt zurück:
- the type of the join, i.e. SqlEnum.LEFT_JOIN, ..., or null for adding the join condition to the where Clause
-
getLeftTable
- Gibt zurück:
- the left table of the join condition.
-
getRightTable
- Gibt zurück:
- the right table of the join condition.
-
toString
Returns a String representation of the class, mainly for debugging purposes. -
equals
This method checks another Criteria.Join to see if they contain the same attributes. -
hashCode
public int hashCode()Returns the hash code value for this Join.
-