使用到了适配器模式。AdapterConfig.java–JVM–AdapterConfig.class(tomcat-catalina)
该接口的目的是为了规范化,要用到什么功能,每个人就用这个方法,不要再各自起各自的方法,免得一个方法起几个名字,乱七八糟的!
public interface AdapterConfig<Z extends BaseModel>{
//取得Siebel Field----Bean Property 的映射关系
public Map<String ,String > getRawMapping();
//取得Sieble BC 的名称
public String getBusinessComponeseName();
//取得Parent Sieble BC 的名称
public String getParentBusinessComponeseName();
//取得 父Id
public String getParentRowId(Z model);
//取得 Parent Siebel BC , RowId的列表(祖辈列表)
public Map<String, String> getParentList(Z model);
//取得Sieble BO 的名称
public String getBusinessObjectName();
//取得Sieble IO 的名称
public String getIntegrationObjectName();
//取得Sieble IC 的名称
public String getIntegrationComponeseName();
//获取查询列表的 查询条件表达式
public String getListExpress(Z model);
//获取查询列表的 查询条件表达式(分页)
public String getPageListExpress(Z model);
//排序配置
public String getSortSpec(Z model);
//MVF配置
public Map<String ,List<String>> getMVFList(Z model) throws Exception;
//PickList配置
public Map<String ,String> getPickListList(Z model) throws Exception;
//MVG 字段名称
public Map<String ,String> getMVFCols(Z model) throws Exception;
//PickList 字段名称
public Map<String ,String> getPickListCols(Z model) throws Exception;
}//基服务接口尾