org.openspaces.jpa.openjpa
Class StoreManagerSQLQuery.SQLExecutor
java.lang.Object
org.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor
org.openspaces.jpa.openjpa.StoreManagerSQLQuery.SQLExecutor
- All Implemented Interfaces:
- org.apache.openjpa.kernel.StoreQuery.Executor
- Enclosing class:
- StoreManagerSQLQuery
protected static class StoreManagerSQLQuery.SQLExecutor
- extends org.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor
Executes the filter as a SQL query.
Method Summary |
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 ? |
Methods inherited from class org.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor |
executeDelete, executeUpdate, getAccessPathMetaDatas, getAlias, getAscending, getOrderedParameterTypes, getOrderingValue, getParameterTypes, getProjectionAliases, getProjectionTypes, getQueryExpressions, getRange, getResultClass, getResultShape, getUpdates, hasGrouping, isAggregate, isDistinct, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StoreManagerSQLQuery.SQLExecutor
public StoreManagerSQLQuery.SQLExecutor()
getOperation
public int getOperation(org.apache.openjpa.kernel.StoreQuery q)
- Specified by:
getOperation
in interface org.apache.openjpa.kernel.StoreQuery.Executor
- Overrides:
getOperation
in class org.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor
executeQuery
public org.apache.openjpa.lib.rop.ResultObjectProvider executeQuery(org.apache.openjpa.kernel.StoreQuery storeQuery,
Object[] params,
org.apache.openjpa.kernel.StoreQuery.Range range)
getDataStoreActions
public String[] getDataStoreActions(org.apache.openjpa.kernel.StoreQuery q,
Object[] params,
org.apache.openjpa.kernel.StoreQuery.Range range)
- Specified by:
getDataStoreActions
in interface org.apache.openjpa.kernel.StoreQuery.Executor
- Overrides:
getDataStoreActions
in class org.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor
isPacking
public boolean isPacking(org.apache.openjpa.kernel.StoreQuery q)
- Specified by:
isPacking
in interface org.apache.openjpa.kernel.StoreQuery.Executor
- Overrides:
isPacking
in class org.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor
toParameterArray
public Object[] toParameterArray(org.apache.openjpa.kernel.StoreQuery q,
Map userParams)
- The given query is parsed to find the parameter tokens of the form
?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.