net.sf.jso.query
Class OrderOperator
java.lang.Object
net.sf.jso.query.OrderOperator
- All Implemented Interfaces:
- java.io.Serializable
- public class OrderOperator
- extends java.lang.Object
- implements java.io.Serializable
Operator for order expressions.
- See Also:
- Serialized Form
Method Summary |
boolean |
acceptsOperand(java.lang.Integer type)
Indicates if operator accepts a certain type for operand. |
java.lang.String |
toString()
Returns a string representation of the operator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ASCENDING
public static final OrderOperator ASCENDING
ASC
public static final OrderOperator ASC
DESCENDING
public static final OrderOperator DESCENDING
DESC
public static final OrderOperator DESC
toString
public java.lang.String toString()
- Returns a string representation of the operator.
- Returns:
- A string representation of the operator.
acceptsOperand
public boolean acceptsOperand(java.lang.Integer type)
- Indicates if operator accepts a certain type for operand. Only wrapper
types are accepted.
- Parameters:
type
- Integer containing storable field
type.
- Returns:
true
if operand can be used; false
otherwise.