T - the primary PDO typepublic class JoinedSelect<T extends PersistentDomainObject<T>> extends Object
| Constructor and Description |
|---|
JoinedSelect()
Creates a joined select.
|
JoinedSelect(List<Join<? super T,?>> joins)
Creates a joined select from a list of joins.
|
| Modifier and Type | Method and Description |
|---|---|
JoinedSelect<T> |
addJoin(Join<? super T,?> join)
Adds a join.
|
void |
createJoinedSql(T pdo,
StringBuilder selectSql)
Creates the SQL-code that does the joined select.
|
T |
currentPdo()
Gets the currentl retrieved PDO.
|
List<Join<? super T,?>> |
getJoins()
Gets the joins.
|
T |
getLastPdo()
Gets the PDO retrieved before the current PDO.
|
void |
initialize(List<T> list)
Initializes the joined select.
|
T |
nextPdo(T pdo)
Finishes the current pdo and switches to the next.
|
public JoinedSelect<T> addJoin(Join<? super T,?> join)
join - the joinpublic void createJoinedSql(T pdo, StringBuilder selectSql)
pdo - the pdo proxyselectSql - the unjoined select builderpublic T getLastPdo()
public T currentPdo()
public T nextPdo(T pdo)
pdo - the next pdoTentackle - distributed, domain- and model-driven