private static class HqlQueryJoiners.AnnotationJoiner extends Object implements AutoJoiner<HqlQuery,AnnotationExpression>
Modifier and Type | Field and Description |
---|---|
private Set<AnnotationType> |
hasJoined |
private JoinType |
joinType |
Modifier | Constructor and Description |
---|---|
private |
HqlQueryJoiners.AnnotationJoiner(JoinType joinType) |
Modifier and Type | Method and Description |
---|---|
Class<AnnotationExpression> |
getElementClass()
The type of the query element the implementation works for.
|
Class<HqlQuery> |
getQueryClass()
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 |
reset(HqlQuery query)
Called to indicate that
Query.reset() has been called on the
given query. |
private final JoinType joinType
private final Set<AnnotationType> hasJoined
private HqlQueryJoiners.AnnotationJoiner(JoinType joinType)
public Class<HqlQuery> getQueryClass()
AutoJoiner
getQueryClass
in interface AutoJoiner<HqlQuery,AnnotationExpression>
public Class<AnnotationExpression> getElementClass()
AutoJoiner
getElementClass
in interface AutoJoiner<HqlQuery,AnnotationExpression>
public void joinIfNeeded(HqlQuery query, AnnotationExpression element)
AutoJoiner
joinIfNeeded
in interface AutoJoiner<HqlQuery,AnnotationExpression>
query
- The queryelement
- The query elementpublic void reset(HqlQuery query)
AutoJoiner
Query.reset()
has been called on the
given query.reset
in interface AutoJoiner<HqlQuery,AnnotationExpression>
query
- The query