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 TopiaContextImplementor rootContext  
  • Constructor Summary

    Constructors 
    Constructor Description
    TopiaHibernateEvent​(TopiaContextImplementor rootContext)  
  • Method Summary

    Modifier and Type Method Description
    protected TopiaContextImplementor getContext​(TopiaContextImplementor parent, org.hibernate.Session hibernate)
    Recherche le context utilisant la session hibernate passe en parametre
    void onPostDelete​(org.hibernate.event.spi.PostDeleteEvent event)  
    void onPostInsert​(org.hibernate.event.spi.PostInsertEvent event)  
    void onPostLoad​(org.hibernate.event.spi.PostLoadEvent event)  
    void onPostUpdate​(org.hibernate.event.spi.PostUpdateEvent event)  
    boolean onPreDelete​(org.hibernate.event.spi.PreDeleteEvent event)  
    boolean onPreInsert​(org.hibernate.event.spi.PreInsertEvent event)  
    void onPreLoad​(org.hibernate.event.spi.PreLoadEvent event)  
    boolean onPreUpdate​(org.hibernate.event.spi.PreUpdateEvent event)  
    boolean requiresPostCommitHanding​(org.hibernate.persister.entity.EntityPersister persister)  
    default boolean requiresPostCommitHandling​(org.hibernate.persister.entity.EntityPersister arg0)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 parent
      hibernate - 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:
      onPreInsert in interface org.hibernate.event.spi.PreInsertEventListener
    • onPostInsert

      public void onPostInsert​(org.hibernate.event.spi.PostInsertEvent event)
      Specified by:
      onPostInsert in interface org.hibernate.event.spi.PostInsertEventListener
    • onPreLoad

      public void onPreLoad​(org.hibernate.event.spi.PreLoadEvent event)
      Specified by:
      onPreLoad in interface org.hibernate.event.spi.PreLoadEventListener
    • onPostLoad

      public void onPostLoad​(org.hibernate.event.spi.PostLoadEvent event)
      Specified by:
      onPostLoad in interface org.hibernate.event.spi.PostLoadEventListener
    • onPreUpdate

      public boolean onPreUpdate​(org.hibernate.event.spi.PreUpdateEvent event)
      Specified by:
      onPreUpdate in interface org.hibernate.event.spi.PreUpdateEventListener
    • onPostUpdate

      public void onPostUpdate​(org.hibernate.event.spi.PostUpdateEvent event)
      Specified by:
      onPostUpdate in interface org.hibernate.event.spi.PostUpdateEventListener
    • onPreDelete

      public boolean onPreDelete​(org.hibernate.event.spi.PreDeleteEvent event)
      Specified by:
      onPreDelete in interface org.hibernate.event.spi.PreDeleteEventListener
    • onPostDelete

      public void onPostDelete​(org.hibernate.event.spi.PostDeleteEvent event)
      Specified by:
      onPostDelete in interface org.hibernate.event.spi.PostDeleteEventListener
    • requiresPostCommitHandling

      public default boolean requiresPostCommitHandling​(org.hibernate.persister.entity.EntityPersister arg0)