|
|||||||||
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 |
---|
Fields inherited from class org.eclipse.persistence.queries.ModifyAllQuery |
---|
INVALIDATE_CACHE, NO_CACHE |
Fields inherited from class org.eclipse.persistence.queries.DatabaseQuery |
---|
BATCH_FETCH_PROPERTY, CascadeAggregateDelete, CascadeAllParts, CascadeByMapping, CascadeDependentParts, CascadePrivateParts, NoCascading |
Constructor Summary | |
---|---|
DeleteAllQuery()
PUBLIC: |
|
DeleteAllQuery(Class referenceClass)
PUBLIC: Create a new delete all query for the class specified. |
|
DeleteAllQuery(Class referenceClass,
Expression selectionCriteria)
PUBLIC: Create a new delete all query for the class and the selection criteria specified. |
Method Summary | |
---|---|
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,
Vector objects)
INTERNAL: Delete all queries are executed specially to avoid cloning and ensure preparing. |
Object |
executeInUnitOfWork(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork,
org.eclipse.persistence.internal.sessions.AbstractRecord translationRow)
INTERNAL: This method has to be broken. |
Vector |
getObjects()
PUBLIC: Return the objects that are to be deleted |
boolean |
isDeleteAllQuery()
PUBLIC: Return if this is a delete all query. |
void |
setObjects(Vector objectCollection)
PUBLIC (REQUIRED): Set the objects to be deleted. |
Methods inherited from class org.eclipse.persistence.queries.ModifyAllQuery |
---|
getCacheUsage, getExpressionBuilder, getReferenceClass, getReferenceClassName, isModifyQuery, isPreparedUsingTempStorage, mergeChangesIntoSharedCache, setCacheUsage, setExpressionBuilder, setIsPreparedUsingTempStorage, setReferenceClass, setReferenceClassName, setShouldDeferExecutionInUOW, shouldDeferExecutionInUOW |
Methods inherited from class org.eclipse.persistence.queries.ModifyQuery |
---|
forceBatchStatementExecution, getModifyRow, setForceBatchStatementExecution, setModifyRow |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DeleteAllQuery()
public DeleteAllQuery(Class referenceClass)
public DeleteAllQuery(Class referenceClass, Expression selectionCriteria)
Method Detail |
---|
public boolean isDeleteAllQuery()
isDeleteAllQuery
in class DatabaseQuery
public 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 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, Vector objects) throws DatabaseException
DatabaseException
public Vector getObjects()
public void setObjects(Vector objectCollection)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |