org.apache.openjpa.slice.jdbc
Class DistributedSQLStoreQuery.ParallelExecutor
java.lang.Object
org.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor
org.apache.openjpa.jdbc.kernel.SQLStoreQuery.SQLExecutor
org.apache.openjpa.slice.jdbc.DistributedSQLStoreQuery.ParallelExecutor
- All Implemented Interfaces:
- StoreQuery.Executor
- Enclosing class:
- DistributedSQLStoreQuery
public static class DistributedSQLStoreQuery.ParallelExecutor
- extends SQLStoreQuery.SQLExecutor
Executes queries on multiple databases.
- Author:
- Pinaki Poddar
| Methods inherited from class org.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor |
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 |
DistributedSQLStoreQuery.ParallelExecutor
public DistributedSQLStoreQuery.ParallelExecutor(DistributedSQLStoreQuery dsq,
ClassMetaData meta,
boolean p)
addExecutor
public void addExecutor(StoreQuery.Executor ex)
executeQuery
public ResultObjectProvider executeQuery(StoreQuery q,
Object[] params,
StoreQuery.Range range)
- Each child query must be executed with slice context and not the
given query context.
- Specified by:
executeQuery in interface StoreQuery.Executor- Overrides:
executeQuery in class SQLStoreQuery.SQLExecutor
containsReplicated
boolean containsReplicated(QueryContext query)
- Scans metadata to find out if a replicated class is the candidate.
executeDelete
public Number executeDelete(StoreQuery q,
Object[] params)
- Specified by:
executeDelete in interface StoreQuery.Executor- Overrides:
executeDelete in class AbstractStoreQuery.AbstractExecutor
executeUpdate
public Number executeUpdate(StoreQuery q,
Object[] params)
- Specified by:
executeUpdate in interface StoreQuery.Executor- Overrides:
executeUpdate in class SQLStoreQuery.SQLExecutor
findTargets
List<SliceStoreManager> findTargets()
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.