2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.taxeditor
.store
.model
;
12 import java
.util
.Vector
;
14 import eu
.etaxonomy
.cdm
.persistence
.hibernate
.CdmDataChangeEvent
;
15 import eu
.etaxonomy
.cdm
.persistence
.hibernate
.CdmDataChangeMap
;
18 * Exchangeable algorithm defining what should happen after a client receives a notification
19 * that data was changed
25 public interface IDataChangeBehavior
{
28 * If a DataChangeEvent was considered relevant for the calling object
29 * the instructions implemented in this method will get executed
31 public void reactOnDataChange(CdmDataChangeMap changeEvents
);
34 * Define what should happen when an insert occurs. Clients may do
35 * further checking to see if the insert really affects their data
39 public void reactOnInsert(Vector
<CdmDataChangeEvent
> events
);
42 * Define what should happen when an update occurs. Clients may do
43 * further checking to see if the update really affects their data
47 public void reactOnUpdate(Vector
<CdmDataChangeEvent
> events
);
50 * Define what should happen when an delete occurs. Clients may do
51 * further checking to see if the delete really affects their data
55 public void reactOnDelete(Vector
<CdmDataChangeEvent
> events
);