blob: 0d099b79488adc2fa6c2a72581391d8bc259fbb3 [file] [log] [blame]
/*
* Copyright (c) 1998, 2021 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.testing.models.aggregate;
import org.eclipse.persistence.descriptors.*;
/**
* Listener to listen to the aboutToUpdate event which occurs when an update occurs
*/
public class AggregateUpdateDescriptorListener extends DescriptorEventAdapter {
public boolean updateOccured = false;
@Override
public void aboutToUpdate(DescriptorEvent event) {
updateOccured = true;
}
public boolean didUpdateOccur() {
return updateOccured;
}
}