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
 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.
 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.

Returns:

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

String getQueryString()
Gets the query string.



Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.