Package net.sf.basedb.core
Class HqlQueryJoiners
java.lang.Object
net.sf.basedb.core.HqlQueryJoiners
This class collects
AutoJoiner
:s for HqlQuery
queries. The implementations are thread-safe and can be re-used between threads.- Version:
- 2.8
- Author:
- nicklas
- Last modified
- $Date: 2012-09-14 09:28:35 +0200 (fr, 14 sep 2012) $
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
Joiner for annotations.private static class
Joiner for reporter lists. -
Field Summary
Modifier and TypeFieldDescriptionstatic final HqlQueryJoiners.ReporterListJoiner
This instance joins reporter lists with an inner join, unless theReporterListExpression.getAutoJoinType()
method overrides the default.static final HqlQueryJoiners.ReporterListJoiner
This instance joins reporter lists with a left join, unless theReporterListExpression.getAutoJoinType()
method overrides the default. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAnnotationJoiner
(JoinType joinType) Get an annotation auto joiner.getReporterListJoiner
(JoinType joinType) Get a joiner instance for raw data for the specified join type.
-
Field Details
-
REPORTER_LIST_LEFT
This instance joins reporter lists with a left join, unless theReporterListExpression.getAutoJoinType()
method overrides the default. -
REPORTER_LIST_INNER
This instance joins reporter lists with an inner join, unless theReporterListExpression.getAutoJoinType()
method overrides the default.
-
-
Constructor Details
-
HqlQueryJoiners
public HqlQueryJoiners()
-
-
Method Details
-
getReporterListJoiner
Get a joiner instance for raw data for the specified join type.- Parameters:
joinType
- The type of join- Returns:
REPORTER_LIST_LEFT
orREPORTER_LIST_INNER
-
getAnnotationJoiner
Get an annotation auto joiner. Do not use the same auto-joiner for more than one query, since it will only join a given annotation type once.
-