|
EclipseLink 1.0_1.0 M9 - 20080618 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.queries.DatabaseQuery
org.eclipse.persistence.queries.ModifyQuery
org.eclipse.persistence.queries.ModifyAllQuery
org.eclipse.persistence.queries.DeleteAllQuery
public class DeleteAllQuery
Purpose: Query used to delete a collection of objects
Responsibilities:
Field Summary | |
---|---|
protected java.util.Vector |
objects
|
Fields inherited from class org.eclipse.persistence.queries.ModifyAllQuery |
---|
defaultBuilder, INVALIDATE_CACHE, isPreparedUsingTempStorage, NO_CACHE, referenceClass, referenceClassName, result |
Fields inherited from class org.eclipse.persistence.queries.ModifyQuery |
---|
forceBatchStatementExecution, modifyRow |
Fields inherited from class org.eclipse.persistence.queries.DatabaseQuery |
---|
accessor, arguments, argumentTypeNames, argumentTypes, argumentValues, CascadeAggregateDelete, CascadeAllParts, CascadeByMapping, CascadeDependentParts, cascadePolicy, CascadePrivateParts, descriptor, executionSession, flushOnExecute, hintString, isCustomQueryUsed, isExecutionClone, isFromParseCache, isPrepared, isUserDefined, name, NoCascading, properties, queryMechanism, queryTimeout, redirector, session, sessionName, shouldBindAllParameters, shouldCacheStatement, shouldCloneCall, shouldMaintainCache, shouldPrepare, shouldUseWrapperPolicy, translationRow |
Constructor Summary | |
---|---|
DeleteAllQuery()
PUBLIC: |
|
DeleteAllQuery(java.lang.Class referenceClass)
PUBLIC: Create a new delete all query for the class specified. |
|
DeleteAllQuery(java.lang.Class referenceClass,
Expression selectionCriteria)
PUBLIC: Create a new delete all query for the class and the selection criteria specified. |
Method Summary | |
---|---|
java.lang.Object |
executeDatabaseQuery()
INTERNAL: Perform the work to delete a collection of objects. |
void |
executeDeleteAll(org.eclipse.persistence.internal.sessions.AbstractSession session,
org.eclipse.persistence.internal.sessions.AbstractRecord translationRow,
java.util.Vector objects)
INTERNAL: Delete all queries are executed specially to avoid cloning and ensure preparing. |
java.lang.Object |
executeInUnitOfWork(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork,
org.eclipse.persistence.internal.sessions.AbstractRecord translationRow)
INTERNAL: This method has to be broken. |
java.util.Vector |
getObjects()
PUBLIC: Return the objects that are to be deleted |
boolean |
isDeleteAllQuery()
PUBLIC: Return if this is a delete all query. |
protected void |
prepare()
INTERNAL: Prepare the receiver for execution in a session. |
void |
setObjects(java.util.Vector objectCollection)
PUBLIC (REQUIRED): Set the objects to be deleted. |
Methods inherited from class org.eclipse.persistence.queries.ModifyQuery |
---|
forceBatchStatementExecution, getModifyRow, setForceBatchStatementExecution, setModifyRow |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector objects
Constructor Detail |
---|
public DeleteAllQuery()
public DeleteAllQuery(java.lang.Class referenceClass)
public DeleteAllQuery(java.lang.Class referenceClass, Expression selectionCriteria)
Method Detail |
---|
public boolean isDeleteAllQuery()
isDeleteAllQuery
in class DatabaseQuery
public java.lang.Object executeInUnitOfWork(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow) throws DatabaseException, OptimisticLockException
executeInUnitOfWork
in class ModifyAllQuery
unitOfWork
- translationRow
-
org.eclipse.persistence.essentials.exceptions.DatabaseException
org.eclipse.persistence.essentials.exceptions.OptimisticLockException
DatabaseException
- - an error has occurred on the database.
OptimisticLockException
- - an error has occurred using the optimistic lock feature.public java.lang.Object executeDatabaseQuery() throws DatabaseException
executeDatabaseQuery
in class DatabaseQuery
DatabaseException
- - an error has occurred on the database.public void executeDeleteAll(org.eclipse.persistence.internal.sessions.AbstractSession session, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, java.util.Vector objects) throws DatabaseException
DatabaseException
public java.util.Vector getObjects()
protected void prepare() throws QueryException
prepare
in class DatabaseQuery
QueryException
public void setObjects(java.util.Vector objectCollection)
|
EclipseLink 1.0_1.0 M9 - 20080618 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |