1 package org.hibernate.classic; 3 4 import java.io.Serializable ; 5 6 import org.hibernate.CallbackException; 7 import org.hibernate.Session; 8 9 40 public interface Lifecycle { 41 42 45 public static final boolean VETO = true; 46 47 50 public static final boolean NO_VETO = false; 51 52 58 public boolean onSave(Session s) throws CallbackException; 59 60 68 public boolean onUpdate(Session s) throws CallbackException; 69 70 76 public boolean onDelete(Session s) throws CallbackException; 77 78 87 public void onLoad(Session s, Serializable id); 88 } 89 90 91 92 93 94 95 | Popular Tags |