Java Reference
In-Depth Information
L ISTING 12.8
Continued
public class QuoteBean implements EntityBean
{
protected EntityContext ctx = null;
public Integer id = null;
public String customerName = null;
public String phoneNumber = null;
public Float loanAmount = null;
public Float monthlyPayment = null;
public Float interestRate = null;
public QuoteBean()
{
}
public QuotePk create(Integer id)
throws RemoteException, CreateException {
this.id = id;
return null;
}
public void ejbCreate(Integer id) {
}
public QuotePk create(Integer id, String name)
throws RemoteException, CreateException {
this.id = id;
this.customerName = name;
return null;
}
public void ejbCreate(Integer id, String name) {
}
public void setCustomerName(String name)
throws RemoteException {
customerName = name;
}
Search WWH ::




Custom Search