public abstract class ModifyAllQuery extends ModifyQuery
DatabaseQuery.ParameterType
Modifier and Type | Field and Description |
---|---|
static int |
INVALIDATE_CACHE |
static int |
NO_CACHE
Cache usage flags
|
BATCH_FETCH_PROPERTY, CascadeAggregateDelete, CascadeAllParts, CascadeByMapping, CascadeDependentParts, CascadePrivateParts, NoCascading
Constructor and Description |
---|
ModifyAllQuery()
PUBLIC:
|
ModifyAllQuery(java.lang.Class referenceClass)
PUBLIC: Create a new update all query for the class specified.
|
ModifyAllQuery(java.lang.Class referenceClass, Expression selectionCriteria)
PUBLIC: Create a new update all query for the class and the selection criteria specified.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
executeInUnitOfWork(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow)
INTERNAL: Override query execution where Session is a UnitOfWork.
|
int |
getCacheUsage()
PUBLIC: Return the cache usage for this query.
|
ExpressionBuilder |
getExpressionBuilder()
PUBLIC: Get the expression builder which should be used for this query.
|
java.lang.Class |
getReferenceClass()
PUBLIC: Return the reference class for this query.
|
java.lang.String |
getReferenceClassName()
INTERNAL: Return the name of the reference class of the query.
|
boolean |
isModifyAllQuery()
PUBLIC: Return true if this is a modify all query.
|
boolean |
isPreparedUsingTempStorage()
INTERNAL:
|
void |
mergeChangesIntoSharedCache()
INTERNAL: After execution we need to merge the changes into the shared cache, unless the query has been tagged to bypass on the store.
|
void |
setCacheUsage(int cacheUsage)
PUBLIC: Set the level of cache support for this query, either NONE or INVALIDATE.
|
void |
setExpressionBuilder(ExpressionBuilder builder)
INTERNAL Sets the default expression builder for this query.
|
void |
setIsPreparedUsingTempStorage(boolean isPreparedUsingTempStorage)
INTERNAL:
|
void |
setReferenceClass(java.lang.Class referenceClass)
PUBLIC: Set the reference class this query.
|
void |
setReferenceClassName(java.lang.String className)
INTERNAL: Set the class name of the reference class of this query.
|
void |
setShouldDeferExecutionInUOW(boolean shouldDeferExecutionInUOW)
PUBLIC: Set a flag indicating whether execution should be deferred in UOW until commit.
|
boolean |
shouldDeferExecutionInUOW()
PUBLIC: Indicates whether execution should be deferred in UOW until commit.
|
forceBatchStatementExecution, getModifyRow, isBatchExecutionSupported, isModifyQuery, setForceBatchStatementExecution, setIsBatchExecutionSupported, setModifyRow
addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, addArgumentByTypeName, addArgumentValue, addArgumentValues, addCall, addStatement, bindAllParameters, buildArgumentFields, cacheStatement, cascadeAllParts, cascadeByMapping, cascadeOnlyDependentParts, cascadePrivateParts, checkDescriptor, checkEarlyReturn, checkPrepare, checkPrepare, clone, convertClassNamesToClasses, copyFromQuery, dontBindAllParameters, dontCacheStatement, dontCascadeParts, dontMaintainCache, execute, executeDatabaseQuery, extractRemoteResult, getAccessor, getAccessors, getArgumentParameterTypes, getArguments, getArgumentTypeNames, getArgumentTypes, getArgumentValues, getBatchObjects, getCall, getCascadePolicy, getDatasourceCall, getDatasourceCalls, getDescriptor, getDescriptors, getDomainClassNounName, getDoNotRedirect, getEJBQLString, getExecutionSession, getFlushOnExecute, getHintString, getJPQLString, getMonitorName, getName, getNullableArguments, getParameterDelimiter, getParameterDelimiterChar, getPartitioningPolicy, getProperties, getProperty, getQueryMechanism, getQueryNounName, getQueryTimeout, getRedirector, getRedirectorForQuery, getSelectionCriteria, getSensorName, getSession, getSessionName, getShouldBindAllParameters, getSourceMapping, getSQLStatement, getSQLString, getSQLStrings, getTranslatedSQLString, getTranslatedSQLStrings, getTranslationRow, hasAccessor, hasArguments, hasNullableArguments, hasProperties, hasQueryMechanism, hasSessionName, ignoreBindAllParameters, ignoreCacheStatement, isCallQuery, isCascadeOfAggregateDelete, isCustomQueryUsed, isDataModifyQuery, isDataReadQuery, isDefaultPropertiesQuery, isDeleteAllQuery, isDeleteObjectQuery, isDirectReadQuery, isExecutionClone, isExpressionQuery, isInsertObjectQuery, isJPQLCallQuery, isNativeConnectionRequired, isObjectBuildingQuery, isObjectLevelModifyQuery, isObjectLevelReadQuery, isPrepared, isReadAllQuery, isReadObjectQuery, isReadQuery, isReportQuery, isResultSetMappingQuery, isSQLCallQuery, isUpdateAllQuery, isUpdateObjectQuery, isUserDefined, isUserDefinedSQLCall, isValueReadQuery, isWriteObjectQuery, maintainCache, prepareCall, prepareForExecution, prepareFromQuery, prepareInternal, redirectQuery, remoteExecute, removeProperty, replaceValueHoldersIn, resetMonitorName, retrieveBypassCache, rowFromArguments, setAccessor, setAccessors, setAllowNativeSQLQuery, setArguments, setArgumentTypeNames, setArgumentTypes, setArgumentValues, setBatchObjects, setCall, setCascadePolicy, setDatasourceCall, setDescriptor, setDoNotRedirect, setEJBQLString, setFlushOnExecute, setHintString, setIsExecutionClone, setIsNativeConnectionRequired, setIsPrepared, setIsUserDefined, setIsUserDefinedSQLCall, setJPQLString, setName, setNullableArguments, setParameterDelimiter, setPartitioningPolicy, setProperties, setProperty, setQueryTimeout, setRedirector, setSelectionCriteria, setSession, setSessionName, setShouldBindAllParameters, setShouldBindAllParameters, setShouldCacheStatement, setShouldMaintainCache, setShouldPrepare, setShouldRetrieveBypassCache, setShouldStoreBypassCache, setShouldUseWrapperPolicy, setShouldValidateUpdateCallCacheUse, setSourceMapping, setSQLStatement, setSQLString, setTranslationRow, shouldAllowNativeSQLQuery, shouldBindAllParameters, shouldCacheStatement, shouldCascadeAllParts, shouldCascadeByMapping, shouldCascadeOnlyDependentParts, shouldCascadeParts, shouldCascadePrivateParts, shouldCloneCall, shouldIgnoreBindAllParameters, shouldIgnoreCacheStatement, shouldMaintainCache, shouldPrepare, shouldPrepare, shouldRetrieveBypassCache, shouldStoreBypassCache, shouldUseWrapperPolicy, shouldValidateUpdateCallCacheUse, storeBypassCache, toString
public static final int NO_CACHE
public static final int INVALIDATE_CACHE
public ModifyAllQuery()
public ModifyAllQuery(java.lang.Class referenceClass)
public ModifyAllQuery(java.lang.Class referenceClass, Expression selectionCriteria)
public boolean isModifyAllQuery()
isModifyAllQuery
in class DatabaseQuery
public void setIsPreparedUsingTempStorage(boolean isPreparedUsingTempStorage)
public boolean isPreparedUsingTempStorage()
public java.lang.Object executeInUnitOfWork(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow) throws DatabaseException, OptimisticLockException
If there are objects in the cache return the results of the cache lookup.
executeInUnitOfWork
in class DatabaseQuery
unitOfWork
- - the session in which the receiver will be executed.translationRow
- - the argumentsDatabaseException
- - an error has occurred on the database.OptimisticLockException
- - an error has occurred using the optimistic lock feature.public int getCacheUsage()
public ExpressionBuilder getExpressionBuilder()
public void setExpressionBuilder(ExpressionBuilder builder)
public java.lang.String getReferenceClassName()
getReferenceClassName
in class DatabaseQuery
public java.lang.Class getReferenceClass()
getReferenceClass
in class DatabaseQuery
public void mergeChangesIntoSharedCache()
public void setCacheUsage(int cacheUsage)
public void setReferenceClass(java.lang.Class referenceClass)
public void setReferenceClassName(java.lang.String className)
public void setShouldDeferExecutionInUOW(boolean shouldDeferExecutionInUOW)
public boolean shouldDeferExecutionInUOW()