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 |
|---|---|
void |
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 switched to the next.
|
int |
setClassIdsInStatement(PreparedStatementWrapper st,
int ndx)
Sets the class-ID parameters if required for the joins.
|
public void createJoinedSql(T pdo, StringBuilder selectSql)
pdo - the pdo proxyselectSql - the unjoined select builderpublic int setClassIdsInStatement(PreparedStatementWrapper st, int ndx)
st - the statementndx - the next parameter ndxpublic T getLastPdo()
public T currentPdo()
public T nextPdo(T pdo)
pdo - the next pdoCopyright © 2016 Krake Softwaretechnik. All rights reserved.