org.apache.openjpa.slice.jdbc
Class DistributedStoreQuery
java.lang.Object
org.apache.openjpa.kernel.AbstractStoreQuery
org.apache.openjpa.kernel.ExpressionStoreQuery
org.apache.openjpa.jdbc.kernel.JDBCStoreQuery
org.apache.openjpa.slice.jdbc.DistributedStoreQuery
- All Implemented Interfaces:
- Serializable, QueryOperations, StoreQuery
class DistributedStoreQuery
- extends JDBCStoreQuery
A query for distributed databases.
- Author:
- Pinaki Poddar
Methods inherited from class org.apache.openjpa.jdbc.kernel.JDBCStoreQuery |
evaluate, executeDelete, executeQuery, executeUpdate, executeUpdate, executeUpdate, getDataStoreActions, getExpressionFactory, getFilterListener, getIndependentExpressionCandidates, getStore, getThreadLocalContext, getThreadLocalContext, getThreadLocalContext, getThreadLocalSelect, newCompilationKey, prepareStatement, supportsDataStoreExecution |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistributedStoreQuery
public DistributedStoreQuery(JDBCStore store,
ExpressionParser parser)
add
void add(StoreQuery q)
getDistributedStore
public DistributedJDBCStoreManager getDistributedStore()
newDataStoreExecutor
public StoreQuery.Executor newDataStoreExecutor(ClassMetaData meta,
boolean subs)
- Description copied from interface:
StoreQuery
- Return an executor for datastore execution of this query.
Executors must be cachable and thread safe. If this class returns
true from
StoreQuery.supportsAbstractExecutors()
, the given metadata
will always be for the candidate class of this query, or possibly
null if the candidate class is not itself persistence capable (like
an interface or abstract base class). Otherwise, the given type will
be a mapped class.
- Specified by:
newDataStoreExecutor
in interface StoreQuery
- Overrides:
newDataStoreExecutor
in class ExpressionStoreQuery
subs
- whether to include dependent mapped subclasses in the
results; independent subclasses should never be included
setContext
public void setContext(QueryContext ctx)
- Description copied from interface:
StoreQuery
- Set the current query context. This will be called before use.
- Specified by:
setContext
in interface StoreQuery
- Overrides:
setContext
in class AbstractStoreQuery
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.