Class AbstractTupleEvent

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TupleAddedEvent, TupleRemovedEvent, TupleUpdatedEvent

public abstract class AbstractTupleEvent extends AbstractQueryEvent
Base abstract class for TupleEvents
See Also:
  • Field Details

    • tuple

      protected final Tuple tuple
    • keyData

      protected final Tuple keyData
  • Constructor Details

    • AbstractTupleEvent

      public AbstractTupleEvent(Object source, Long key, Tuple tuple, Tuple keyData, List<com.streambase.liveview.client.internal.TupleFieldComparator> fieldComparators)
      Parameters:
      source - the source that generated the event
      key - the key of the tuple
      tuple - the tuple
      fieldComparators - TODO
  • Method Details

    • getKey

      public final Long getKey()
      Deprecated.
      since 1.6, use getKeyValue() instead; certain table types and queries have undefined return values
      Get the key of the tuple in this event, if applicable
      Returns:
      the key of the tuple as a Long, if applicable
    • setKey

      final void setKey(Long key)
    • getTuple

      public final Tuple getTuple()
      Get the tuple
      Returns:
      the tuple
    • getKeyValue

      public final KeyValue getKeyValue()
      This replaces getKey() now that there is support for complex keys
      Returns:
      A representative of this Tuple's value for the key, based on whatever the key field(s) are for this Table.
      Since:
      1.6
    • getComparators

      List<com.streambase.liveview.client.internal.TupleFieldComparator> getComparators()