|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jpalm.DataBlock net.sourceforge.jpalm.mobiledb.SortCriterion
public class SortCriterion
The sort criterion in a MobileDB database. This contains information regarding how the database was last sorted and does not enforce sorting.
Field Summary | |
---|---|
static int |
DATA_LENGH
The length of this DataBlock in byte s. |
static net.sourceforge.juint.Int8 |
FIELD_NONE
This sort doesn't apply to any fields (Disables the sort). |
Constructor Summary | |
---|---|
SortCriterion()
Creates a new sort criterion. |
|
SortCriterion(byte[] data)
Creates a new criterion from the byte array. |
Method Summary | |
---|---|
void |
deserialize(byte[] data)
Populate class properties from a byte array. |
boolean |
equals(java.lang.Object object)
|
net.sourceforge.juint.Int8 |
getFieldNumber()
Gets the field number to sort on. |
byte[] |
getReserved()
Gets the reserved bytes. |
boolean |
isDescending()
Gets the descending flag. |
byte[] |
serialize()
Create a byte array of the class properties. |
void |
setDescending(boolean descending)
Sets the descending flag. |
void |
setFieldNumber(net.sourceforge.juint.Int8 fieldNumber)
Sets the field number to sort on. |
void |
setReserved(byte[] reserved)
Sets the reserved bytes. |
Methods inherited from class net.sourceforge.jpalm.DataBlock |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DATA_LENGH
DataBlock
in byte
s.
public static final net.sourceforge.juint.Int8 FIELD_NONE
Constructor Detail |
---|
public SortCriterion()
public SortCriterion(byte[] data)
byte
array.
data
- the byte
arrayMethod Detail |
---|
public boolean isDescending()
true
if the sort is descending; false
if the sort is
ascendingpublic void setDescending(boolean descending)
false
.
descending
- true
if the sort is descending; false
if the sort is
ascendingpublic net.sourceforge.juint.Int8 getFieldNumber()
FIELD_NONE
public void setFieldNumber(net.sourceforge.juint.Int8 fieldNumber)
fieldNumber
- the field number or FIELD_NONE
public byte[] getReserved()
public void setReserved(byte[] reserved)
reserved
- the reserved bytespublic void deserialize(byte[] data)
DataBlock
byte
array.
deserialize
in class DataBlock
data
- the byte
arraypublic byte[] serialize()
DataBlock
byte
array of the class properties.
serialize
in class DataBlock
byte
arraypublic boolean equals(java.lang.Object object)
equals
in class DataBlock
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |