Class BaseEnversCollectionEventListener

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BaseEnversCollectionEventListener​(org.hibernate.envers.boot.internal.EnversService enversService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.hibernate.engine.spi.CollectionEntry getCollectionEntry​(org.hibernate.event.spi.AbstractCollectionEvent event)  
      protected java.io.Serializable initializeCollection​(org.hibernate.event.spi.AbstractCollectionEvent event)
      Forces persistent collection initialization.
      protected void onCollectionAction​(org.hibernate.event.spi.AbstractCollectionEvent event, org.hibernate.collection.spi.PersistentCollection newColl, java.io.Serializable oldColl, org.hibernate.engine.spi.CollectionEntry collectionEntry)  
      protected void onCollectionActionInversed​(org.hibernate.event.spi.AbstractCollectionEvent event, org.hibernate.collection.spi.PersistentCollection newColl, java.io.Serializable oldColl, org.hibernate.engine.spi.CollectionEntry collectionEntry)  
      protected boolean shouldGenerateRevision​(org.hibernate.event.spi.AbstractCollectionEvent event)
      Checks whether modification of not-owned relation field triggers new revision and owner entity is versioned.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BaseEnversCollectionEventListener

        protected BaseEnversCollectionEventListener​(org.hibernate.envers.boot.internal.EnversService enversService)
    • Method Detail

      • getCollectionEntry

        protected final org.hibernate.engine.spi.CollectionEntry getCollectionEntry​(org.hibernate.event.spi.AbstractCollectionEvent event)
      • onCollectionAction

        protected final void onCollectionAction​(org.hibernate.event.spi.AbstractCollectionEvent event,
                                                org.hibernate.collection.spi.PersistentCollection newColl,
                                                java.io.Serializable oldColl,
                                                org.hibernate.engine.spi.CollectionEntry collectionEntry)
      • onCollectionActionInversed

        protected final void onCollectionActionInversed​(org.hibernate.event.spi.AbstractCollectionEvent event,
                                                        org.hibernate.collection.spi.PersistentCollection newColl,
                                                        java.io.Serializable oldColl,
                                                        org.hibernate.engine.spi.CollectionEntry collectionEntry)
      • initializeCollection

        protected java.io.Serializable initializeCollection​(org.hibernate.event.spi.AbstractCollectionEvent event)
        Forces persistent collection initialization.
        Parameters:
        event - Collection event.
        Returns:
        Stored snapshot.
      • shouldGenerateRevision

        protected boolean shouldGenerateRevision​(org.hibernate.event.spi.AbstractCollectionEvent event)
        Checks whether modification of not-owned relation field triggers new revision and owner entity is versioned.
        Parameters:
        event - Collection event.
        Returns:
        true if revision based on given event should be generated, false otherwise.