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 Result
execute(OpenJPAStateManager sm, StoreManager store, FetchConfiguration fetch)
Execute the query for a given instance.SelectExecutor
getDelegate()
Gets the value to which this receiver delegates its execution.ClassMapping
getIdentifier()
Gets the identifier of this receiver.Column[]
getPKColumns()
java.lang.String
getQueryString()
Gets the query string.java.lang.String
toString()
-
-
-
Method Detail
-
getIdentifier
public ClassMapping getIdentifier()
Description copied from interface:FinderQuery
Gets the identifier of this receiver.- Specified by:
getIdentifier
in interfaceFinderQuery<ClassMapping,SelectExecutor,Result>
-
getDelegate
public SelectExecutor getDelegate()
Description copied from interface:FinderQuery
Gets the value to which this receiver delegates its execution.- Specified by:
getDelegate
in interfaceFinderQuery<ClassMapping,SelectExecutor,Result>
-
getQueryString
public java.lang.String getQueryString()
Description copied from interface:FinderQuery
Gets the query string.- Specified by:
getQueryString
in interfaceFinderQuery<ClassMapping,SelectExecutor,Result>
-
getPKColumns
public Column[] getPKColumns()
-
execute
public Result execute(OpenJPAStateManager sm, StoreManager store, FetchConfiguration fetch)
Description copied from interface:FinderQuery
Execute the query for a given instance.- Specified by:
execute
in 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:
toString
in classjava.lang.Object
-
-