package net.tooan.ynpay.order.agent.bus.facade; import net.tooan.ynpay.order.agent.bus.bean.BusStation; import javax.ejb.Remote; import java.util.List; /** * Created with IntelliJ IDEA. * User: iris * Date: 13-10-18 * Time: 下午4:13 */ @Remote public interface BusStationFacade { /** * 从本地数据中获取起点列表 * * @return 场站列表 * @throws Exception */ List<BusStation> getList() throws Exception; /** * 从本地数据中获取指定起点下的场站列表 * * @param origin 起点 * @return 场站列表 * @throws Exception */ List<BusStation> getStations(String origin) throws Exception; /** * 获取起点列表 * * @param remote 远程获取 * @return 场站列表 * @throws Exception */ List<BusStation> getList(Boolean remote) throws Exception; void save(BusStation station) throws Exception; }