1 package org.hibernate.event; 3 4 import java.io.Serializable ; 5 import java.util.Map ; 6 7 import org.hibernate.HibernateException; 8 import org.hibernate.Session; 9 import org.hibernate.engine.ActionQueue; 10 import org.hibernate.engine.EntityEntry; 11 import org.hibernate.engine.SessionImplementor; 12 import org.hibernate.persister.entity.EntityPersister; 13 14 17 public interface EventSource extends SessionImplementor, Session { 18 19 22 public ActionQueue getActionQueue(); 23 24 28 public Object instantiate(EntityPersister persister, Serializable id) throws HibernateException; 29 30 33 public void forceFlush(EntityEntry e) throws HibernateException; 34 35 38 public void merge(String entityName, Object object, Map copiedAlready) throws HibernateException; 39 42 public void persist(String entityName, Object object, Map createdAlready) throws HibernateException; 43 46 public void refresh(Object object, Map refreshedAlready) throws HibernateException; 47 50 public void saveOrUpdateCopy(String entityName, Object object, Map copiedAlready) throws HibernateException; 51 52 55 public void delete(String entityName, Object child, boolean isCascadeDeleteEnabled); 56 57 } 58 | Popular Tags |