Package org.apache.derby.iapi.types
Interface Orderable
- All Known Subinterfaces:
BinaryOrderable
,BitDataValue
,BooleanDataValue
,ConcatableDataValue
,Conglomerate
,DataValueDescriptor
,DateTimeDataValue
,NumberDataValue
,RefDataValue
,RowLocation
,StringDataValue
,UserDataValue
,XMLDataValue
- All Known Implementing Classes:
B2I
,B2I_10_3
,B2I_v10_2
,BTree
,CollatorSQLChar
,CollatorSQLClob
,CollatorSQLLongvarchar
,CollatorSQLVarchar
,DataType
,GenericConglomerate
,Heap
,Heap_v10_2
,HeapRowLocation
,NumberDataType
,SQLBinary
,SQLBit
,SQLBlob
,SQLBoolean
,SQLChar
,SQLClob
,SQLDate
,SQLDecimal
,SQLDouble
,SQLInteger
,SQLLongint
,SQLLongVarbit
,SQLLongvarchar
,SQLReal
,SQLRef
,SQLSmallint
,SQLTime
,SQLTimestamp
,SQLTinyint
,SQLVarbit
,SQLVarchar
,StorableFormatId
,UserType
,UTF
,XML
public interface Orderable
The Orderable interface represents a value that can
be linearly ordered.
Currently only supports linear (<, =, <=) operations. Eventually we may want to do other types of orderings, in which case there would probably be a number of interfaces for each "class" of ordering.
The implementation must handle the comparison of null values. This may require some changes to the interface, since (at least in some contexts) comparing a value with null should return unknown instead of true or false.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Ordering operation constant representing '='static final int
Ordering operation constant representing '>='static final int
Ordering operation constant representing '>'static final int
Ordering operation constant representing '<='static final int
Ordering operation constant representing '<'
-
Field Details
-
ORDER_OP_LESSTHAN
static final int ORDER_OP_LESSTHANOrdering operation constant representing '<'- See Also:
-
ORDER_OP_EQUALS
static final int ORDER_OP_EQUALSOrdering operation constant representing '='- See Also:
-
ORDER_OP_LESSOREQUALS
static final int ORDER_OP_LESSOREQUALSOrdering operation constant representing '<='- See Also:
-
ORDER_OP_GREATERTHAN
static final int ORDER_OP_GREATERTHANOrdering operation constant representing '>'- See Also:
-
ORDER_OP_GREATEROREQUALS
static final int ORDER_OP_GREATEROREQUALSOrdering operation constant representing '>='- See Also:
-