public abstract class VAERevisionProcessorBase extends Object implements ValueAddEventProcessor
Modifier and Type | Field and Description |
---|---|
protected EventAdapterService |
eventAdapterService
For interogating nested properties.
|
protected RevisionEventType |
revisionEventType
Revision event type.
|
protected String |
revisionEventTypeName
Name of type.
|
protected RevisionSpec |
revisionSpec
Revision type specification.
|
protected Map<EventType,RevisionTypeDesc> |
typeDescriptors
Map of participating type to descriptor.
|
Modifier | Constructor and Description |
---|---|
protected |
VAERevisionProcessorBase(RevisionSpec revisionSpec,
String revisioneventTypeName,
EventAdapterService eventAdapterService)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
EventAdapterService |
getEventAdapterService() |
RevisionEventType |
getValueAddEventType()
Returns the event type that this revision processor generates.
|
void |
validateEventType(EventType eventType)
For use in checking insert-into statements, validates that the given type is eligible for revision event.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSnapshot, getValueAddEventBean, onUpdate, removeOldData
protected final RevisionSpec revisionSpec
protected final String revisionEventTypeName
protected RevisionEventType revisionEventType
protected EventAdapterService eventAdapterService
protected Map<EventType,RevisionTypeDesc> typeDescriptors
protected VAERevisionProcessorBase(RevisionSpec revisionSpec, String revisioneventTypeName, EventAdapterService eventAdapterService)
revisionSpec
- specificationrevisioneventTypeName
- name of event typeeventAdapterService
- for nested property handlingpublic RevisionEventType getValueAddEventType()
ValueAddEventProcessor
getValueAddEventType
in interface ValueAddEventProcessor
public void validateEventType(EventType eventType) throws ExprValidationException
ValueAddEventProcessor
validateEventType
in interface ValueAddEventProcessor
eventType
- the type of the event participating in revision event type (or not)ExprValidationException
- if the validation failspublic EventAdapterService getEventAdapterService()