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() |
SQLTable |
getTable() |
SQLJoin.JoinType |
getType() |
void |
setType(SQLJoin.JoinType type) |
String |
toFromClause(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 String toFromClause(DatastoreAdapter dba, boolean lock)
Copyright © 2015. All rights reserved.