Package org.apache.openjpa.slice
Class DistributedQueryImpl
- java.lang.Object
-
- org.apache.openjpa.kernel.QueryImpl
-
- org.apache.openjpa.slice.DistributedQueryImpl
-
- All Implemented Interfaces:
java.io.Serializable,Query,QueryContext,QueryFlushModes,QueryOperations
public class DistributedQueryImpl extends QueryImpl
Extension with slice locking policy.- Author:
- Pinaki Poddar
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.openjpa.kernel.QueryImpl
QueryImpl.Compilation, QueryImpl.PackingResultObjectProvider, QueryImpl.RemoveOnCloseResultList
-
-
Field Summary
-
Fields inherited from interface org.apache.openjpa.kernel.QueryFlushModes
FLUSH_FALSE, FLUSH_TRUE, FLUSH_WITH_CONNECTION
-
Fields inherited from interface org.apache.openjpa.kernel.QueryOperations
OP_DELETE, OP_SELECT, OP_UPDATE
-
-
Constructor Summary
Constructors Constructor Description DistributedQueryImpl(Broker broker, java.lang.String language, StoreQuery storeQuery)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectexecute(java.util.Map params)Overrides to set the query targets via policy, if user has not already set the targets via hint explicitly on this query.voidlock()Always uses lock irrespective of super's multi-threaded settings.voidunlock()Unlock the query's internal lock.-
Methods inherited from class org.apache.openjpa.kernel.QueryImpl
addAggregateListener, addFilterListener, assertNotReadOnly, assertNotSerialized, assertOpen, assertParameters, assertParameters, classForName, closeAll, closeResources, compilationFromCache, compile, declareParameters, decorateResultList, deleteAll, deleteAll, deleteAll, deleteInMemory, execute, execute, getAccessPathMetaDatas, getAggregateListener, getAggregateListeners, getAlias, getBroker, getCandidateCollection, getCandidateExtent, getCandidateType, getCompilation, getDataStoreActions, getEndRange, getFetchConfiguration, getFilterListener, getFilterListeners, getIgnoreChanges, getLanguage, getOperation, getOrderedParameterTypes, getParameterDeclaration, getParameterTypes, getProjectionAliases, getProjectionTypes, getQuery, getQueryString, getResultMappingName, getResultMappingScope, getResultType, getStartRange, getStoreContext, getStoreQuery, getUpdates, hasGrouping, hasSubclasses, isAccessPathDirty, isAggregate, isDistinct, isParsedQuery, isReadOnly, isUnique, removeAggregateListener, removeFilterListener, setCandidateCollection, setCandidateExtent, setCandidateType, setIgnoreChanges, setQuery, setRange, setReadOnly, setResultMapping, setResultType, setUnique, startLocking, stopLocking, toResult, toString, updateAll, updateAll, updateAll, updateInMemory
-
-
-
-
Constructor Detail
-
DistributedQueryImpl
public DistributedQueryImpl(Broker broker, java.lang.String language, StoreQuery storeQuery)
-
-
Method Detail
-
execute
public java.lang.Object execute(java.util.Map params)
Overrides to set the query targets via policy, if user has not already set the targets via hint explicitly on this query.
-
lock
public void lock()
Always uses lock irrespective of super's multi-threaded settings.- Specified by:
lockin interfaceQueryContext- Overrides:
lockin classQueryImpl
-
unlock
public void unlock()
Description copied from interface:QueryContextUnlock the query's internal lock.- Specified by:
unlockin interfaceQueryContext- Overrides:
unlockin classQueryImpl
-
-