com.sleepycat.persist.impl
Class PersistKeyAssigner
java.lang.Object
com.sleepycat.persist.impl.PersistKeyAssigner
public class PersistKeyAssigner
- extends 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.
- Author:
- Mark Hayes
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistKeyAssigner
PersistKeyAssigner(PersistKeyBinding keyBinding,
PersistEntityBinding entityBinding,
Sequence sequence)
assignPrimaryKey
public boolean assignPrimaryKey(Object entity,
DatabaseEntry key)
throws DatabaseException
- Throws:
DatabaseException
Copyright 2004,2008 Oracle. All rights reserved.