📄 16s.txt
字号:
// TellerBean.java
public class TellerBean implements javax.ejb.SessionBean
{
private javax.ejb.SessionContext _context;
public void transfer(Account from, Account to, float balance) throws java.rmi.RemoteException
{
to.credit(balance);
from.debit(balance);
}
public void setSessionContext(javax.ejb.SessionContext context)
{
_context = context;
}
public void ejbCreate()
{
}
public void ejbRemove()
{
}
public void ejbActivate()
{
}
public void ejbPassivate()
{
}
public String toString()
{
return "TellerBean[context=" + _context + "]";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -