|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sleepycat.persist.impl.PersistKeyBinding
public class PersistKeyBinding
A persistence key binding for a given key class.
| Field Summary | |
|---|---|
(package private) Catalog |
catalog
|
(package private) Format |
keyFormat
|
(package private) boolean |
rawAccess
|
| Constructor Summary | |
|---|---|
PersistKeyBinding(Catalog catalog,
String clsName,
boolean rawAccess)
Creates a key binding for a given key class. |
|
PersistKeyBinding(Class cls,
String[] compositeFieldOrder)
Creates a key binding dynamically for use by PersistComparator. |
|
| Method Summary | |
|---|---|
(package private) Object |
bytesToObject(byte[] bytes,
int offset,
int length)
Binds bytes to an object for use by PersistComparator as well as entryToObject. |
Object |
entryToObject(DatabaseEntry entry)
Converts a entry buffer into an Object. |
void |
objectToEntry(Object object,
DatabaseEntry entry)
Converts an Object into a entry buffer. |
(package private) static Object |
readKey(Format keyFormat,
Catalog catalog,
byte[] bytes,
int offset,
int length,
boolean rawAccess)
Binds bytes to an object for use by PersistComparator as well as entryToObject. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
Catalog catalog
Format keyFormat
boolean rawAccess
| Constructor Detail |
|---|
public PersistKeyBinding(Catalog catalog,
String clsName,
boolean rawAccess)
PersistKeyBinding(Class cls,
String[] compositeFieldOrder)
| Method Detail |
|---|
Object bytesToObject(byte[] bytes,
int offset,
int length)
static Object readKey(Format keyFormat,
Catalog catalog,
byte[] bytes,
int offset,
int length,
boolean rawAccess)
public Object 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||