Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated)
11g Release 1 (11.1.1)

B32476-04

oracle.toplink.queryframework
Class ModifyAllQuery

java.lang.Object
  extended by oracle.toplink.queryframework.DatabaseQuery
      extended by oracle.toplink.queryframework.ModifyQuery
          extended by oracle.toplink.queryframework.ModifyAllQuery
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, oracle.toplink.internal.helper.FalseUndefinedTrue
Direct Known Subclasses:
DeleteAllQuery, UpdateAllQuery

public abstract class ModifyAllQuery
extends ModifyQuery

Query used to perform a bulk delete using TopLink's expression framework.

See Also:
Serialized Form

Field Summary
static int INVALIDATE_CACHE
           
static int NO_CACHE
          Cache usage flags
 
Fields inherited from class oracle.toplink.queryframework.DatabaseQuery
CascadeAggregateDelete, CascadeAllParts, CascadeByMapping, CascadeDependentParts, CascadePrivateParts, NoCascading
 
Constructor Summary
ModifyAllQuery()
          
ModifyAllQuery(java.lang.Class referenceClass)
          Create a new update all query for the class specified.
ModifyAllQuery(java.lang.Class referenceClass, Expression selectionCriteria)
          Create a new update all query for the class and the selection criteria specified.
 
Method Summary
 int getCacheUsage()
          Return the cache usage for this query.
 ExpressionBuilder getExpressionBuilder()
          Get the expression builder which should be used for this query.
 java.lang.Class getReferenceClass()
          Return the reference class for this query.
 boolean isModifyQuery()
          Return true if this is a modify query.
 void setCacheUsage(int cacheUsage)
          Set the level of cache support for this query, either NONE or INVALIDATE.
 void setReferenceClass(java.lang.Class referenceClass)
          Set the reference class this query.
 void setShouldDeferExecutionInUOW(boolean shouldDeferExecutionInUOW)
          Set a flag indicating whether execution should be deferred in UOW until commit.
 boolean shouldDeferExecutionInUOW()
          Indicates whether execution should be deferred in UOW until commit.
 
Methods inherited from class oracle.toplink.queryframework.ModifyQuery
forceBatchStatementExecution, setForceBatchStatementExecution
 
Methods inherited from class oracle.toplink.queryframework.DatabaseQuery
addArgument, addArgument, addArgument, addArgumentValue, addArgumentValues, addCall, addStatement, bindAllParameters, cacheStatement, cascadeAllParts, cascadeByMapping, cascadePrivateParts, dontBindAllParameters, dontCacheStatement, dontCascadeParts, dontMaintainCache, getCall, getCalls, getDatasourceCall, getDatasourceCalls, getEJBQLString, getFlushOnExecute, getHintString, getJPQLString, getName, getQueryTimeout, getRedirector, getSelectionCriteria, getSessionName, getSQLStatement, getSQLString, getSQLStrings, getTranslatedSQLString, getTranslatedSQLStrings, hasSessionName, ignoreBindAllParameters, ignoreCacheStatement, isCallQuery, isDataModifyQuery, isDataReadQuery, isDeleteAllQuery, isDeleteObjectQuery, isDirectReadQuery, isExpressionQuery, isInsertObjectQuery, isModifyAllQuery, isNativeConnectionRequired, isObjectBuildingQuery, isObjectLevelModifyQuery, isObjectLevelReadQuery, isReadAllQuery, isReadObjectQuery, isReadQuery, isReportQuery, isSQLCallQuery, isUpdateAllQuery, isUpdateObjectQuery, isValueReadQuery, isWriteObjectQuery, maintainCache, prepareCall, setCall, setDatasourceCall, setEJBQLString, setFlushOnExecute, setHintString, setIsNativeConnectionRequired, setJPQLString, setName, setQueryTimeout, setRedirector, setSelectionCriteria, setSessionName, setShouldBindAllParameters, setShouldCacheStatement, setShouldMaintainCache, setShouldPrepare, setShouldUseWrapperPolicy, setSQLStatement, setSQLString, shouldBindAllParameters, shouldCacheStatement, shouldCascadeAllParts, shouldCascadeByMapping, shouldCascadeParts, shouldCascadePrivateParts, shouldIgnoreBindAllParameters, shouldIgnoreCacheStatement, shouldMaintainCache, shouldPrepare, shouldUseWrapperPolicy, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_CACHE

public static final int NO_CACHE
Description copied from class: ModifyAllQuery
Cache usage flags

See Also:
Constant Field Values

INVALIDATE_CACHE

public static final int INVALIDATE_CACHE
See Also:
Constant Field Values
Constructor Detail

ModifyAllQuery

public ModifyAllQuery()


ModifyAllQuery

public ModifyAllQuery(java.lang.Class referenceClass)
Create a new update all query for the class specified.


ModifyAllQuery

public ModifyAllQuery(java.lang.Class referenceClass,
                      Expression selectionCriteria)
Create a new update all query for the class and the selection criteria specified.

Method Detail

isModifyQuery

public boolean isModifyQuery()
Return true if this is a modify query.

Overrides:
isModifyQuery in class ModifyQuery

getCacheUsage

public int getCacheUsage()
Return the cache usage for this query.


getExpressionBuilder

public ExpressionBuilder getExpressionBuilder()
Get the expression builder which should be used for this query. This expression builder should be used to build all expressions used by this query.


getReferenceClass

public java.lang.Class getReferenceClass()
Return the reference class for this query.

Overrides:
getReferenceClass in class DatabaseQuery

setCacheUsage

public void setCacheUsage(int cacheUsage)
Set the level of cache support for this query, either NONE or INVALIDATE.


setReferenceClass

public void setReferenceClass(java.lang.Class referenceClass)
Set the reference class this query.


setShouldDeferExecutionInUOW

public void setShouldDeferExecutionInUOW(boolean shouldDeferExecutionInUOW)
Set a flag indicating whether execution should be deferred in UOW until commit.


shouldDeferExecutionInUOW

public boolean shouldDeferExecutionInUOW()
Indicates whether execution should be deferred in UOW until commit.


Copyright © 1998, 2012, Oracle. All Rights Reserved.