public class Join extends Object implements Serializable, Comparable<Join>
Modifier and Type | Field and Description |
---|---|
Column |
column1
Left part of equijoin.
|
Column |
column2
Right part of equijoin.
|
static int |
IMPLICIT |
static int |
INNER |
int |
kind
INNER / LEFT / RIGHT / IMPLICIT
|
static int |
LEFT |
String |
on1
Left part of equijoin.
|
String |
on2
Right part of equijoin.
|
static int |
RIGHT |
String |
table
Table name.
|
String |
tableAlias
Table alias, or
null . |
String |
tableParam
Parameter if table name is an expression that contains a "?", or
null . |
List<String> |
whereClauses
Additional WHERE clauses.
|
List<Serializable> |
whereParams
Additional WHERE clauses parameters.
|
Constructor and Description |
---|
Join(int kind,
String table,
String tableAlias,
String tableParam,
Column column1,
Column column2) |
Join(int kind,
String table,
String tableAlias,
String tableParam,
String on1,
String on2) |
Modifier and Type | Method and Description |
---|---|
void |
addWhereClause(String whereClause,
Serializable whereParam) |
int |
compareTo(Join other) |
String |
getClause(Dialect dialect) |
String |
getTable(Dialect dialect) |
String |
toSql(Dialect dialect)
Does not return the WHERE clause.
|
String |
toString() |
public static final int INNER
public static final int LEFT
public static final int RIGHT
public static final int IMPLICIT
public final int kind
public final String tableAlias
null
.public final String tableParam
null
.public final List<String> whereClauses
public final List<Serializable> whereParams
public Join(int kind, String table, String tableAlias, String tableParam, Column column1, Column column2)
public void addWhereClause(String whereClause, Serializable whereParam)
public int compareTo(Join other)
compareTo
in interface Comparable<Join>
Copyright © 2017 Nuxeo. All rights reserved.