
org.eclipse.persistence.queries.DeleteAllQuery Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 1998, 2014 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
* which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Oracle - initial API and implementation from Oracle TopLink
******************************************************************************/
package org.eclipse.persistence.queries;
import java.util.*;
import org.eclipse.persistence.exceptions.*;
import org.eclipse.persistence.expressions.*;
import org.eclipse.persistence.descriptors.DescriptorEvent;
import org.eclipse.persistence.descriptors.DescriptorEventManager;
import org.eclipse.persistence.internal.sessions.AbstractRecord;
import org.eclipse.persistence.internal.sessions.UnitOfWorkImpl;
import org.eclipse.persistence.internal.sessions.AbstractSession;
import org.eclipse.persistence.descriptors.ClassDescriptor;
/**
* Purpose:
* Query used to delete a collection of objects.
* This is used by mappings to delete all of their target objects in a single database call.
* The SQL/SQLStatements must be provided.
*
* DeleteAll can also be used with an Expression (or JPQL) to dynamically delete
* a set of objects from the database, and invalidate them in the cache.
*
*
Responsibilities:
*
* - Stores {@literal &} retrieves the objects to delete.
*
- Store the where clause used for the deletion.
*
*
* @author Yvon Lavoie
* @since TOPLink/Java 1.0
*/
public class DeleteAllQuery extends ModifyAllQuery {
/** List containing objects to be deleted, these should be removed from the identity map after deletion. */
protected List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy