📄 bankservice.java
字号:
package com.j2eeapp.bank;
import java.rmi.RemoteException;
import javax.ejb.*;
public interface BankService extends EJBObject
{
/**
* @J2EE_METHOD -- getCardNubmer
*/
public String getCardNubmer () throws RemoteException;
/**
* @J2EE_METHOD -- getDeposit
*/
public float getDeposit () throws RemoteException;
/**
* @J2EE_METHOD -- setDeposit
*/
public void setDeposit (float newDeposit) throws RemoteException;
/**
* @J2EE_METHOD -- getPassword
*/
public String getPassword () throws RemoteException;
/**
* @J2EE_METHOD -- setPassword
*/
public void setPassword (String newPassword) throws RemoteException;
/**
* @J2EE_METHOD -- matchPassword
*/
public boolean matchPassword (String password) throws RemoteException;
/**
* @J2EE_METHOD -- addFunds
*/
public boolean addFunds (float amount) throws RemoteException;
/**
* @J2EE_METHOD -- withdrawFunds
*/
public boolean withdrawFunds (float balance,String password) throws RemoteException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -