org.datanucleus.store.rdbms.sql
Class SQLJoin
java.lang.Object
org.datanucleus.store.rdbms.sql.SQLJoin
public class SQLJoin
- extends Object
Representation of a join in an SQL statement.
The join is of a type (see ANSI SQL), and with inner/left outer/right outer is accompanied by
join condition(s), joining from the source table to the target table via columns. Additionally
other conditions can be applied to restrict the join (such as discriminator).
SQLJoin
public SQLJoin(SQLJoin.JoinType type,
SQLTable tbl,
SQLTable joinedTbl,
BooleanExpression condition)
- Constructor for a join.
- Parameters:
type - Type of join (one of the defined types in this class).tbl - Table to join to (required)condition - Join condition
getType
public SQLJoin.JoinType getType()
setType
public void setType(SQLJoin.JoinType type)
getTable
public SQLTable getTable()
getJoinedTable
public SQLTable getJoinedTable()
getCondition
public BooleanExpression getCondition()
- Accessor for the conditions of the join.
These conditions can include
- Returns:
- The conditions
toString
public String toString()
- Overrides:
toString in class Object
toFromClause
public String toFromClause(RDBMSAdapter dba,
boolean lock)
Copyright © 2012. All Rights Reserved.