Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » event » def » [javadoc | source]
org.hibernate.event.def
public class: DefaultFlushEntityEventListener [javadoc | source]
java.lang.Object
   org.hibernate.event.def.DefaultFlushEntityEventListener

All Implemented Interfaces:
    FlushEntityEventListener

An event that occurs for each entity instance at flush time
Method from org.hibernate.event.def.DefaultFlushEntityEventListener Summary:
checkId,   dirtyCheck,   handleInterception,   invokeInterceptor,   isUpdateNecessary,   onFlushEntity,   validate
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.event.def.DefaultFlushEntityEventListener Detail:
 public  void checkId(Object object,
    EntityPersister persister,
    Serializable id,
    EntityMode entityMode) throws HibernateException 
    make sure user didn't mangle the id
 protected  void dirtyCheck(FlushEntityEvent event) throws HibernateException 
    Perform a dirty check, and attach the results to the event
 protected boolean handleInterception(FlushEntityEvent event) 
 protected boolean invokeInterceptor(SessionImplementor session,
    Object entity,
    EntityEntry entry,
    Object[] values,
    EntityPersister persister) 
 protected final boolean isUpdateNecessary(FlushEntityEvent event) throws HibernateException 
    Performs all necessary checking to determine if an entity needs an SQL update to synchronize its state to the database. Modifies the event by side-effect! Note: this method is quite slow, avoid calling if possible!
 public  void onFlushEntity(FlushEntityEvent event) throws HibernateException 
    Flushes a single entity's state to the database, by scheduling an update action, if necessary
 protected  void validate(Object entity,
    EntityPersister persister,
    Status status,
    EntityMode entityMode)