pt.jcodeutil.core.ejb.numbering.ent
Interface NumericSequencerHome

All Superinterfaces:
javax.ejb.EJBHome, java.rmi.Remote

public interface NumericSequencerHome
extends javax.ejb.EJBHome

Title: Description: Copyright: Copyright (c) 2003 Company:

Version:
1.0
Author:
Marco Samuel (samuelbb@sapo.pt)

Method Summary
 NumericSequencer create(java.lang.String pk, long baseValue)
          Create a new sequence with the name and value given by argument.
 java.util.Collection findAll()
          Get all the sequences that exist in the datastore.
 NumericSequencer findByPrimaryKey(java.lang.String pk)
          Get NumericSequencer by its key
 
Methods inherited from interface javax.ejb.EJBHome
getEJBMetaData, getHomeHandle, remove, remove
 

Method Detail

findByPrimaryKey

public NumericSequencer findByPrimaryKey(java.lang.String pk)
                                  throws javax.ejb.FinderException,
                                         java.rmi.RemoteException
Get NumericSequencer by its key
Returns:
a NumericSequence instance if found.
Throws:
ObjectNotFoundException - if the sequence doesn't exist.

create

public NumericSequencer create(java.lang.String pk,
                               long baseValue)
                        throws javax.ejb.CreateException,
                               java.rmi.RemoteException
Create a new sequence with the name and value given by argument.
Returns:
a NumericSequence instance if found.
Throws:
javax.ejb.CreateException - if it's not possible to create the sequence.

findAll

public java.util.Collection findAll()
                             throws java.rmi.RemoteException,
                                    javax.ejb.FinderException
Get all the sequences that exist in the datastore.
Returns:
all the sequences
Throws:
java.rmi.RemoteException -  
javax.ejb.FinderException -