Package net.sf.basedb.core
Class DynamicSpotQueryJoiners.ExtraValueJoiner
- java.lang.Object
-
- net.sf.basedb.core.DynamicSpotQueryJoiners.ExtraValueJoiner
-
- All Implemented Interfaces:
AutoJoiner<DynamicSpotQuery,ExtraValueExpression>
- Enclosing class:
- DynamicSpotQueryJoiners
private static class DynamicSpotQueryJoiners.ExtraValueJoiner extends Object implements AutoJoiner<DynamicSpotQuery,ExtraValueExpression>
Joiner for extra values.- Version:
- 2.0
- Author:
- nicklas
- Last modified
- $Date: 2012-09-14 09:28:35 +0200 (fr, 14 sep 2012) $
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ExtraValueJoiner(JoinType joinType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<ExtraValueExpression>
getElementClass()
The type of the query element the implementation works for.Class<DynamicSpotQuery>
getQueryClass()
The type of the query the implementation works for.void
joinIfNeeded(DynamicSpotQuery query, ExtraValueExpression element)
Automatically join the tables that is is needed by the query element unless they are already joined.void
reset(DynamicSpotQuery query)
Called to indicate thatQuery.reset()
has been called on the given query.
-
-
-
Field Detail
-
joinType
private final JoinType joinType
-
-
Constructor Detail
-
ExtraValueJoiner
private ExtraValueJoiner(JoinType joinType)
-
-
Method Detail
-
getQueryClass
public Class<DynamicSpotQuery> 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<DynamicSpotQuery,ExtraValueExpression>
- Returns:
- A class object representing the query type
-
getElementClass
public Class<ExtraValueExpression> 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<DynamicSpotQuery,ExtraValueExpression>
- Returns:
- A class object representing the query element type
-
joinIfNeeded
public void joinIfNeeded(DynamicSpotQuery query, ExtraValueExpression element)
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<DynamicSpotQuery,ExtraValueExpression>
- Parameters:
query
- The queryelement
- The query element
-
reset
public void reset(DynamicSpotQuery query)
Description copied from interface:AutoJoiner
Called to indicate thatQuery.reset()
has been called on the given query.- Specified by:
reset
in interfaceAutoJoiner<DynamicSpotQuery,ExtraValueExpression>
- Parameters:
query
- The query
-
-