public class Join extends Object implements Serializable
table_a LEFT JOIN table_b ON table_a.id = table_b.a_id
Constructor and Description |
---|
Join(Column leftColumn,
Column rightColumn,
SqlEnum comparison,
JoinType joinType)
Constructor with the comparison operator.
|
Join(PreparedStatementPart leftTable,
PreparedStatementPart rightTable,
Criterion joinCondition,
JoinType joinType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
This method checks another Criteria.Join to see if they contain the
same attributes.
|
Criterion |
getJoinCondition() |
JoinType |
getJoinType() |
PreparedStatementPart |
getLeftTable() |
PreparedStatementPart |
getRightTable() |
int |
hashCode()
Returns the hash code value for this Join.
|
String |
toString()
Returns a String representation of the class,
mainly for debugging purposes.
|
public Join(Column leftColumn, Column rightColumn, SqlEnum comparison, JoinType joinType)
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).NullPointerException
- if leftColumn, comparison or rightColumn
are null.IllegalArgumentException
- if comparison id SqlEnum.CUSTOMpublic Join(PreparedStatementPart leftTable, PreparedStatementPart rightTable, Criterion joinCondition, JoinType joinType)
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).public final Criterion getJoinCondition()
public final JoinType getJoinType()
public final PreparedStatementPart getLeftTable()
public final PreparedStatementPart getRightTable()
public String toString()
public boolean equals(Object obj)
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.