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 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,
Serializable oldColl,
org.hibernate.engine.spi.CollectionEntry collectionEntry) |
protected void |
onCollectionActionInversed(org.hibernate.event.spi.AbstractCollectionEvent event,
org.hibernate.collection.spi.PersistentCollection newColl,
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, getEnversServiceprotected 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,
Serializable oldColl,
org.hibernate.engine.spi.CollectionEntry collectionEntry)
protected final void onCollectionActionInversed(org.hibernate.event.spi.AbstractCollectionEvent event,
org.hibernate.collection.spi.PersistentCollection newColl,
Serializable oldColl,
org.hibernate.engine.spi.CollectionEntry collectionEntry)
protected 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-2020 Red Hat, Inc. All Rights Reserved.