com.primix.vlib.ejb
Interface IKeyAllocator

All Superinterfaces:
EJBObject, java.rmi.Remote

public interface IKeyAllocator
extends EJBObject

Remote interface to the KeyAllocator stateless session bean.

Version:
$Id: IKeyAllocator.java,v 1.4 2001/06/22 20:40:09 hship Exp $
Author:
Howard Ship

Method Summary
 java.lang.Integer allocateKey()
          Allocates a new key, possibling reserving it from the database.
 java.lang.Integer[] allocateKeys(int count)
          Allocates several keys, as if invoking allocateKey() multiple times.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

allocateKey

public java.lang.Integer allocateKey()
                              throws java.rmi.RemoteException
Allocates a new key, possibling reserving it from the database. The value returned is guarenteed to not have been previously returned by any instance.

allocateKeys

public java.lang.Integer[] allocateKeys(int count)
                                 throws java.rmi.RemoteException
Allocates several keys, as if invoking allocateKey() multiple times. No guarentees are made that the values are sequential or in any order, just that they are unique.