public class SQLJoin extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SQLJoin.JoinType |
| Constructor and Description |
|---|
SQLJoin(SQLJoin.JoinType type,
SQLTable tbl,
SQLTable joinedTbl,
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.
|
SQLTable |
getJoinedTable() |
static SQLJoin.JoinType |
getJoinTypeForJoinExpressionType(org.datanucleus.query.expression.JoinExpression.JoinType ejt) |
SQLTable |
getTable() |
SQLJoin.JoinType |
getType() |
void |
setType(SQLJoin.JoinType type) |
SQLText |
toSQLText(DatastoreAdapter dba,
boolean lock) |
String |
toString() |
public SQLJoin(SQLJoin.JoinType type, SQLTable tbl, SQLTable joinedTbl, BooleanExpression condition)
type - Type of join (one of the defined types in this class).tbl - Table to join to (required)joinedTbl - Table we join tocondition - Join conditionpublic SQLJoin.JoinType getType()
public void setType(SQLJoin.JoinType type)
public SQLTable getTable()
public SQLTable getJoinedTable()
public BooleanExpression getCondition()
public void addAndCondition(BooleanExpression expr)
expr - The expression to add to the join "condition"public SQLText toSQLText(DatastoreAdapter dba, boolean lock)
public static SQLJoin.JoinType getJoinTypeForJoinExpressionType(org.datanucleus.query.expression.JoinExpression.JoinType ejt)
Copyright © 2017. All rights reserved.