Package org.apache.openjpa.slice
Class DistributedQueryImpl
java.lang.Object
org.apache.openjpa.kernel.QueryImpl
org.apache.openjpa.slice.DistributedQueryImpl
- All Implemented Interfaces:
Serializable,Query,QueryContext,QueryFlushModes,QueryOperations
Extension with slice locking policy.
- Author:
- Pinaki Poddar
- See Also:
-
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_CONNECTIONFields inherited from interface org.apache.openjpa.kernel.QueryOperations
OP_DELETE, OP_SELECT, OP_UPDATE -
Constructor Summary
Constructors -
Method Summary
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 Details
-
DistributedQueryImpl
-
-
Method Details
-
execute
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
-