net.spy.db
Class KeyStore

java.lang.Object
  extended bynet.spy.db.KeyStore

public class KeyStore
extends Object

Store a range of primary keys.


Constructor Summary
KeyStore(BigDecimal s, BigDecimal e)
          Get an instance of KeyStore.
 
Method Summary
 BigDecimal nextKey()
          Get the next key.
 String toString()
          String me.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyStore

public KeyStore(BigDecimal s,
                BigDecimal e)
Get an instance of KeyStore.

Method Detail

toString

public String toString()
String me.


nextKey

public BigDecimal nextKey()
                   throws OverDrawnException
Get the next key.

Returns:
the next available key
Throws:
OverDrawnException - if there are no keys left in this store