minor
[cdmlib.git] / cdmlib-persistence / src / main / java / eu / etaxonomy / cdm / persistence / hibernate / CdmCrudEvent.java
index 6e82d697acf51bb34219241f49dfc4fbd16c3bb5..4c4d3fbe7cccf8c86f8092f0b38871bea8bc3adb 100644 (file)
@@ -102,6 +102,21 @@ public class CdmCrudEvent extends AbstractEvent{
                return eventType;
        }
 
+       public boolean isInsert(){
+               return eventType == EventType.INSERT;
+       }
+       
+       public boolean isLoad(){
+               return eventType == EventType.LOAD;
+       }
+       
+       public boolean isUpdate(){
+               return eventType == EventType.UPDATE;
+       }
+       
+       public boolean isDelete(){
+               return eventType == EventType.DELETE;
+       }
 
        /**
         * @param event