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 CollectionEntry |
getCollectionEntry(AbstractCollectionEvent event) |
protected Serializable |
initializeCollection(AbstractCollectionEvent event)
Forces persistent collection initialization.
|
protected void |
onCollectionAction(AbstractCollectionEvent event,
PersistentCollection newColl,
Serializable oldColl,
CollectionEntry collectionEntry) |
protected void |
onCollectionActionInversed(AbstractCollectionEvent event,
PersistentCollection newColl,
Serializable oldColl,
CollectionEntry collectionEntry) |
protected boolean |
shouldGenerateRevision(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 CollectionEntry getCollectionEntry(AbstractCollectionEvent event)
protected final void onCollectionAction(AbstractCollectionEvent event, PersistentCollection newColl, Serializable oldColl, CollectionEntry collectionEntry)
protected final void onCollectionActionInversed(AbstractCollectionEvent event, PersistentCollection newColl, Serializable oldColl, CollectionEntry collectionEntry)
protected Serializable initializeCollection(AbstractCollectionEvent event)
event - Collection event.protected boolean shouldGenerateRevision(AbstractCollectionEvent event)
event - Collection event.true if revision based on given event should be generated, false otherwise.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.