com.instantbank.component.job.ejb
Interface JobHome

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

public interface JobHome
extends javax.ejb.EJBHome

home interface of Job EJB: models a job (Entity BMP EJB, master-details)

Author:
Instant-bank (Consuelo Franky)

Method Summary
 Job create(java.lang.String companyId, java.lang.Long userId, java.lang.String name, long ftpPrimaryId, long ftpAlternateId)
          Creates a new ejb instance (persistent).
 Job findByName(java.lang.String companyId, java.lang.String name)
          Finds an existent ejb instance in the database
 Job findByPrimaryKey(java.lang.Long jobId)
          Finds an existent ejb instance in the database
 
Methods inherited from interface javax.ejb.EJBHome
getEJBMetaData, getHomeHandle, remove, remove
 

Method Detail

create

public Job create(java.lang.String companyId,
                  java.lang.Long userId,
                  java.lang.String name,
                  long ftpPrimaryId,
                  long ftpAlternateId)
           throws java.rmi.RemoteException,
                  javax.ejb.CreateException
Creates a new ejb instance (persistent).
Parameters:
companyId - current company
userId - current user
name - job name
ftpPrimaryId - a ftp location id of the company (it can be LetterTemplateGlobals.UNDEF)
ftpAlternateId - an alternate ftp location id of the company (it can be LetterTemplateGlobals.UNDEF)
Returns:
reference to the new instance EJB
Throws:
javax.ejb.CreateException -  
java.rmi.RemoteException -  

findByPrimaryKey

public Job findByPrimaryKey(java.lang.Long jobId)
                     throws java.rmi.RemoteException,
                            javax.ejb.FinderException
Finds an existent ejb instance in the database
Parameters:
jobId - key value of instance
Returns:
reference to the instance EJB
Throws:
javax.ejb.FinderException -  
java.rmi.RemoteException -  

findByName

public Job findByName(java.lang.String companyId,
                      java.lang.String name)
               throws java.rmi.RemoteException,
                      javax.ejb.FinderException
Finds an existent ejb instance in the database
Parameters:
companyId - current company
name - job name
Returns:
reference to the instance EJB
Throws:
javax.ejb.FinderException -  
java.rmi.RemoteException -