Class JoinedSelect<T extends PersistentDomainObject<T>>
java.lang.Object
org.tentackle.persist.JoinedSelect<T>
- Type Parameters:
T- the primary PDO type
A joined select.
- Author:
- harald
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a joined select.JoinedSelect(List<Join<? super T, ?>> joins) Creates a joined select from a list of joins. -
Method Summary
Modifier and TypeMethodDescriptionAdds a join.voidcreateJoinedSql(T pdo, StringBuilder selectSql) Creates the SQL-code that does the joined select.Gets the currently retrieved PDO.getJoins()Gets the joins.Gets the PDO retrieved before the current PDO.voidinitialize(List<T> list) Initializes the joined select.Finishes the current pdo and switches to the next.
-
Constructor Details
-
JoinedSelect
public JoinedSelect()Creates a joined select. -
JoinedSelect
-
-
Method Details
-
addJoin
Adds a join.- Parameters:
join- the join- Returns:
- me (to allow fluent style setup)
-
getJoins
-
createJoinedSql
Creates the SQL-code that does the joined select.- Parameters:
pdo- the pdo proxyselectSql- the select builder without joins
-
getLastPdo
-
currentPdo
-
nextPdo
-
initialize
-