com.sleepycat.persist.impl
Class PersistKeyBinding

java.lang.Object
  extended by com.sleepycat.persist.impl.PersistKeyBinding
All Implemented Interfaces:
EntryBinding

public class PersistKeyBinding
extends java.lang.Object
implements EntryBinding

A persistence key binding for a given key class.


Constructor Summary
PersistKeyBinding(com.sleepycat.persist.impl.Catalog catalog, java.lang.String clsName, boolean rawAccess)
          Creates a key binding for a given key class.
 
Method Summary
 java.lang.Object entryToObject(DatabaseEntry entry)
          Converts a entry buffer into an Object.
 void objectToEntry(java.lang.Object object, DatabaseEntry entry)
          Converts an Object into a entry buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistKeyBinding

public PersistKeyBinding(com.sleepycat.persist.impl.Catalog catalog,
                         java.lang.String clsName,
                         boolean rawAccess)
Creates a key binding for a given key class.

Method Detail

entryToObject

public java.lang.Object entryToObject(DatabaseEntry entry)
Description copied from interface: EntryBinding
Converts a entry buffer into an Object.

Specified by:
entryToObject in interface EntryBinding
Parameters:
entry - is the source entry buffer.
Returns:
the resulting Object.

objectToEntry

public void objectToEntry(java.lang.Object object,
                          DatabaseEntry entry)
Description copied from interface: EntryBinding
Converts an Object into a entry buffer.

Specified by:
objectToEntry in interface EntryBinding
Parameters:
object - is the source Object.
entry - is the destination entry buffer.