public abstract class BaseEnversUpdateEventListener extends BaseEnversEventListener
Constructor and Description |
---|
BaseEnversUpdateEventListener(EnversService enversService) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isDetachedEntityUpdate(java.lang.String entityName,
java.lang.Object[] oldState)
Returns whether the entity has
withModifiedFlag features and has no old state, most likely implying
it was updated in a detached entity state. |
checkIfTransactionInProgress, generateBidirectionalCollectionChangeWorkUnits, getEnversService
public BaseEnversUpdateEventListener(EnversService enversService)
protected boolean isDetachedEntityUpdate(java.lang.String entityName, java.lang.Object[] oldState)
withModifiedFlag
features and has no old state, most likely implying
it was updated in a detached entity state.entityName
- The associated entity name.oldState
- The event old (likely detached) entity state.true
if the entity is/has been updated in detached state, otherwise false
.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.