Package com.streambase.liveview.client
Class OrderDefinition
- java.lang.Object
-
- com.streambase.liveview.client.OrderDefinition
-
public class OrderDefinition extends Object
OrderDefinition is the object used to define the order in which you wish to receive data- Since:
- 1.4
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOrderDefinition.DirectionThe direction enum defines the legal directions available, and a reverse helper method.static interfaceOrderDefinition.OrderDefinitionVisitor
-
Field Summary
Fields Modifier and Type Field Description static OrderDefinitionNONE
-
Constructor Summary
Constructors Constructor Description OrderDefinition()Construct an order definition object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrderDefinitionadd(OrderDefinition.Direction[] dir, String... flds)Add order definition field names with the specified Direction.OrderDefinitionadd(OrderDefinition.Direction dir, String... flds)Add order definition field names, all in the same directionOrderDefinitionadd(String... flds)Add order definition field names, all ascending orderStringgetDirectionsString()StringgetFieldsString()OrderDefinitionreverse()Produce an OrderDefinition that is the exact opposite of this OrderDefinition.StringtoString()Produce a human readable representation of the OrderDefinitionvoidtraverseOrderDefinition(OrderDefinition.OrderDefinitionVisitor v)
-
-
-
Field Detail
-
NONE
public static final OrderDefinition NONE
-
-
Constructor Detail
-
OrderDefinition
public OrderDefinition()
Construct an order definition object. Useadd(java.lang.String...)methods to add fields and directions to the sort.
-
-
Method Detail
-
add
public OrderDefinition add(String... flds)
Add order definition field names, all ascending order- Parameters:
flds- the field names you wish to order on, first field being highest precedence.
-
add
public OrderDefinition add(OrderDefinition.Direction dir, String... flds)
Add order definition field names, all in the same direction- Parameters:
dir- the Direction you want to use for these fields.flds- the field names you wish to order on, first field being highest precedence.
-
add
public OrderDefinition add(OrderDefinition.Direction[] dir, String... flds)
Add order definition field names with the specified Direction. The number of Directions must be equal to the number of fields.- Parameters:
dir- the Direction you want to use for each fieldflds- the field names you wish to order on, first field being highest precedence.
-
getFieldsString
public String getFieldsString()
-
getDirectionsString
public String getDirectionsString()
-
toString
public String toString()
Produce a human readable representation of the OrderDefinition
-
reverse
public OrderDefinition reverse()
Produce an OrderDefinition that is the exact opposite of this OrderDefinition.
-
traverseOrderDefinition
public void traverseOrderDefinition(OrderDefinition.OrderDefinitionVisitor v)
-
-