Package org.nuiton.topia.framework
Class TopiaFiresSupport.TopiaHibernateEvent
java.lang.Object
org.nuiton.topia.framework.TopiaFiresSupport.TopiaHibernateEvent
- All Implemented Interfaces:
java.io.Serializable,org.hibernate.event.spi.PostDeleteEventListener,org.hibernate.event.spi.PostInsertEventListener,org.hibernate.event.spi.PostLoadEventListener,org.hibernate.event.spi.PostUpdateEventListener,org.hibernate.event.spi.PreDeleteEventListener,org.hibernate.event.spi.PreInsertEventListener,org.hibernate.event.spi.PreLoadEventListener,org.hibernate.event.spi.PreUpdateEventListener
- Enclosing class:
- TopiaFiresSupport
public static class TopiaFiresSupport.TopiaHibernateEvent
extends java.lang.Object
implements org.hibernate.event.spi.PreInsertEventListener, org.hibernate.event.spi.PostInsertEventListener, org.hibernate.event.spi.PreLoadEventListener, org.hibernate.event.spi.PostLoadEventListener, org.hibernate.event.spi.PreUpdateEventListener, org.hibernate.event.spi.PostUpdateEventListener, org.hibernate.event.spi.PreDeleteEventListener, org.hibernate.event.spi.PostDeleteEventListener
Object permettant de faire le lien entre les events hibernate et topia
- Author:
- poussin <poussin@codelutin.com>
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected TopiaContextImplementorrootContext -
Constructor Summary
Constructors Constructor Description TopiaHibernateEvent(TopiaContextImplementor rootContext) -
Method Summary
Modifier and Type Method Description protected TopiaContextImplementorgetContext(TopiaContextImplementor parent, org.hibernate.Session hibernate)Recherche le context utilisant la session hibernate passe en parametrevoidonPostDelete(org.hibernate.event.spi.PostDeleteEvent event)voidonPostInsert(org.hibernate.event.spi.PostInsertEvent event)voidonPostLoad(org.hibernate.event.spi.PostLoadEvent event)voidonPostUpdate(org.hibernate.event.spi.PostUpdateEvent event)booleanonPreDelete(org.hibernate.event.spi.PreDeleteEvent event)booleanonPreInsert(org.hibernate.event.spi.PreInsertEvent event)voidonPreLoad(org.hibernate.event.spi.PreLoadEvent event)booleanonPreUpdate(org.hibernate.event.spi.PreUpdateEvent event)booleanrequiresPostCommitHanding(org.hibernate.persister.entity.EntityPersister persister)default booleanrequiresPostCommitHandling(org.hibernate.persister.entity.EntityPersister arg0)
-
Field Details
-
Constructor Details
-
Method Details
-
requiresPostCommitHanding
public boolean requiresPostCommitHanding(org.hibernate.persister.entity.EntityPersister persister) -
getContext
protected TopiaContextImplementor getContext(TopiaContextImplementor parent, org.hibernate.Session hibernate)Recherche le context utilisant la session hibernate passe en parametre- Parameters:
parent- le context parenthibernate- la session hibernate que doit utiliser le TopiaContext pour etre retourne- Returns:
- le TopiaContext utilisant cette session hibernate ou null si aucun TopiaContext n'utilise cette session.
-
onPreInsert
public boolean onPreInsert(org.hibernate.event.spi.PreInsertEvent event)- Specified by:
onPreInsertin interfaceorg.hibernate.event.spi.PreInsertEventListener
-
onPostInsert
public void onPostInsert(org.hibernate.event.spi.PostInsertEvent event)- Specified by:
onPostInsertin interfaceorg.hibernate.event.spi.PostInsertEventListener
-
onPreLoad
public void onPreLoad(org.hibernate.event.spi.PreLoadEvent event)- Specified by:
onPreLoadin interfaceorg.hibernate.event.spi.PreLoadEventListener
-
onPostLoad
public void onPostLoad(org.hibernate.event.spi.PostLoadEvent event)- Specified by:
onPostLoadin interfaceorg.hibernate.event.spi.PostLoadEventListener
-
onPreUpdate
public boolean onPreUpdate(org.hibernate.event.spi.PreUpdateEvent event)- Specified by:
onPreUpdatein interfaceorg.hibernate.event.spi.PreUpdateEventListener
-
onPostUpdate
public void onPostUpdate(org.hibernate.event.spi.PostUpdateEvent event)- Specified by:
onPostUpdatein interfaceorg.hibernate.event.spi.PostUpdateEventListener
-
onPreDelete
public boolean onPreDelete(org.hibernate.event.spi.PreDeleteEvent event)- Specified by:
onPreDeletein interfaceorg.hibernate.event.spi.PreDeleteEventListener
-
onPostDelete
public void onPostDelete(org.hibernate.event.spi.PostDeleteEvent event)- Specified by:
onPostDeletein interfaceorg.hibernate.event.spi.PostDeleteEventListener
-
requiresPostCommitHandling
public default boolean requiresPostCommitHandling(org.hibernate.persister.entity.EntityPersister arg0)
-