Package net.sf.basedb.core
Class HqlQueryJoiners.AnnotationJoiner
java.lang.Object
net.sf.basedb.core.HqlQueryJoiners.AnnotationJoiner
- All Implemented Interfaces:
AutoJoiner<HqlQuery,
AnnotationExpression>
- Enclosing class:
- HqlQueryJoiners
private static class HqlQueryJoiners.AnnotationJoiner
extends Object
implements AutoJoiner<HqlQuery,AnnotationExpression>
Joiner for annotations.
- Since:
- 3.2
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe type of the query element the implementation works for.The type of the query the implementation works for.void
joinIfNeeded
(HqlQuery query, AnnotationExpression element) Automatically join the tables that is is needed by the query element unless they are already joined.void
Called to indicate thatQuery.reset()
has been called on the given query.
-
Field Details
-
joinType
-
hasJoined
-
-
Constructor Details
-
AnnotationJoiner
-
-
Method Details
-
getQueryClass
Description copied from interface:AutoJoiner
The type of the query the implementation works for. This can be an actual subclass or a superclass.- Specified by:
getQueryClass
in interfaceAutoJoiner<HqlQuery,
AnnotationExpression> - Returns:
- A class object representing the query type
-
getElementClass
Description copied from interface:AutoJoiner
The type of the query element the implementation works for. This can be an actual subclass or a superclass.- Specified by:
getElementClass
in interfaceAutoJoiner<HqlQuery,
AnnotationExpression> - Returns:
- A class object representing the query element type
-
joinIfNeeded
Description copied from interface:AutoJoiner
Automatically join the tables that is is needed by the query element unless they are already joined.- Specified by:
joinIfNeeded
in interfaceAutoJoiner<HqlQuery,
AnnotationExpression> - Parameters:
query
- The queryelement
- The query element
-
reset
Description copied from interface:AutoJoiner
Called to indicate thatQuery.reset()
has been called on the given query.- Specified by:
reset
in interfaceAutoJoiner<HqlQuery,
AnnotationExpression> - Parameters:
query
- The query
-