Package com.streambase.liveview.client
Class AbstractTupleEvent
java.lang.Object
java.util.EventObject
com.streambase.liveview.client.AbstractQueryEvent
com.streambase.liveview.client.AbstractTupleEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TupleAddedEvent,TupleRemovedEvent,TupleUpdatedEvent
Base abstract class for TupleEvents
-
Field Summary
FieldsFields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) List<com.streambase.liveview.client.internal.TupleFieldComparator>final LonggetKey()Deprecated.final KeyValueThis replacesgetKey()now that there is support for complex keysfinal TuplegetTuple()Get the tuple(package private) final voidMethods inherited from class com.streambase.liveview.client.AbstractQueryEvent
dispatchMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
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 eventkey- the key of the tupletuple- the tuplefieldComparators- TODO
-
-
Method Details
-
getKey
Deprecated.since 1.6, usegetKeyValue()instead; certain table types and queries have undefined return valuesGet the key of the tuple in this event, if applicable- Returns:
- the key of the tuple as a Long, if applicable
-
setKey
-
getTuple
Get the tuple- Returns:
- the tuple
-
getKeyValue
This replacesgetKey()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()
-
getKeyValue()instead; certain table types and queries have undefined return values