OpMath

com.opmath.test.j2ee.uid
Interface UniqueIdGenerator

All Superinterfaces:
EJBObject, Remote

public interface UniqueIdGenerator
extends EJBObject

The (remote) Remote interface of the UniqueIdGenerator EJB. Specifies the functionality of UniqueIdGenerator instances, avaliable to remote clients.

Copyright: (c) 2002 The Open Math Company Limited

The Terms of Distribution of this software are stipulated in the javadoc Overview for this project.

Since:
J2SDK 1.3.1, J2SDKEE 1.3.1, EJB 2.0
Version:
OpMath J2EE Example v1.0
Author:
Bruno Beloff bruno.beloff@opmath.com
See Also:
UniqueIdGeneratorBean

Method Summary
 long getId()
          Returns the current unique ID as issued by this UniqueIdGenerator EJB.
 UniqueIdGeneratorPK getKey()
          Returns the primary key for this UniqueIdGenerator EJB.
 long nextId()
          Requests that the next unique ID is generated by this UniqueIdGenerator EJB.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

getKey

public UniqueIdGeneratorPK getKey()
                           throws RemoteException

Returns the primary key for this UniqueIdGenerator EJB.

Returns:
the UniqueIdGeneratorPK uniquely identifying this instance.
Throws:
RemoteException - if problems were encountered in communicating with the application server or UniqueIdGenerator EJB.
See Also:
UniqueIdGeneratorBean.getKey()

getId

public long getId()
           throws RemoteException

Returns the current unique ID as issued by this UniqueIdGenerator EJB.

Returns:
a long indicating the current unique ID as issied by this UniqueIdGenerator EJB.
Throws:
RemoteException - if problems were encountered in communicating with the application server or UniqueIdGenerator EJB.
See Also:
UniqueIdGeneratorBean.getId()

nextId

public long nextId()
            throws RemoteException

Requests that the next unique ID is generated by this UniqueIdGenerator EJB. The method returns the new unique ID.

Returns:
a long indicating the new current unique ID as issied by this UniqueIdGenerator EJB.
Throws:
RemoteException - if problems were encountered in communicating with the application server or UniqueIdGenerator EJB.
See Also:
UniqueIdGeneratorBean.nextId()

OpMath

Submit a bug or feature to Open Math
Copyright © 2002 Open Math Company Limited, Brighton, UK