| | |
| | | package com.vci.web.service; |
| | | |
| | | import com.vci.client.bof.ClientBusinessObject; |
| | | import com.vci.common.qt.object.Condition; |
| | | import com.vci.common.qt.object.QueryTemplate; |
| | | import com.vci.corba.omd.data.BusinessObject; |
| | | import com.vci.corba.omd.data.LinkObject; |
| | | import com.vci.starter.web.exception.VciBaseException; |
| | | import com.vci.starter.web.pagemodel.DataGrid; |
| | | import com.vci.starter.web.pagemodel.PageHelper; |
| | | import com.vci.starter.web.wrapper.VciQueryWrapperForDO; |
| | | import com.vci.web.pageModel.BatchCBO; |
| | | import com.vci.pagemodel.BatchCBO; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | ClientBusinessObject createCBOByBtmName(String btmName) throws VciBaseException; |
| | | BusinessObject createCBOByBtmName(String btmName) throws VciBaseException; |
| | | |
| | | /** |
| | | * 根据查询条件来查询业务类型下的数据 |
| | |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | List<com.vci.client.bof.ClientBusinessObject> queryCBO(String btmType, Map<String, String> conditionMap) throws VciBaseException; |
| | | List<BusinessObject> queryCBO(String btmType, Map<String, String> conditionMap) throws VciBaseException; |
| | | |
| | | /** |
| | | * 支持排序和分页的查询业务类型下的数据 |
| | |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | List<com.vci.client.bof.ClientBusinessObject> queryCBO(String btmType, Map<String, String> conditionMap, PageHelper ph) throws VciBaseException; |
| | | List<BusinessObject> queryCBO(String btmType, Map<String, String> conditionMap, PageHelper ph) throws VciBaseException; |
| | | |
| | | /** |
| | | * 支持自定义查询字段(包括参照、枚举和生命周期) |
| | |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | List<com.vci.client.bof.ClientBusinessObject> queryCBO(String btmType, Map<String, String> conditionMap, PageHelper ph, List<String> clauseList) throws VciBaseException; |
| | | List<BusinessObject> queryCBO(String btmType, Map<String, String> conditionMap, PageHelper ph, List<String> clauseList) throws VciBaseException; |
| | | |
| | | /** |
| | | * 拷贝分页和排序的设置到查询模板 |
| | |
| | | * @param enumAttrName 枚举的名称 |
| | | * @throws VciBaseException 查询枚举出错的时候会抛出异常 |
| | | */ |
| | | void queryEnumText(com.vci.client.bof.ClientBusinessObject cbo, com.vci.client.bof.ClientLinkObject clo, List<String> enumAttrName) throws VciBaseException; |
| | | void queryEnumText(BusinessObject cbo, LinkObject clo, List<String> enumAttrName) throws VciBaseException; |
| | | |
| | | /** |
| | | * 给链接类型设置属性 |
| | |
| | | * @param attributeName 属性的名称 |
| | | * @param attributeValue 属性的值 |
| | | */ |
| | | void setAttributeValueForClo(com.vci.client.bof.ClientLinkObject clo, String attributeName, String attributeValue); |
| | | void setAttributeValueForClo(LinkObject clo, String attributeName, String attributeValue); |
| | | |
| | | /** |
| | | * 使用查询方案来查询数据,返回CBO |
| | |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | List<com.vci.client.bof.ClientBusinessObject> queryCBOByScheme(String queryScheme, Map<String, String> conditionMap, Map<String, String> replaceMap) throws VciBaseException; |
| | | List<BusinessObject> queryCBOByScheme(String queryScheme, Map<String, String> conditionMap, Map<String, String> replaceMap) throws VciBaseException; |
| | | |
| | | /** |
| | | * 使用查询方案来查询数据,返回CBO,支持分页 |
| | |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | List<com.vci.client.bof.ClientBusinessObject> queryCBOByScheme(String queryScheme, Map<String, String> conditionMap, Map<String, String> replaceMap, PageHelper ph) throws VciBaseException; |
| | | List<BusinessObject> queryCBOByScheme(String queryScheme, Map<String, String> conditionMap, Map<String, String> replaceMap, PageHelper ph) throws VciBaseException; |
| | | |
| | | /** |
| | | * 使用名字获取查询模板 |
| | |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | List<com.vci.client.bof.ClientBusinessObject> queryCBOByScheme(String queryScheme, Map<String, String> conditionMap, Map<String, String> replaceMap, PageHelper ph, List<String> clauseList) throws VciBaseException; |
| | | List<BusinessObject> queryCBOByScheme(String queryScheme, Map<String, String> conditionMap, Map<String, String> replaceMap, PageHelper ph, List<String> clauseList) throws VciBaseException; |
| | | |
| | | /** |
| | | * 查询数量 |
| | |
| | | * @return CBO |
| | | * @throws VciBaseException |
| | | */ |
| | | List<com.vci.client.bof.ClientBusinessObject> queryBySql(String sql, Map<String, String> conditionMap) throws VciBaseException; |
| | | List<BusinessObject> queryBySql(String sql, Map<String, String> conditionMap) throws VciBaseException; |
| | | |
| | | /** |
| | | * 只用sql语句查询,这个和queryBySql区别是,特殊的sql(如包含有函数的)可以用这个方法,但是有sql注入风险 |
| | |
| | | * @return CBO |
| | | * @throws VciBaseException 查询出错活抛出异常 |
| | | */ |
| | | List<com.vci.client.bof.ClientBusinessObject> queryByOnlySql(String sql) throws VciBaseException; |
| | | List<BusinessObject> queryByOnlySql(String sql) throws VciBaseException; |
| | | |
| | | /** |
| | | * 只用sql语句查询,这个和queryBySqlForMap区别是,特殊的sql(如包含有函数的)可以用这个方法,但是有sql注入风险 |
| | |
| | | DataGrid queryGridClassByScheme(String queryScheme, Class c, Map<String, String> conditionMap, Map<String, String> replaceMap, PageHelper ph) throws VciBaseException; |
| | | |
| | | /** |
| | | * ClientBusinessObject 转为HashMap |
| | | * BusinessObject 转为HashMap |
| | | * @param cbos CBOS |
| | | * @return map |
| | | * @throws VciBaseException |
| | | */ |
| | | List<Map> cbos2Map(List<ClientBusinessObject> cbos) throws VciBaseException; |
| | | List<Map> cbos2Map(List<BusinessObject> cbos) throws VciBaseException; |
| | | |
| | | /** |
| | | * ClientBusinessObject 转为HashMap |
| | | * BusinessObject 转为HashMap |
| | | * @param cbo |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | Map cbo2Map(com.vci.client.bof.ClientBusinessObject cbo) throws VciBaseException; |
| | | Map cbo2Map(BusinessObject cbo) throws VciBaseException; |
| | | |
| | | /** |
| | | * map转为clientBusinessObject |
| | | * map转为BusinessObject |
| | | * @param map |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | List<ClientBusinessObject> map2Cbos(List<Map> map) throws VciBaseException; |
| | | List<BusinessObject> map2Cbos(List<Map> map) throws VciBaseException; |
| | | |
| | | /** |
| | | * map转为clientBusinessObject |
| | | * map转为BusinessObject |
| | | * @param map |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | ClientBusinessObject map2Cbo(Map map) throws VciBaseException; |
| | | BusinessObject map2Cbo(Map map) throws VciBaseException; |
| | | |
| | | /** |
| | | * 批量保存业务类型和链接类型的信息 |
| | |
| | | * @return cbo |
| | | * @throws VciBaseException 参数为空,数据不存在会抛出异常 |
| | | */ |
| | | ClientBusinessObject selectCBOByOid(String oid,String btmName) throws VciBaseException; |
| | | BusinessObject selectCBOByOid(String oid,String btmName) throws VciBaseException; |
| | | |
| | | /** |
| | | * 使用主键集合获取对象 |
| | |
| | | * @return 业务数据的集合 |
| | | * @throws VciBaseException 参数为空,查询出错会抛出异常 |
| | | */ |
| | | List<ClientBusinessObject> selectCBOByOidCollection(Collection<String> oidCollection,String btmName) throws VciBaseException; |
| | | List<BusinessObject> selectCBOByOidCollection(Collection<String> oidCollection,String btmName) throws VciBaseException; |
| | | |
| | | /** |
| | | * 使用新的查询封装器来查询 |