Package org.apache.openjpa.jdbc.kernel
Class FinderQueryImpl
- java.lang.Object
-
- org.apache.openjpa.jdbc.kernel.FinderQueryImpl
-
- All Implemented Interfaces:
FinderQuery<ClassMapping,SelectExecutor,Result>
public class FinderQueryImpl extends java.lang.Object implements FinderQuery<ClassMapping,SelectExecutor,Result>
Implements Finder Query identified by ClassMappping for SelectExecutor that can be executed to generate Result.- Since:
- 2.0.0
- Author:
- Pinaki Poddar
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resultexecute(OpenJPAStateManager sm, StoreManager store, FetchConfiguration fetch)Execute the query for a given instance.SelectExecutorgetDelegate()Gets the value to which this receiver delegates its execution.ClassMappinggetIdentifier()Gets the identifier of this receiver.Column[]getPKColumns()java.lang.StringgetQueryString()Gets the query string.java.lang.StringtoString()
-
-
-
Method Detail
-
getIdentifier
public ClassMapping getIdentifier()
Description copied from interface:FinderQueryGets the identifier of this receiver.- Specified by:
getIdentifierin interfaceFinderQuery<ClassMapping,SelectExecutor,Result>
-
getDelegate
public SelectExecutor getDelegate()
Description copied from interface:FinderQueryGets the value to which this receiver delegates its execution.- Specified by:
getDelegatein interfaceFinderQuery<ClassMapping,SelectExecutor,Result>
-
getQueryString
public java.lang.String getQueryString()
Description copied from interface:FinderQueryGets the query string.- Specified by:
getQueryStringin interfaceFinderQuery<ClassMapping,SelectExecutor,Result>
-
getPKColumns
public Column[] getPKColumns()
-
execute
public Result execute(OpenJPAStateManager sm, StoreManager store, FetchConfiguration fetch)
Description copied from interface:FinderQueryExecute the query for a given instance.- Specified by:
executein interfaceFinderQuery<ClassMapping,SelectExecutor,Result>- 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.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-