blob: 89e2e5ecc3d60b7c4117cf4cd9cd2879576286d9 [file] [log] [blame]
/*
* Copyright (c) 2011, 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:
// 01/05/2010-2.1 Guy Pelletier
// - 211324: Add additional event(s) support to the EclipseLink-ORM.XML Schema
package org.eclipse.persistence.testing.models.jpa.inheritance.listeners;
import org.eclipse.persistence.descriptors.DescriptorEvent;
import org.eclipse.persistence.descriptors.DescriptorEventAdapter;
/**
* A listener class that implements DescriptorEventListener (directly or through
* an adapter) is added to the descriptor's event manager directly.
*
* @author gpelleti
*/
public class BusNativeListener extends DescriptorEventAdapter {
public static int PRE_WRITE_COUNT = 0;
public static int POST_WRITE_COUNT = 0;
@Override
public void preWrite(DescriptorEvent event) {
PRE_WRITE_COUNT++;
}
@Override
public void postWrite(DescriptorEvent event) {
POST_WRITE_COUNT++;
}
}