calcbonusbean.java~2~

来自「Contains a complete archiver by Haruhiko」· JAVA~2~ 代码 · 共 31 行

JAVA~2~
31
字号
package 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 + =
减小字号Ctrl + -
显示快捷键?