public abstract class AutoPopulatedEntityEventListener extends java.lang.Object implements EntityEventListener<java.lang.Object>
AutoPopulated
.NOOP
Constructor and Description |
---|
AutoPopulatedEntityEventListener() |
Modifier and Type | Method and Description |
---|---|
protected RuntimePersistentProperty<java.lang.Object>[] |
getApplicableProperties(RuntimePersistentEntity<java.lang.Object> entity)
Returns the applicable properties for this listener.
|
protected abstract java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getEventTypes() |
protected abstract java.util.function.Predicate<RuntimePersistentProperty<java.lang.Object>> |
getPropertyPredicate() |
boolean |
supports(RuntimePersistentEntity<java.lang.Object> entity,
java.lang.Class<? extends java.lang.annotation.Annotation> eventType)
Allows including or excluding a listener for a specific entity.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
postLoad, postPersist, postRemove, postUpdate, prePersist, preQuery, preRemove, preUpdate
public final boolean supports(RuntimePersistentEntity<java.lang.Object> entity, java.lang.Class<? extends java.lang.annotation.Annotation> eventType)
EntityEventListener
supports
in interface EntityEventListener<java.lang.Object>
entity
- The entityeventType
- The event type@NonNull protected abstract java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> getEventTypes()
@NonNull protected abstract java.util.function.Predicate<RuntimePersistentProperty<java.lang.Object>> getPropertyPredicate()
@NonNull protected RuntimePersistentProperty<java.lang.Object>[] getApplicableProperties(RuntimePersistentEntity<java.lang.Object> entity)
entity
- The entity