Package com.streambase.liveview.client
Enum Class LiveViewQueryType
- All Implemented Interfaces:
Serializable
,Comparable<LiveViewQueryType>
,Constable
The type of queries that can be specified in QueryConfig
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionContinuous query updatesDelete rows that match the querySnapshot only querySnapshot followed by continuous updates -
Method Summary
Modifier and TypeMethodDescriptionstatic com.streambase.liveview.internal.protocol.jaxb.QueryType
convert
(LiveViewQueryType lvqt) static LiveViewQueryType
convert
(com.streambase.liveview.internal.protocol.jaxb.QueryType jaxbQueryType) static LiveViewQueryType
boolean
has
(LiveViewQueryType part) Does the current type have the given type inside of it? Ex: SNAP_AND_CONT has a SNAP partvalue()
static LiveViewQueryType
Returns the enum constant of this class with the specified name.static LiveViewQueryType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SNAPSHOT
Snapshot only query -
CONTINUOUS
Continuous query updates -
SNAPSHOT_AND_CONTINUOUS
Snapshot followed by continuous updates -
DELETE
Delete rows that match the query
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
value
-
fromValue
-
convert
public static LiveViewQueryType convert(com.streambase.liveview.internal.protocol.jaxb.QueryType jaxbQueryType) -
convert
public static com.streambase.liveview.internal.protocol.jaxb.QueryType convert(LiveViewQueryType lvqt) -
has
Does the current type have the given type inside of it? Ex: SNAP_AND_CONT has a SNAP part- Parameters:
part
- other type of query- Returns:
- If the part is a compoment of, or equal to the curret
-