Package net.sf.basedb.core
Class HqlQueryJoiners
java.lang.Object
net.sf.basedb.core.HqlQueryJoiners
public final class HqlQueryJoiners extends Object
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
Nested Classes Modifier and Type Class Description private static class
HqlQueryJoiners.AnnotationJoiner
Joiner for annotations.private static class
HqlQueryJoiners.ReporterListJoiner
Joiner for reporter lists. -
Field Summary
Fields Modifier and Type Field Description static HqlQueryJoiners.ReporterListJoiner
REPORTER_LIST_INNER
This instance joins reporter lists with an inner join, unless theReporterListExpression.getAutoJoinType()
method overrides the default.static HqlQueryJoiners.ReporterListJoiner
REPORTER_LIST_LEFT
This instance joins reporter lists with a left join, unless theReporterListExpression.getAutoJoinType()
method overrides the default. -
Constructor Summary
Constructors Constructor Description HqlQueryJoiners()
-
Method Summary
Modifier and Type Method Description static HqlQueryJoiners.AnnotationJoiner
getAnnotationJoiner(JoinType joinType)
Get an annotation auto joiner.static HqlQueryJoiners.ReporterListJoiner
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.
-