com.keyoti.creditCard.logic.ejb
Interface CreditCardHome
- public interface CreditCardHome
- extends javax.ejb.EJBHome
Remote home object interface for CreditCardEJB.
- Author:
- Keyoti
|
Method Summary |
CreditCard |
create(String cardNumber)
Creates an instance of the CreditCardBean class on the server, and returns a
reference with CreditCard interface to the client. |
Collection |
findByCardName(String cardName)
Creates a Collection of instances of CreditCardBean with card name == cardName |
Collection |
findByExpiryDate(Integer month,
Integer year)
Creates a Collection of instances of CreditCardBean with card expiry month == month
AND expiry year == year |
CreditCard |
findByPrimaryKey(String cardNumber)
Creates an instance of the CreditCardBean class on the server where the object primary key == cardNumber,
and returns a reference with CreditCard interface to the client. |
| Methods inherited from interface javax.ejb.EJBHome |
getEJBMetaData,
getHomeHandle,
remove,
remove |
create
public CreditCard create(String cardNumber)
throws RemoteException,
javax.ejb.CreateException
- Creates an instance of the CreditCardBean class on the server, and returns a
reference with CreditCard interface to the client.
The new object will have a primary key == cardNumber.
findByPrimaryKey
public CreditCard findByPrimaryKey(String cardNumber)
throws RemoteException,
javax.ejb.FinderException
- Creates an instance of the CreditCardBean class on the server where the object primary key == cardNumber,
and returns a reference with CreditCard interface to the client.
findByCardName
public Collection findByCardName(String cardName)
throws RemoteException,
javax.ejb.FinderException
- Creates a Collection of instances of CreditCardBean with card name == cardName
findByExpiryDate
public Collection findByExpiryDate(Integer month,
Integer year)
throws RemoteException,
javax.ejb.FinderException
- Creates a Collection of instances of CreditCardBean with card expiry month == month
AND expiry year == year
Copyright © 2002 Keyoti All Rights Reserved.