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 QueryImpl
QueryImpl.Compilation, QueryImpl.PackingResultObjectProvider, QueryImpl.RemoveOnCloseResultList -
Field Summary
Fields inherited from interface QueryFlushModes
FLUSH_FALSE, FLUSH_TRUE, FLUSH_WITH_CONNECTIONFields inherited from interface QueryOperations
OP_DELETE, OP_SELECT, OP_UPDATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongOverrides to run a bulk delete on the targets of the policy as well.longDeletes all of the instances that are satisfied by the query.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.longOverrides to run a bulk update on the targets of the policy as well.longPerforms an update of the instances that are satisfied by the query.Methods inherited from class QueryImpl
addAggregateListener, addFilterListener, assertNotReadOnly, assertNotSerialized, assertOpen, assertParameters, assertParameters, classForName, closeAll, closeResources, compilationFromCache, compile, declareParameters, decorateResultList, 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, updateInMemory
-
Constructor Details
-
DistributedQueryImpl
-
-
Method Details
-
execute
-
deleteAll
Overrides to run a bulk delete on the targets of the policy as well. -
deleteAll
Description copied from interface:QueryDeletes all of the instances that are satisfied by the query. -
updateAll
-
updateAll
Description copied from interface:QueryPerforms an update of the instances that are satisfied by the 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
-