|
Berkeley DB version 5.1.19 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sleepycat.bind.RecordNumberBinding
public class RecordNumberBinding
An EntryBinding that treats a record number key entry as a
Long key object.
Record numbers are returned as Long objects, although on
input any Number object may be used.
| Constructor Summary | |
|---|---|
RecordNumberBinding()
Creates a byte array binding. |
|
| Method Summary | |
|---|---|
Long |
entryToObject(DatabaseEntry entry)
Converts a entry buffer into an Object. |
static long |
entryToRecordNumber(DatabaseEntry entry)
Utility method for use by bindings to translate a entry buffer to an record number integer. |
void |
objectToEntry(Object object,
DatabaseEntry entry)
Converts an Object into a entry buffer. |
static void |
recordNumberToEntry(long recordNumber,
DatabaseEntry entry)
Utility method for use by bindings to translate a record number integer to a entry buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RecordNumberBinding()
| Method Detail |
|---|
public Long entryToObject(DatabaseEntry entry)
EntryBinding
entryToObject in interface EntryBindingentry - is the source entry buffer.
public void objectToEntry(Object object,
DatabaseEntry entry)
EntryBinding
objectToEntry in interface EntryBindingobject - is the source Object.entry - is the destination entry buffer.public static long entryToRecordNumber(DatabaseEntry entry)
entry - the entry buffer.
public static void recordNumberToEntry(long recordNumber,
DatabaseEntry entry)
recordNumber - the record number.entry - the entry buffer to hold the record number.
|
Berkeley DB version 5.1.19 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||