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 joinedSELECT.JoinedSelect(List<Join<? super T, ?>> joins) Creates a joinedSELECTfrom 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 state of the joins for this select.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 joinedSELECT. -
JoinedSelect
-
-
Method Details
-
addJoin
Adds a join.- Parameters:
join- the join- Returns:
- me (to allow fluent style setup)
-
getJoins
-
getJoinState
Gets the state of the joins for this select.- Returns:
- the join state, never null
-
createJoinedSql
Creates the SQL code that does the joined select.- Parameters:
pdo- the PDO proxyselectSql- the select builder without joins
-
getLastPdo
-
currentPdo
-
nextPdo
-
initialize
-