musiccdbean.java

来自「软件开发技术与方法」· Java 代码 · 共 54 行

JAVA
54
字号
package musicstore;

import java.rmi.RemoteException;
import javax.ejb.*;


public class MusicCDBean implements EntityBean {

    transient private EntityContext ctx;

    public String upc;
    public String title;
    public String artist;
    public String type;
    public float  price;


    // Need to implement the ejbCreate method
    // corresponding to the create method defined in
    // MusicCDHome here


    public void ejbPostCreate(String upc) {
    }


    // Need to implement the accessor and mutator
    // methods defined in MusicCD here


    public void setEntityContext(EntityContext ctx) {
        this.ctx = ctx;
    }

    public void unsetEntityContext() {
        ctx = null;
    }

    public void ejbActivate() {
    }

    public void ejbPassivate() {
    }

    public void ejbLoad() {
    }

    public void ejbStore() {
    }

    public void ejbRemove() {
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?