Class Join
- java.lang.Object
-
- org.nuxeo.ecm.core.storage.sql.jdbc.db.Join
-
- All Implemented Interfaces:
Serializable
,Comparable<Join>
public class Join extends Object implements Serializable, Comparable<Join>
A SQL JOIN.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Column
column1
Left part of equijoin.Column
column2
Right part of equijoin.static int
IMPLICIT
static int
INNER
int
kind
INNER / LEFT / RIGHT / IMPLICITstatic 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, ornull
.String
tableParam
Parameter if table name is an expression that contains a "?", ornull
.List<String>
whereClauses
Additional WHERE clauses.List<Serializable>
whereParams
Additional WHERE clauses parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
INNER
public static final int INNER
- See Also:
- Constant Field Values
-
LEFT
public static final int LEFT
- See Also:
- Constant Field Values
-
RIGHT
public static final int RIGHT
- See Also:
- Constant Field Values
-
IMPLICIT
public static final int IMPLICIT
- See Also:
- Constant Field Values
-
kind
public final int kind
INNER / LEFT / RIGHT / IMPLICIT
-
tableAlias
public final String tableAlias
Table alias, ornull
.
-
tableParam
public final String tableParam
Parameter if table name is an expression that contains a "?", ornull
.
-
whereClauses
public final List<String> whereClauses
Additional WHERE clauses.
-
whereParams
public final List<Serializable> whereParams
Additional WHERE clauses parameters.
-
-
Method Detail
-
addWhereClause
public void addWhereClause(String whereClause, Serializable whereParam)
-
compareTo
public int compareTo(Join other)
- Specified by:
compareTo
in interfaceComparable<Join>
-
-