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

📄 calcbonusbean.java~5~

📁 Contains a complete archiver by Haruhiko Okumura. The archiver uses an LZ engine whose output is c
💻 JAVA~5~
字号:
package ejb;

import javax.ejb.*;

public class CalcBonusBean implements SessionBean {
  private SessionContext ctx;
  private int nRate;
  public void setSessionContext(SessionContext ctx) {
    this.ctx = ctx;
  }

  public void ejbActivate() {};

  public void ejbPassivate() {};

  public void ejbRemove() throws RemoveException {} ;

  public void ejbCreate()throws CreateException {} ;

  public void ejbCreate(int nRate) throws CreateException {
    this.nRate = nRate;
  }

  public float calculateBonus() throws RemoteException {
    return 100.0f;
  }

  public float calculateTax(float fRate, float fBonus) throws RemoteException {
    return fBonus * fRate;
  }
}

⌨️ 快捷键说明

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