Package net.sf.basedb.core
Class DynamicPositionQueryJoiners
java.lang.Object
net.sf.basedb.core.DynamicPositionQueryJoiners
This class collects
AutoJoiner
:s for DynamicPositionQuery
queries. The implementations are thread-safe and can be re-used between threads.- Version:
- 2.12
- Author:
- nicklas
- Last modified
- $Date: 2012-03-23 08:57:12 +0100 (fr, 23 mar 2012) $
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
Joiner for extra values.private static class
Joiner for reportersprivate static class
Auto joiner for reporter lists. -
Field Summary
Modifier and TypeFieldDescriptionstatic final DynamicPositionQueryJoiners.ExtraValueJoiner
This instance joins extra values with an inner join.static final DynamicPositionQueryJoiners.ExtraValueJoiner
This instance joins extra values with a left join.static final DynamicPositionQueryJoiners.ReporterListJoiner
This instance joins reporter lists with an inner join, unless theReporterListExpression.getAutoJoinType()
method overrides the default.static final DynamicPositionQueryJoiners.ReporterListJoiner
This instance joins reporter lists with a left join, unless theReporterListExpression.getAutoJoinType()
method overrides the default.static final DynamicPositionQueryJoiners.ReporterJoiner
This instance joins reporters with an inner join.static final DynamicPositionQueryJoiners.ReporterJoiner
This instance joins reporters with a left join. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetExtraValueJoiner
(JoinType joinType) Get a joiner instance for extra values for the specified join type.getReporterJoiner
(JoinType joinType) Get a joiner instance for reporters for the specified join type.getReporterListJoiner
(JoinType joinType) Get a joiner instance for reporter lists for the specified join type.
-
Field Details
-
EXTRA_VALUE_LEFT
This instance joins extra values with a left join. -
EXTRA_VALUE_INNER
This instance joins extra values with an inner join. -
REPORTERS_LEFT
This instance joins reporters with a left join. -
REPORTERS_INNER
This instance joins reporters with an inner join. -
REPORTER_LIST_LEFT
This instance joins reporter lists with a left join, unless theReporterListExpression.getAutoJoinType()
method overrides the default.- Since:
- 3.0
-
REPORTER_LIST_INNER
This instance joins reporter lists with an inner join, unless theReporterListExpression.getAutoJoinType()
method overrides the default.- Since:
- 3.0
-
-
Constructor Details
-
DynamicPositionQueryJoiners
public DynamicPositionQueryJoiners()
-
-
Method Details
-
getExtraValueJoiner
Get a joiner instance for extra values for the specified join type.- Parameters:
joinType
- The type of join- Returns:
EXTRA_VALUE_INNER
orEXTRA_VALUE_LEFT
-
getReporterJoiner
Get a joiner instance for reporters for the specified join type.- Parameters:
joinType
- The type of join- Returns:
REPORTERS_LEFT
orREPORTERS_INNER
-
getReporterListJoiner
public static DynamicPositionQueryJoiners.ReporterListJoiner getReporterListJoiner(JoinType joinType) Get a joiner instance for reporter lists for the specified join type.- Parameters:
joinType
- The type of join- Returns:
REPORTER_LIST_LEFT
orREPORTER_LIST_INNER
- Since:
- 3.0
-