package net.tooan.ynpay.order.agent.bus.facade;
import net.tooan.ynpay.order.agent.bus.bean.BusClass;
import javax.ejb.Remote;
import java.util.List;
/**
* Created with IntelliJ IDEA.
* User: iris
* Date: 13-10-18
* Time: 下午4:13
*/
@Remote
public interface BusClassFacade {
/**
* 从缓存中查询班次
*
* @param origin 起点
* @param site 讫点
* @param date 发车日期
* @return 班次列表
* @throws Exception
*/
List<BusClass> getList(String origin, String site, String date) throws Exception;
/**
* 从远程查询班次
*
* @param origin 起点
* @param site 讫点
* @param date 发车日期
* @param remote 远程查询标记
* @return 班次列表
* @throws Exception
*/
List<BusClass> getList(String origin, String site, String date, Boolean remote) throws Exception;
/**
* 通过缓存 ID 查询班次
*
* @param id 缓存 ID
* @return 缓存的班次
* @throws Exception
*/
BusClass find(String id) throws Exception;
}