com.espertech.esper.event.vaevent
Class VAERevisionProcessorBase

java.lang.Object
  extended by com.espertech.esper.event.vaevent.VAERevisionProcessorBase
All Implemented Interfaces:
ValueAddEventProcessor
Direct Known Subclasses:
VAERevisionProcessorDeclared, VAERevisionProcessorMerge

public abstract class VAERevisionProcessorBase
extends java.lang.Object
implements ValueAddEventProcessor

Base revision processor.


Field Summary
protected  EventAdapterService eventAdapterService
          For interogating nested properties.
protected  RevisionEventType revisionEventType
          Revision event type.
protected  java.lang.String revisionEventTypeName
          Name of type.
protected  RevisionSpec revisionSpec
          Revision type specification.
protected  java.util.Map<EventType,RevisionTypeDesc> typeDescriptors
          Map of participating type to descriptor.
 
Constructor Summary
protected VAERevisionProcessorBase(RevisionSpec revisionSpec, java.lang.String revisioneventTypeName, EventAdapterService eventAdapterService)
          Ctor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.espertech.esper.event.vaevent.ValueAddEventProcessor
getSnapshot, getValueAddEventBean, onUpdate, removeOldData
 

Field Detail

revisionSpec

protected final RevisionSpec revisionSpec
Revision type specification.


revisionEventTypeName

protected final java.lang.String revisionEventTypeName
Name of type.


revisionEventType

protected RevisionEventType revisionEventType
Revision event type.


eventAdapterService

protected EventAdapterService eventAdapterService
For interogating nested properties.


typeDescriptors

protected java.util.Map<EventType,RevisionTypeDesc> typeDescriptors
Map of participating type to descriptor.

Constructor Detail

VAERevisionProcessorBase

protected VAERevisionProcessorBase(RevisionSpec revisionSpec,
                                   java.lang.String revisioneventTypeName,
                                   EventAdapterService eventAdapterService)
Ctor.

Parameters:
revisionSpec - specification
revisioneventTypeName - name of event type
eventAdapterService - for nested property handling
Method Detail

getValueAddEventType

public RevisionEventType getValueAddEventType()
Description copied from interface: ValueAddEventProcessor
Returns the event type that this revision processor generates.

Specified by:
getValueAddEventType in interface ValueAddEventProcessor
Returns:
event type

validateEventType

public void validateEventType(EventType eventType)
                       throws ExprValidationException
Description copied from interface: ValueAddEventProcessor
For use in checking insert-into statements, validates that the given type is eligible for revision event.

Specified by:
validateEventType in interface ValueAddEventProcessor
Parameters:
eventType - the type of the event participating in revision event type (or not)
Throws:
ExprValidationException - if the validation fails

getEventAdapterService

public EventAdapterService getEventAdapterService()

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com