📄 calcbonusbean.java~3~
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -