基服务接口BaseService(AdapterConfig)<ZextendsBaseModel>

这篇博客介绍了如何使用适配器模式来规范化服务接口,通过BaseService<Z extends BaseModel>接口,旨在避免因功能重复实现导致的混乱。AdapterConfig.java在JVM中扮演角色,并且在Tomcat-Catalina环境中被使用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

使用到了适配器模式。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;
}//基服务接口尾
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值