usermanager.java

来自「java编程最好的书籍,感觉对初学者或者中级java人员帮助很大」· Java 代码 · 共 37 行

JAVA
37
字号
package examples;import javax.ejb.*;import java.rmi.RemoteException;import java.rmi.Remote;/** * This is the UserManager remote interface. * * This interface is what clients operate on when * they interact with EJB objects.  The container * vendor will implement this interface; the * implemented object is the EJB object, which * delegates invocations to the actual bean. */public interface UserManager extends EJBObject {        /**     * It uses the customer entity bean to crate a record in the databse     */    public void createUser(User user)throws RemoteException;        /**     * Returns an user object for the given customer id.     * It uses customer entity bean to retrieve the user record.     */    public User getUser(String customerId) throws RemoteException;        /**     * Authenticate the user.     */    public boolean validateUser(String login, String password)throws InvalidPasswordException,RemoteException; }

⌨️ 快捷键说明

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