com.bankframe.examples.bo.impl.address
Interface AddressHome

All Superinterfaces:
AddressFinders, EJBHome, Remote

public interface AddressHome
extends EJBHome, AddressFinders

This interface defines the methods for obtaining Address Entity instances


Field Summary
static String JNDI_NAME
           
 
Method Summary
 Address create(String ownerId, String addressLine1, String addressLine2, String addressLine3, String addressLine4, String country, String postCode)
          This method creates a new Address Entity instance.
 Address findByPrimaryKey(AddressPK primaryKey)
          This method retrieves the Address entity Instance for the specified primary key.
 
Methods inherited from interface javax.ejb.EJBHome
getEJBMetaData, getHomeHandle, remove, remove
 
Methods inherited from interface com.bankframe.examples.bo.address.AddressFinders
findAll, findByCountry, findByPostCode
 

Field Detail

JNDI_NAME

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

create

Address create(String ownerId,
               String addressLine1,
               String addressLine2,
               String addressLine3,
               String addressLine4,
               String country,
               String postCode)
               throws CreateException,
                      ValidationException,
                      ProcessingErrorException,
                      RemoteException
This method creates a new Address Entity instance.

Parameters:
ownerId -
addressLine1 -
addressLine2 -
addressLine3 -
addressLine4 -
country -
postCode -
Returns:
an Address entity
Throws:
CreateException
ProcessingErrorException
RemoteException
ValidationException

findByPrimaryKey

Address findByPrimaryKey(AddressPK primaryKey)
                         throws FinderException,
                                ValidationException,
                                RemoteException
This method retrieves the Address entity Instance for the specified primary key.

Parameters:
primaryKey - the primary key of the Address to find
Returns:
Address entity instance
Throws:
FinderException
RemoteException
ValidationException


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