public abstract class BaseEnversCollectionEventListener extends BaseEnversEventListener
Modifier | Constructor and Description |
---|---|
protected |
BaseEnversCollectionEventListener(org.hibernate.envers.boot.internal.EnversService enversService) |
Modifier and Type | Method and 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.
|
checkIfTransactionInProgress, generateBidirectionalCollectionChangeWorkUnits, getEnversService
protected BaseEnversCollectionEventListener(org.hibernate.envers.boot.internal.EnversService enversService)
protected final org.hibernate.engine.spi.CollectionEntry getCollectionEntry(org.hibernate.event.spi.AbstractCollectionEvent event)
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)
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)
protected java.io.Serializable initializeCollection(org.hibernate.event.spi.AbstractCollectionEvent event)
event
- Collection event.protected boolean shouldGenerateRevision(org.hibernate.event.spi.AbstractCollectionEvent event)
event
- Collection event.true
if revision based on given event should be generated, false
otherwise.Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.