com.bankframe.examples.bo.impl.customer
Interface CustomerHome

All Superinterfaces:
CustomerFinders, EJBHome, Remote

public interface CustomerHome
extends EJBHome, CustomerFinders

This interface defines the methods for obtaining Customer Entity instances


Field Summary
static String JNDI_NAME
           
 
Method Summary
 Customer create(String ownerId, String title, String firstName, String lastName)
          This method creates a new customer entity instance.
 Customer findByPrimaryKey(CustomerPK primaryKey)
          This method get a entity instance that is identified by the given primary key.
 
Methods inherited from interface javax.ejb.EJBHome
getEJBMetaData, getHomeHandle, remove, remove
 
Methods inherited from interface com.bankframe.examples.bo.customer.CustomerFinders
findAll, findByFirstName, findByLastName, findByTitle
 

Field Detail

JNDI_NAME

static final String JNDI_NAME
See Also:
Constant Field Values
Method Detail

create

Customer create(String ownerId,
                String title,
                String firstName,
                String lastName)
                throws CreateException,
                       ValidationException,
                       ProcessingErrorException,
                       RemoteException
This method creates a new customer entity instance.

Throws:
ProcessingErrorException
RemoteException
ValidationException
CreateException

findByPrimaryKey

Customer findByPrimaryKey(CustomerPK primaryKey)
                          throws FinderException,
                                 ValidationException,
                                 RemoteException
This method get a entity instance that is identified by the given primary key.

Parameters:
primaryKey -
Returns:
the Address Entity Instance for the specified primary key
Throws:
FinderException
RemoteException
ValidationException


Copyright © 2005, 2007, Oracle. All rights reserved.