1 7 package org.jboss.test.hibernate; 9 10 import org.hibernate.Interceptor; 11 import org.hibernate.CallbackException; 12 import org.hibernate.EntityMode; 13 import org.hibernate.Transaction; 14 import org.hibernate.type.Type; 15 16 import java.io.Serializable ; 17 import java.util.Iterator ; 18 19 24 public class SimpleInterceptor implements Interceptor 25 { 26 public boolean onLoad(Object o, Serializable serializable, Object [] objects, String [] strings, Type[] types) throws CallbackException 27 { 28 return false; 29 } 30 31 public boolean onFlushDirty(Object o, Serializable serializable, Object [] objects, Object [] objects1, String [] strings, Type[] types) throws CallbackException 32 { 33 return false; 34 } 35 36 public boolean onSave(Object o, Serializable serializable, Object [] objects, String [] strings, Type[] types) throws CallbackException 37 { 38 return false; 39 } 40 41 public void onDelete(Object o, Serializable serializable, Object [] objects, String [] strings, Type[] types) throws CallbackException 42 { 43 } 44 45 public void preFlush(Iterator iterator) throws CallbackException 46 { 47 } 48 49 public void postFlush(Iterator iterator) throws CallbackException 50 { 51 } 52 53 public Boolean isTransient(Object o) 54 { 55 return null; 56 } 57 58 public int[] findDirty(Object o, Serializable serializable, Object [] objects, Object [] objects1, String [] strings, Type[] types) 59 { 60 return null; 61 } 62 63 public Object instantiate(String name, EntityMode entityMode, Serializable serializable) throws CallbackException 64 { 65 return null; 66 } 67 68 public String getEntityName(Object o) throws CallbackException 69 { 70 return null; 71 } 72 73 public Object getEntity(String name, Serializable serializable) throws CallbackException 74 { 75 return null; 76 } 77 78 public void afterTransactionBegin(Transaction transaction) 79 { 80 } 81 82 public void beforeTransactionCompletion(Transaction transaction) 83 { 84 } 85 86 public void afterTransactionCompletion(Transaction transaction) 87 { 88 } 89 } 90 | Popular Tags |