net.spy.db
Class KeyStore

java.lang.Object
  extended by net.spy.db.KeyStore

public class KeyStore
extends java.lang.Object

Store a range of primary keys.


Constructor Summary
KeyStore(java.math.BigDecimal s, java.math.BigDecimal e)
          Get an instance of KeyStore.
 
Method Summary
 java.math.BigDecimal nextKey()
          Get the next key.
 java.lang.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(java.math.BigDecimal s,
                java.math.BigDecimal e)
Get an instance of KeyStore.

Method Detail

toString

public java.lang.String toString()
String me.

Overrides:
toString in class java.lang.Object

nextKey

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

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


Copyright © 1995-2006 SPY Internetworking. All Rights Reserved.