com.sleepycat.persist.impl
Class PersistKeyAssigner

java.lang.Object
  extended by com.sleepycat.persist.impl.PersistKeyAssigner

public class PersistKeyAssigner
extends java.lang.Object

Assigns primary keys from a Sequence. This class is used directly by PrimaryIndex, not via an interface. To avoid making a public interface, the PersistEntityBinding contains a reference to a PersistKeyAssigner, and the PrimaryIndex gets the key assigner from the binding. See the PrimaryIndex constructor for more information.


Method Summary
 boolean assignPrimaryKey(java.lang.Object entity, DatabaseEntry key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assignPrimaryKey

public boolean assignPrimaryKey(java.lang.Object entity,
                                DatabaseEntry key)
                         throws DatabaseException
Throws:
DatabaseException