Package net.sf.basedb.core
Class DynamicPositionQueryJoiners
java.lang.Object
net.sf.basedb.core.DynamicPositionQueryJoiners
public final class DynamicPositionQueryJoiners extends Object
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
Nested Classes Modifier and Type Class Description private static class
DynamicPositionQueryJoiners.ExtraValueJoiner
Joiner for extra values.private static class
DynamicPositionQueryJoiners.ReporterJoiner
Joiner for reportersprivate static class
DynamicPositionQueryJoiners.ReporterListJoiner
Auto joiner for reporter lists. -
Field Summary
Fields Modifier and Type Field Description static DynamicPositionQueryJoiners.ExtraValueJoiner
EXTRA_VALUE_INNER
This instance joins extra values with an inner join.static DynamicPositionQueryJoiners.ExtraValueJoiner
EXTRA_VALUE_LEFT
This instance joins extra values with a left join.static DynamicPositionQueryJoiners.ReporterListJoiner
REPORTER_LIST_INNER
This instance joins reporter lists with an inner join, unless theReporterListExpression.getAutoJoinType()
method overrides the default.static DynamicPositionQueryJoiners.ReporterListJoiner
REPORTER_LIST_LEFT
This instance joins reporter lists with a left join, unless theReporterListExpression.getAutoJoinType()
method overrides the default.static DynamicPositionQueryJoiners.ReporterJoiner
REPORTERS_INNER
This instance joins reporters with an inner join.static DynamicPositionQueryJoiners.ReporterJoiner
REPORTERS_LEFT
This instance joins reporters with a left join. -
Constructor Summary
Constructors Constructor Description DynamicPositionQueryJoiners()
-
Method Summary
Modifier and Type Method Description static DynamicPositionQueryJoiners.ExtraValueJoiner
getExtraValueJoiner(JoinType joinType)
Get a joiner instance for extra values for the specified join type.static DynamicPositionQueryJoiners.ReporterJoiner
getReporterJoiner(JoinType joinType)
Get a joiner instance for reporters for the specified join type.static DynamicPositionQueryJoiners.ReporterListJoiner
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
-