Package org.apache.openjpa.kernel
Interface FinderQuery<K,V,R>
-
- All Known Implementing Classes:
FinderQueryImpl
public interface FinderQuery<K,V,R>
A finder query is a query for an instance of a class by its primary key. A finder query is parameterized by the type of key K, type of value V and type of result R.- Since:
- 2.0.0
- Author:
- Pinaki Poddar
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description R
execute(OpenJPAStateManager sm, StoreManager store, FetchConfiguration fetch)
Execute the query for a given instance.V
getDelegate()
Gets the value to which this receiver delegates its execution.K
getIdentifier()
Gets the identifier of this receiver.java.lang.String
getQueryString()
Gets the query string.
-
-
-
Method Detail
-
getIdentifier
K getIdentifier()
Gets the identifier of this receiver.
-
getDelegate
V getDelegate()
Gets the value to which this receiver delegates its execution.
-
execute
R execute(OpenJPAStateManager sm, StoreManager store, FetchConfiguration fetch)
Execute the query for a given instance.- Parameters:
sm
- the StateManager for a given instance carrying the primary key values.store
- the data store against which the query is to be executed.fetch
- fetch parameters- Returns:
- the result of execution.
-
getQueryString
java.lang.String getQueryString()
Gets the query string.
-
-