Class AbstractFieldChangedEventGenerator<E extends BaseEntity,V>
- java.lang.Object
-
- io.tesler.notifications.model.hbn.change.AbstractEventGenerator<E>
-
- io.tesler.notifications.model.hbn.change.managed.AbstractFieldChangedEventGenerator<E,V>
-
- All Implemented Interfaces:
IChangeListener<E>
,org.springframework.core.Ordered
public abstract class AbstractFieldChangedEventGenerator<E extends BaseEntity,V> extends AbstractEventGenerator<E>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.tesler.notifications.model.hbn.change.AbstractEventGenerator
AbstractEventGenerator.DefaultBuilder
-
-
Field Summary
-
Fields inherited from class io.tesler.notifications.model.hbn.change.AbstractEventGenerator
applicationEventPublisher
-
-
Constructor Summary
Constructors Constructor Description AbstractFieldChangedEventGenerator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected INotificationEventBuilder
builder(E entity, LOV event)
boolean
canProcess(IChangeVector vector, LOV event)
protected INotificationEventBuilder
getBuilder(E entity, V oldValue)
protected abstract LOV
getEvent()
protected abstract javax.persistence.metamodel.Attribute<E,V>
getField()
void
process(IChangeVector vector, LOV event)
-
Methods inherited from class io.tesler.notifications.model.hbn.change.AbstractEventGenerator
createEvent, getOrder, getPerformer, getPerformer, getRecipientResolvers, publish
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.tesler.api.data.dao.databaselistener.IChangeListener
getType, isFieldChanged, isSupported
-
-
-
-
Method Detail
-
process
public void process(IChangeVector vector, LOV event)
-
getBuilder
protected INotificationEventBuilder getBuilder(E entity, V oldValue)
-
getEvent
protected abstract LOV getEvent()
-
canProcess
public boolean canProcess(IChangeVector vector, LOV event)
-
builder
protected INotificationEventBuilder builder(E entity, LOV event)
-
-