Red Hat APPLICATION SERVER - JONAS Manual page 95

Jonas
Hide thumbs Also See for APPLICATION SERVER - JONAS:
Table of Contents

Advertisement

Chapter 8. Developing Entity Beans
// Init object state
accno = new Integer(val_accno);
customer = val_customer;
balance = val_balance;
return null;
}
public void ejbPostCreate(int val_accno, String val_customer,
double val_balance) {
// Nothing to be done for this simple example.
}
public void ejbActivate() {
// Nothing to be done for this simple example.
}
public void ejbLoad() {
// Nothing to be done for this simple example,
// in implicit persistence.
}
public void ejbPassivate() {
// Nothing to be done for this simple example.
}
public void ejbRemove() {
// Nothing to be done for this simple example,
// in implicit persistence.
}
public void ejbStore() {
// Nothing to be done for this simple example,
// in implicit persistence.
}
public void setEntityContext(EntityContext ctx) {
// Keep the entity context in object
entityContext = ctx;
}
public void unsetEntityContext() {
entityContext = null;
}
public double getBalance() {
return balance;
}
public void setBalance(double d) {
balance = balance + d;
}
public String getCustomer() {
return customer;
}
public void setCustomer(String c) {
customer = c;
}
public int getNumber()
{
87

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the APPLICATION SERVER - JONAS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Application server

Table of Contents