public abstract class BaseEnversCollectionEventListener extends BaseEnversEventListener
Modifier | Constructor and Description |
---|---|
protected |
BaseEnversCollectionEventListener(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 boolean |
shouldGenerateRevision(AbstractCollectionEvent event)
Checks whether modification of not-owned relation field triggers new revision and owner entity is versioned.
|
checkIfTransactionInProgress, generateBidirectionalCollectionChangeWorkUnits, getEnversService
protected BaseEnversCollectionEventListener(EnversService enversService)
protected final CollectionEntry getCollectionEntry(AbstractCollectionEvent event)
protected final void onCollectionAction(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-2017 Red Hat, Inc. All Rights Reserved.