productkeybean.java

来自「关于的java的多媒体课件」· Java 代码 · 共 36 行

JAVA
36
字号
package com.javasrc.licenseserver.ejb.productkey;

import javax.ejb.*;
import com.javasrc.licenseserver.ejb.product.*;

public abstract class ProductKeyBean implements EntityBean
{
    public Integer ejbCreate( Integer id, String key ) throws CreateException
    {
        setId( id );
        setKey( key );
        return null;
    }

    public void ejbPostCreate( Integer id, String key )
    {
    }

    public abstract Integer getId();
    public abstract void setId( Integer id );

    public abstract String getKey();
    public abstract void setKey( String key );

    public abstract ProductLocal getProduct();
    public abstract void setProduct( ProductLocal product );

    public void setEntityContext( EntityContext ctx ) {}
    public void unsetEntityContext() {}
    public void ejbLoad() {}
    public void ejbStore() {}
    public void ejbActivate() {}
    public void ejbPassivate() {}
    public void ejbRemove() {}
}

⌨️ 快捷键说明

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