package org.eclipse.che.api.core.jdbc.jpa.eclipselink;

import org.eclipse.persistence.descriptors.DescriptorEvent;
import org.eclipse.persistence.descriptors.DescriptorEventListener;

import java.util.Vector;

/**
 * Adapter class for receiving EclipseLink events.
 * The methods are empty, this class allows to implement
 * only needed methods.
 *
 * @author Yevhenii Voevodin
 */
public abstract class DescriptorEventAdapter implements DescriptorEventListener {

    @Override
    public void aboutToDelete(DescriptorEvent event) {}

    @Override
    public void aboutToInsert(DescriptorEvent event) {}

    @Override
    public void aboutToUpdate(DescriptorEvent event) {}

    @Override
    public boolean isOverriddenEvent(DescriptorEvent event, Vector eventManagers) { return false; }

    @Override
    public void postBuild(DescriptorEvent event) {}

    @Override
    public void postClone(DescriptorEvent event) {}

    @Override
    public void postDelete(DescriptorEvent event) {}

    @Override
    public void postInsert(DescriptorEvent event) {}

    @Override
    public void postMerge(DescriptorEvent event) {}

    @Override
    public void postRefresh(DescriptorEvent event) {}

    @Override
    public void postUpdate(DescriptorEvent event) {}

    @Override
    public void postWrite(DescriptorEvent event) {}

    @Override
    public void preDelete(DescriptorEvent event) {}

    @Override
    public void preInsert(DescriptorEvent event) {}

    @Override
    public void prePersist(DescriptorEvent event) {}

    @Override
    public void preRemove(DescriptorEvent event) {}

    @Override
    public void preUpdate(DescriptorEvent event) {}

    @Override
    public void preUpdateWithChanges(DescriptorEvent event) {}

    @Override
    public void preWrite(DescriptorEvent event) {}
}

@@ -1,8 +1,530 @@
+/*******************************************************************************%0A * Copyright (c) 2012-2016 Codenvy, S.A.%0A * All rights reserved. This program and the accompanying materials%0A * are made available under the terms of the Eclipse Public License v1.0%0A * which accompanies this distribution, and is available at%0A * http://www.eclipse.org/legal/epl-v10.html%0A *%0A * Contributors:%0A *   Codenvy, S.A. - initial API and implementation%0A *******************************************************************************/%0A
 package 

Add license header to DescriptorEventAdapter.java