1 19 package org.apache.cayenne; 20 21 import org.apache.cayenne.reflect.LifecycleCallbackRegistry; 22 23 32 public interface LifecycleListener { 33 34 public static final int PRE_PERSIST = 0; 35 public static final int PRE_REMOVE = 1; 36 public static final int PRE_UPDATE = 2; 37 public static final int POST_PERSIST = 3; 38 public static final int POST_REMOVE = 4; 39 public static final int POST_UPDATE = 5; 40 public static final int POST_LOAD = 6; 41 42 void prePersist(Object entity); 43 44 void postPersist(Object entity); 45 46 void preRemove(Object entity); 47 48 void postRemove(Object entity); 49 50 void preUpdate(Object entity); 51 52 void postUpdate(Object entity); 53 54 void postLoad(Object entity); 55 } 56 | Popular Tags |