⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customerhandlerrmiserverimpl.java

📁 rmi server web service for a stock track systerm
💻 JAVA
字号:
package ase.assignment.sts.rmi.server;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

import ase.assignment.sts.api.CustomerHandler;
import ase.assignment.sts.beans.CustomerEntity;
import ase.assignment.sts.db.impl.HandlerFactoryJDBCImpl;
import ase.assignment.sts.utils.STSConstants;

public class CustomerHandlerRMIServerImpl extends UnicastRemoteObject implements
		CustomerHandler {
	private static final long serialVersionUID = -5703994586651028467L;

	protected CustomerHandlerRMIServerImpl() throws RemoteException {
		super();
	}

	private CustomerHandler getHandler() throws RemoteException {
		return new HandlerFactoryJDBCImpl().getCustomerHandler();
	}

	public void close(String username) throws RemoteException {
		getHandler().close(username);
	}

	public void create(CustomerEntity customer) throws RemoteException {
		getHandler().create(customer);
	}

	public CustomerEntity find(String username) throws RemoteException {
		return getHandler().find(username);
	}

	public boolean login(String username, String password)
			throws RemoteException {
				System.out.println("........remote login ");
		return getHandler().login(username, password);
	}

	public void update(CustomerEntity customer) throws RemoteException {
		getHandler().update(customer);
	}

}

⌨️ 快捷键说明

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