protected static class StoreManagerSQLQuery.SQLExecutor
extends org.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor
Constructor and Description |
---|
SQLExecutor() |
Modifier and Type | Method and Description |
---|---|
org.apache.openjpa.lib.rop.ResultObjectProvider |
executeQuery(org.apache.openjpa.kernel.StoreQuery storeQuery,
Object[] params,
org.apache.openjpa.kernel.StoreQuery.Range range) |
String[] |
getDataStoreActions(org.apache.openjpa.kernel.StoreQuery q,
Object[] params,
org.apache.openjpa.kernel.StoreQuery.Range range) |
int |
getOperation(org.apache.openjpa.kernel.StoreQuery q) |
boolean |
isPacking(org.apache.openjpa.kernel.StoreQuery q) |
Object[] |
toParameterArray(org.apache.openjpa.kernel.StoreQuery q,
Map userParams)
The given query is parsed to find the parameter tokens of the form
? |
executeDelete, executeUpdate, getAccessPathMetaDatas, getAlias, getAscending, getOrderedParameterTypes, getOrderingValue, getParameterTypes, getProjectionAliases, getProjectionTypes, getQueryExpressions, getRange, getResultClass, getResultShape, getUpdates, hasGrouping, isAggregate, isDistinct, validate
public int getOperation(org.apache.openjpa.kernel.StoreQuery q)
getOperation
in interface org.apache.openjpa.kernel.StoreQuery.Executor
getOperation
in class org.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor
public org.apache.openjpa.lib.rop.ResultObjectProvider executeQuery(org.apache.openjpa.kernel.StoreQuery storeQuery, Object[] params, org.apache.openjpa.kernel.StoreQuery.Range range)
public String[] getDataStoreActions(org.apache.openjpa.kernel.StoreQuery q, Object[] params, org.apache.openjpa.kernel.StoreQuery.Range range)
getDataStoreActions
in interface org.apache.openjpa.kernel.StoreQuery.Executor
getDataStoreActions
in class org.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor
public boolean isPacking(org.apache.openjpa.kernel.StoreQuery q)
isPacking
in interface org.apache.openjpa.kernel.StoreQuery.Executor
isPacking
in class org.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor
public Object[] toParameterArray(org.apache.openjpa.kernel.StoreQuery q, Map userParams)
?n
which
is different than ?
tokens in actual SQL parameter tokens. These
?n
style tokens are replaced in the query string by ?
tokens.
During the token parsing, the ordering of the tokens is recorded. The given userParam
must contain parameter keys as Integer and the same Integers must appear in the tokens.Copyright © GigaSpaces.