public class SQLJoin extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SQLJoin.JoinType |
Constructor and Description |
---|
SQLJoin(SQLJoin.JoinType type,
SQLTable targetTbl,
SQLTable sourceTbl,
BooleanExpression condition)
Constructor for a join.
|
Modifier and Type | Method and Description |
---|---|
void |
addAndCondition(BooleanExpression expr)
Method to update the join "condition" to AND the provided expression.
|
BooleanExpression |
getCondition()
Accessor for the conditions of the join.
|
static SQLJoin.JoinType |
getJoinTypeForJoinExpressionType(org.datanucleus.query.expression.JoinExpression.JoinType ejt) |
SQLTable |
getSourceTable()
Accessor for the table we are joining from.
|
SQLJoin |
getSubJoin() |
SQLTable |
getTargetTable()
Accessor for the table we are joining to.
|
SQLJoin.JoinType |
getType() |
void |
setSubJoin(SQLJoin join) |
void |
setType(SQLJoin.JoinType type) |
SQLText |
toSQLText(DatastoreAdapter dba,
boolean lock) |
String |
toString() |
public SQLJoin(SQLJoin.JoinType type, SQLTable targetTbl, SQLTable sourceTbl, BooleanExpression condition)
type
- Type of join (one of the defined types in this class).targetTbl
- Target table that we are joining tosourceTbl
- Table we are joining fromcondition
- Join conditionpublic SQLJoin.JoinType getType()
public void setType(SQLJoin.JoinType type)
public SQLTable getTargetTable()
public SQLTable getSourceTable()
public BooleanExpression getCondition()
public void addAndCondition(BooleanExpression expr)
expr
- The expression to add to the join "condition"public void setSubJoin(SQLJoin join)
public SQLJoin getSubJoin()
public SQLText toSQLText(DatastoreAdapter dba, boolean lock)
public static SQLJoin.JoinType getJoinTypeForJoinExpressionType(org.datanucleus.query.expression.JoinExpression.JoinType ejt)
Copyright © 2019. All rights reserved.