Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

com::sleepycat::bind::RecordNumberBinding Class Reference

Inheritance diagram for com::sleepycat::bind::RecordNumberBinding:

com::sleepycat::bind::EntryBinding

Public Member Functions

 RecordNumberBinding ()
Object entryToObject (DatabaseEntry entry)
void objectToEntry (Object object, DatabaseEntry entry)

Static Public Member Functions

static long entryToRecordNumber (DatabaseEntry entry)
static void recordNumberToEntry (long recordNumber, DatabaseEntry entry)

Detailed Description

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.

Author:
Mark Hayes

Definition at line 24 of file RecordNumberBinding.java.


Constructor & Destructor Documentation

com::sleepycat::bind::RecordNumberBinding::RecordNumberBinding  )  [inline]
 

Creates a byte array binding.

Definition at line 29 of file RecordNumberBinding.java.


Member Function Documentation

Object com::sleepycat::bind::RecordNumberBinding::entryToObject DatabaseEntry  entry  )  [inline]
 

Converts a entry buffer into an Object.

Parameters:
entry is the source entry buffer.
Returns:
the resulting Object.

Implements com::sleepycat::bind::EntryBinding.

Definition at line 33 of file RecordNumberBinding.java.

References entryToRecordNumber().

static long com::sleepycat::bind::RecordNumberBinding::entryToRecordNumber DatabaseEntry  entry  )  [inline, static]
 

Utility method for use by bindings to translate a entry buffer to an record number integer.

Parameters:
entry the entry buffer.
Returns:
the record number.

Definition at line 52 of file RecordNumberBinding.java.

Referenced by entryToObject().

void com::sleepycat::bind::RecordNumberBinding::objectToEntry Object  object,
DatabaseEntry  entry
[inline]
 

Converts an Object into a entry buffer.

Parameters:
object is the source Object.
entry is the destination entry buffer.

Implements com::sleepycat::bind::EntryBinding.

Definition at line 39 of file RecordNumberBinding.java.

References recordNumberToEntry().

static void com::sleepycat::bind::RecordNumberBinding::recordNumberToEntry long  recordNumber,
DatabaseEntry  entry
[inline, static]
 

Utility method for use by bindings to translate a record number integer to a entry buffer.

Parameters:
recordNumber the record number.
entry the entry buffer to hold the record number.

Definition at line 65 of file RecordNumberBinding.java.

Referenced by objectToEntry().


The documentation for this class was generated from the following file:
Generated on Sun Dec 25 12:14:58 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2