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 Object
implements ValueAddEventProcessor

Base revision processor.


Field Summary
protected  EventAdapterService eventAdapterService
          For interogating nested properties.
protected  RevisionEventType revisionEventType
          Revision event type.
protected  String revisionEventTypeAlias
          Alias of type.
protected  RevisionSpec revisionSpec
          Revision type specification.
protected  Map<EventType,RevisionTypeDesc> typeDescriptors
          Map of participating type to descriptor.
 
Constructor Summary
protected VAERevisionProcessorBase(RevisionSpec revisionSpec, String revisionEventTypeAlias, EventAdapterService eventAdapterService)
          Ctor.
 
Method Summary
 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.


revisionEventTypeAlias

protected final String revisionEventTypeAlias
Alias of type.


revisionEventType

protected RevisionEventType revisionEventType
Revision event type.


eventAdapterService

protected EventAdapterService eventAdapterService
For interogating nested properties.


typeDescriptors

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

Constructor Detail

VAERevisionProcessorBase

protected VAERevisionProcessorBase(RevisionSpec revisionSpec,
                                   String revisionEventTypeAlias,
                                   EventAdapterService eventAdapterService)
Ctor.

Parameters:
revisionSpec - specification
revisionEventTypeAlias - alias 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

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com