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
Modifier and TypeMethodDescriptionexecute
(OpenJPAStateManager sm, StoreManager store, FetchConfiguration fetch) Execute the query for a given instance.Gets the value to which this receiver delegates its execution.Gets the identifier of this receiver.Gets the query string.
-
Method Details
-
getIdentifier
K getIdentifier()Gets the identifier of this receiver. -
getDelegate
V getDelegate()Gets the value to which this receiver delegates its execution. -
execute
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
String getQueryString()Gets the query string.
-