|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.event.def.AbstractEventListener
org.hibernate.event.def.DefaultFlushEntityEventListener
An event that occurs for each entity instance at flush time
Constructor Summary | |
DefaultFlushEntityEventListener()
|
Method Summary | |
void |
checkId(Object object,
EntityPersister persister,
Serializable id,
EntityMode entityMode)
make sure user didn't mangle the id |
protected void |
dirtyCheck(FlushEntityEvent event)
Perform a dirty check, and attach the results to the event |
protected boolean |
isUpdateNecessary(FlushEntityEvent event)
Performs all necessary checking to determine if an entity needs an SQL update to synchronize its state to the database. |
void |
onFlushEntity(FlushEntityEvent event)
Flushes a single entity's state to the database, by scheduling an update action, if necessary |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultFlushEntityEventListener()
Method Detail |
public void checkId(Object object, EntityPersister persister, Serializable id, EntityMode entityMode) throws HibernateException
HibernateException
public void onFlushEntity(FlushEntityEvent event) throws HibernateException
onFlushEntity
in interface FlushEntityEventListener
HibernateException
protected final boolean isUpdateNecessary(FlushEntityEvent event) throws HibernateException
HibernateException
protected void dirtyCheck(FlushEntityEvent event) throws HibernateException
HibernateException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |