|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.database.DatabaseEntryObject
ewe.database.ByteArrayDatabaseEntry
| Field Summary | |
protected static int |
TYPE_MASK
|
| Fields inherited from class ewe.database.DatabaseEntryObject |
database, isDeleted, locale, modifyingInside, myData |
| Fields inherited from interface ewe.database.DatabaseTypes |
BOOLEAN, BYTE_ARRAY, CREATED_FIELD, DATE, DATE_TIME, DECIMAL, DOUBLE, FIRST_SPECIAL_FIELD, FLAG_SYNCHRONIZED, FLAGS_FIELD, INTEGER, JAVA_OBJECT, LONG, MAX_ID, MODIFIED_BY_FIELD, MODIFIED_FIELD, NAME_FIELD, OBJECT_BYTES_FIELD, OBJECT_TEXT_FIELD, OID_FIELD, reservedFieldHeaders, reservedFieldIDs, reservedFieldNames, reservedFieldTypes, SORT_DATE_ONLY, SORT_IGNORE_CASE, SORT_TIME_ONLY, SORT_UNKNOWN_IS_GREATER_THAN_KNOWN, SORT_UNKNOWN_IS_LESS_THAN_KNOWN, STRING, TIME, TIMESTAMP |
| Constructor Summary | |
protected |
ByteArrayDatabaseEntry(DatabaseObject database)
|
| Method Summary | |
void |
clearDataAndSpecialFields()
Clears the data fields and the special fields. |
void |
clearField(int fieldID)
Set the specified field to be unassigned. |
void |
clearFields()
Clears the data fields but not the special fields. |
int |
compareTo(DatabaseEntry otherEntry,
int[] criteria,
boolean hasWildCards)
Compare this DatabaseEntry to another. |
int |
countAssignedFields()
|
void |
decode(byte[] source,
int offset,
int length,
DataProcessor decryptor)
Decode an encoded DatabaseEntry. |
protected int |
discoverType(int id)
|
ByteArray |
encode(ByteArray destination,
DataProcessor encryptor)
This will place the encoded record data in the destination ByteArray, clearing it first and possibly encrypting it first (if encryptor is not null). |
int |
getAssignedFields(int[] dest,
int offset)
|
protected ByteArray |
getDataForLoading()
Get the ByteArray that holds the record's encoded data. |
protected ByteArray |
getDataForSaving()
Get the ByteArray that holds the record's encoded data. |
Object |
getFieldValue(int id,
int type,
Object dest)
|
boolean |
hasField(int fieldID)
|
protected int |
locateField(int id,
int idType)
|
void |
reset()
Compare this object against a set of search objects. |
void |
setFieldValue(int id,
int type,
Object value)
|
| Methods inherited from class ewe.database.DatabaseEntryObject |
_getSetField, _getSetValue, compareTo, convertStringToStaticObjectValue, decode, delete, dump, duplicateFrom, encode, erase, fieldToID, fieldToType, getAssignedFields, getData, getData, getDatabase, getField, getField, getField, getField, getField, getField, getField, getField, getField, getField, getField, getField, getField, getFieldBytes, getFieldInfo, getFieldName, getFieldValue, getNew, getObjectField, isADeletedEntry, load, markAsDeleted, revert, save, setData, setField, setField, setField, setField, setField, setField, setField, setField, setField, setField, setField, setField, setField, setField, setField, setField, setFieldValue, setObjectField, store, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Methods inherited from interface ewe.database.DatabaseEntry |
isPointingTo, isSaved, pointTo |
| Field Detail |
protected static final int TYPE_MASK
| Constructor Detail |
protected ByteArrayDatabaseEntry(DatabaseObject database)
| Method Detail |
public void decode(byte[] source,
int offset,
int length,
DataProcessor decryptor)
throws IOException
DatabaseEntry
source - the encoded data bytes.offset - the start of the data.length - the number of data bytes.decryptor - an optional decryptor for decoding.
IOException - if the data is invalid or if the decryptor failed during decryption.
protected int locateField(int id,
int idType)
public void clearFields()
DatabaseEntry
public void clearField(int fieldID)
DatabaseEntry
public boolean hasField(int fieldID)
public int countAssignedFields()
public int getAssignedFields(int[] dest,
int offset)
protected int discoverType(int id)
discoverType in class DatabaseEntryObjectpublic void clearDataAndSpecialFields()
DatabaseEntry
public void setFieldValue(int id,
int type,
Object value)
public Object getFieldValue(int id,
int type,
Object dest)
getFieldValue in interface DatabaseEntrygetFieldValue in class DatabaseEntryObject
public ByteArray encode(ByteArray destination,
DataProcessor encryptor)
throws IOException
destination - The destination for the data. If it is null a new one will be created.encryptor - An optional encryptor for the data.
IOException - if there is an error encrypting the data.
public int compareTo(DatabaseEntry otherEntry,
int[] criteria,
boolean hasWildCards)
criteria - a list of criteria (as returned by toCriteria(field,type,options)).
public void reset()
reset in interface DatabaseEntryreset in class DatabaseEntryObjectprotected ByteArray getDataForSaving()
protected ByteArray getDataForLoading()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||