blob: 6f7a8fbe292e3f12434dbe784e64817656d383c7 [file] [log] [blame]
/*
* Copyright (c) 1998, 2019 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 v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
// Contributors:
// Oracle - initial API and implementation from Oracle TopLink
package org.eclipse.persistence.sessions.changesets;
import java.util.List;
import org.eclipse.persistence.internal.sessions.ObjectChangeSet;
/**
* <p>
* <b>Purpose</b>: To provide API into the EISCollectionChangeSet.
* <p>
* <b>Description</b>: Capture the changes for an unordered collection as
* collections of adds and removes.
*/
public interface EISCollectionChangeRecord extends ChangeRecord {
/**
* ADVANCED:
* Return the objects added to the collection.
* The contents of this collection is determined by the mapping that
* populated it
*/
List<ObjectChangeSet> getAdds();
/**
* <p>
* ADVANCED:
* Return the objets whose Map keys have changed.
* The contents of this collection is determined by the mapping that
* populated it
*/
List getChangedMapKeys();
/**
* ADVANCED:
* Return the removed objects.
* The contents of this collection is determined by the mapping that
* populated it
*/
List<ObjectChangeSet> getRemoves();
/**
* ADVANCED:
* Return whether any changes have been recorded with the change record.
*/
boolean hasChanges();
}