public static class ExpressionStoreQuery.DataStoreExecutor extends ExpressionStoreQuery.AbstractExpressionExecutor implements StoreQuery.Executor, Serializable
executeQuery(org.apache.openjpa.kernel.StoreQuery, java.lang.Object[], org.apache.openjpa.kernel.StoreQuery.Range)
method.Constructor and Description |
---|
DataStoreExecutor(ExpressionStoreQuery q,
ClassMetaData meta,
boolean subclasses,
ExpressionParser parser,
Object parsed) |
Modifier and Type | Method and Description |
---|---|
Number |
executeDelete(StoreQuery q,
Object[] params)
Deleted the objects that result from the execution of the
query, retuning the number of objects that were deleted.
|
ResultObjectProvider |
executeQuery(StoreQuery q,
Object[] params,
StoreQuery.Range range)
Return the result of executing this query with the given parameter
values.
|
Number |
executeUpdate(StoreQuery q,
Object[] params)
Updates the objects that result from the execution of the
query, retuning the number of objects that were updated.
|
String[] |
getDataStoreActions(StoreQuery q,
Object[] params,
StoreQuery.Range range)
Return a description of the commands that will be sent to
the datastore in order to execute the query.
|
Object |
getOrderingValue(StoreQuery q,
Object[] params,
Object resultObject,
int orderIndex)
Extract the value of the
orderIndex th ordering
expression in Query#getOrderingClauses from the
given result object. |
Class[] |
getProjectionTypes(StoreQuery q)
Return the expected types of the projections used by this query,
or an empty array if not a projection.
|
QueryExpressions[] |
getQueryExpressions()
Return the parsed query expressions for our candidate types.
|
assertNotContainer, getAccessPathMetaDatas, getAlias, getAscending, getOperation, getOrderedParameterTypes, getProjectionAliases, getRange, getResultClass, getResultShape, getUpdates, hasGrouping, isAggregate, isDistinct, isPacking, toParameterArray, validate
getParameterTypes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAccessPathMetaDatas, getAlias, getAscending, getOperation, getOrderedParameterTypes, getParameterTypes, getProjectionAliases, getRange, getResultClass, getResultShape, getUpdates, hasGrouping, isAggregate, isDistinct, isPacking, toParameterArray, validate
public DataStoreExecutor(ExpressionStoreQuery q, ClassMetaData meta, boolean subclasses, ExpressionParser parser, Object parsed)
public QueryExpressions[] getQueryExpressions()
StoreQuery.Executor
getQueryExpressions
in interface StoreQuery.Executor
getQueryExpressions
in class AbstractStoreQuery.AbstractExecutor
public ResultObjectProvider executeQuery(StoreQuery q, Object[] params, StoreQuery.Range range)
StoreQuery.Executor
executeQuery
in interface StoreQuery.Executor
StoreQuery.Executor.isPacking(org.apache.openjpa.kernel.StoreQuery)
public Number executeDelete(StoreQuery q, Object[] params)
StoreQuery.Executor
executeDelete
in interface StoreQuery.Executor
executeDelete
in class AbstractStoreQuery.AbstractExecutor
public Number executeUpdate(StoreQuery q, Object[] params)
StoreQuery.Executor
executeUpdate
in interface StoreQuery.Executor
executeUpdate
in class AbstractStoreQuery.AbstractExecutor
public String[] getDataStoreActions(StoreQuery q, Object[] params, StoreQuery.Range range)
StoreQuery.Executor
getDataStoreActions
in interface StoreQuery.Executor
getDataStoreActions
in class AbstractStoreQuery.AbstractExecutor
public Object getOrderingValue(StoreQuery q, Object[] params, Object resultObject, int orderIndex)
StoreQuery.Executor
orderIndex
th ordering
expression in Query#getOrderingClauses
from the
given result object. The result object will be an object from
the result object provider returned from StoreQuery.Executor.executeQuery(org.apache.openjpa.kernel.StoreQuery, java.lang.Object[], org.apache.openjpa.kernel.StoreQuery.Range)
.
This method is used when several result lists have to be merged
in memory. If this exeuctor's parent query supports executors on
abstract or interface classes, this method will not be used.getOrderingValue
in interface StoreQuery.Executor
getOrderingValue
in class AbstractStoreQuery.AbstractExecutor
StoreQuery.supportsAbstractExecutors()
public Class[] getProjectionTypes(StoreQuery q)
StoreQuery.Executor
getProjectionTypes
in interface StoreQuery.Executor
getProjectionTypes
in class ExpressionStoreQuery.AbstractExpressionExecutor
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.