IUAPQueryBS

 /* * 创建日期 2005-9-9 * * TODO 要更改此生成的文件的模板,请转至 * 窗口 - 首选项 - Java - 代码样式 - 代码模板 */ package nc.itf.uap; import java.util.Collection; import nc.jdbc.framework.SQLParameter; import nc.jdbc.framework.mapping.IMappingMeta; import nc.jdbc.framework.exception.DbException; import nc.jdbc.framework.processor.ResultSetProcessor; import nc.vo.pub.BusinessException; import nc.vo.pub.SuperVO; public interface IUAPQueryBS { abstract public Collection retrieveByCorp(Class c, String pkCorp, String[] selectedFields) throws BusinessException; abstract public Collection retrieveByCorp(Class c, String pkCorp) throws BusinessException; abstract public Object retrieveByPK(Class className, String pk) throws BusinessException; abstract public Object retrieveByPK(Class className, String pk, String[] selectedFields) throws BusinessException; public Collection retrieveByClause(Class className, String condition, String[] fields) throws BusinessException; /** * @since 5.5 * @param className * @param condition * @param fields * @param param * @return * @throws BusinessException */ public Collection retrieveByClause(Class className, String condition, String[] fields, SQLParameter param) throws BusinessException; public Collection retrieve(SuperVO vo, boolean isAnd, String[] fields) throws BusinessException; public Collection retrieve(SuperVO vo, boolean isAnd) throws BusinessException; /** * 查询VO对应表所有数据 * * @param className * @return * @throws DbException */ public Collection retrieveAll(Class className) throws BusinessException; /** * 根据条件查询VO对应表数据 * * @param className * @param condition * @return * @throws DbException */ public Collection retrieveByClause(Class className, String condition) throws BusinessException; /** * 执行一个有参数SQL查询 * * @param sql * 查询的SQL语句 * @param parameter * 查询参数 * @param processor * 结果集处理器 * @return * @throws BusinessException * 查询出错则抛出异常 */ public Object executeQuery(String sql, SQLParameter parameter, ResultSetProcessor processor) throws BusinessException; /** * 执行一个无参数的SQL查询 * * @param sql * 查询的SQL语句 * @param processor * 结果集处理器 * @return * @throws BusinessException * 查询出错则抛出异常 */ public Object executeQuery(String sql, ResultSetProcessor processor) throws BusinessException; /** * 根据值对象的属性值为条件查询对应数据 * * @param vo * 值对象 * @param meta * 数据映射信息 * @return * @throws DbException * 如果查询出错则抛出DbException */ public abstract Collection retrieve(Object vo, IMappingMeta meta) throws BusinessException; /** * 根据数据映射信息查询对应的所有数据 * * @param className * 对象名 * @param meta * 数据映射信息 * @return * @throws DbException * 如果查询出错则抛出DbException */ public abstract Collection retrieveAll(Class className, IMappingMeta meta) throws BusinessException; public abstract Collection retrieveByClause(Class className, IMappingMeta meta, String condition, String[] fields) throws BusinessException; public abstract Collection retrieveByClause(Class className, IMappingMeta meta, String condition, String[] fields, SQLParameter param) throws BusinessException; public abstract Collection retrieveByClause(Class className, IMappingMeta meta, String condition) throws BusinessException; }

你可能感兴趣的:(Java)