⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 107ea0beab6j2eecustomerbean.java~2~

📁 本程序是用java编写的一个关于银行存款取款的软件
💻 JAVA~2~
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -