107ea0beab6j2eecustomerbean.java~1~
来自「本程序是用java编写的一个关于银行存款取款的软件」· JAVA~1~ 代码 · 共 99 行
JAVA~1~
99 行
package ebank;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import java.math.BigDecimal;
import javax.ejb.CreateException;
import javax.ejb.RemoveException;
import javax.ejb.FinderException;
public class CustomerBean implements EntityBean {
EntityContext entityContext;
BigDecimal customerid;
String firstname;
String lastname;
String address;
String phone;
public BigDecimal ejbCreate(BigDecimal customerid, String firstname,
String lastname, String address, String phone) throws CreateException {
setCustomerid(customerid);
setFirstname(firstname);
setLastname(lastname);
setAddress(address);
setPhone(phone);
return null;
}
public void ejbPostCreate(BigDecimal customerid, String firstname,
String lastname, String address, String phone) throws CreateException {
}
public void ejbRemove() throws RemoveException {
}
public void setCustomerid(BigDecimal customerid) {
this.customerid = customerid;
}
public BigDecimal getCustomerid() {
return customerid;
}
public void setFirstname(String firstname) {
this.firstname = firstname;
}
public String getFirstname() {
return firstname;
}
public void setLastname(String lastname) {
this.lastname = lastname;
}
public String getLastname() {
return lastname;
}
public void setAddress(String address) {
this.address = address;
}
public String getAddress() {
return address;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getPhone() {
return phone;
}
public BigDecimal ejbFindByPrimaryKey(BigDecimal customerid) throws
FinderException {
return null;
}
public void ejbLoad() {
}
public void ejbStore() {
}
public void ejbActivate() {
}
public void ejbPassivate() {
}
public void unsetEntityContext() {
this.entityContext = null;
}
public void setEntityContext(EntityContext entityContext) {
this.entityContext = entityContext;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?