com.sleepycat.bdb
Interface PrimaryKeyAssigner
public interface PrimaryKeyAssigner
An interface implemented to assign new primary key values.
An implementation of this interface is passed to the DataStore
constructor to assign primary keys for that store. Key assignment occurs
when StoredMap.append(java.lang.Object)
or StoredList.append(java.lang.Object)
is called.
Method Summary |
void |
assignKey(DataBuffer keyData)
Assigns a new primary key value into the given data buffer. |
assignKey
void assignKey(DataBuffer keyData)
throws DbException,
java.io.IOException
- Assigns a new primary key value into the given data buffer.
- Throws:
DbException
java.io.IOException