had to rename the packages to make them compliant with buckminster
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / model / AbstractDataChangeBehaviour.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10
11 package eu.etaxonomy.taxeditor.model;
12
13 import java.util.Vector;
14
15 import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeEvent;
16 import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
17
18 /**
19 * Reactions on specific EventyTypes are overridden here for convenience.
20 *
21 * @author n.hoffmann
22 * @created 09.04.2009
23 * @version 1.0
24 */
25 public abstract class AbstractDataChangeBehaviour implements IDataChangeBehavior {
26
27 /* (non-Javadoc)
28 * @see eu.etaxonomy.taxeditor.store.model.IDataChangeBehavior#reactOnDataChange(java.lang.Object, java.util.List)
29 */
30 /** {@inheritDoc} */
31 public abstract void reactOnDataChange(CdmDataChangeMap events);
32
33 /**
34 * {@inheritDoc}
35 *
36 * Implementors should overwrite this method if needed
37 * @see eu.etaxonomy.taxeditor.model.IDataChangeBehavior#reactOnDelete(java.lang.Object, eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeEvent)
38 */
39 public void reactOnDelete(Vector<CdmDataChangeEvent> event) {}
40
41 /**
42 * {@inheritDoc}
43 *
44 * Implementors should overwrite this method if needed
45 * @see eu.etaxonomy.taxeditor.model.IDataChangeBehavior#reactOnInsert(java.lang.Object, eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeEvent)
46 */
47 public void reactOnInsert(Vector<CdmDataChangeEvent> event) {}
48
49 /**
50 * {@inheritDoc}
51 *
52 * Implementors should overwrite this method if needed
53 * @see eu.etaxonomy.taxeditor.model.IDataChangeBehavior#reactOnUpdate(java.lang.Object, eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeEvent)
54 */
55 public void reactOnUpdate(Vector<CdmDataChangeEvent> event) {}
56 }