1 29 30 package com.caucho.amber.entity; 31 32 35 public interface Listener 36 { 37 public static final int PRE_PERSIST = 1; 38 public static final int POST_PERSIST = 2; 39 public static final int PRE_REMOVE = 3; 40 public static final int POST_REMOVE = 4; 41 public static final int PRE_UPDATE = 5; 42 public static final int POST_UPDATE = 6; 43 public static final int POST_LOAD = 7; 44 45 48 public void __caucho_prePersist(Object entity); 49 50 53 public void __caucho_postPersist(Object entity); 54 55 58 public void __caucho_preRemove(Object entity); 59 60 63 public void __caucho_postRemove(Object entity); 64 65 68 public void __caucho_preUpdate(Object entity); 69 70 73 public void __caucho_postUpdate(Object entity); 74 75 79 public void __caucho_postLoad(Object entity); 80 81 84 public void __caucho_callback(int callbackIndex, Object entity); 85 } 86 | Popular Tags |