public class BeanContainer extends Object implements Serializable
| 构造器和说明 |
|---|
BeanContainer() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addItem(BeanGroup bean) |
<T> void |
compareDatas(List<T> actualResult,
String targetName)
核对结果集
|
<T> void |
compareDatas(List<T> actualResult,
String targetName,
List<String> excludeFields)
核对结果集
|
<T> void |
compareDatas(List<T> actualResult,
String targetName,
List<String> excludeFields,
Map<String,String> resources)
核对结果集
|
<T> void |
compareDatas(List<T> actualResult,
String targetName,
Map<String,String> resources)
核对结果集
|
<T> void |
compareValues(List<T> actualResult,
String targetName)
核对数据列表
|
<T> void |
compareValues(List<T> actualResult,
String targetName,
Map<String,String> resources)
核对数据列表
|
BeanGroup |
findGroup(String name) |
<T> T |
getBean(String name,
Class<T> type) |
<T> List<T> |
getBeans(String name,
Class<T> type) |
List<BeanGroup> |
getContent()
获取容器内容
|
Map<String,Object> |
getData(String name) |
List<Map<String,Object>> |
getDatas(String name) |
String |
getName()
获取容器名称
|
List<Object> |
getValues(String name) |
<T> List<T> |
getValues(String name,
Class<T> type) |
void |
setName(String name)
设置容器名称
|
public String getName()
public void setName(String name)
public void addItem(BeanGroup bean)
public <T> void compareDatas(List<T> actualResult, String targetName) throws ResultSetMismatchException
actualResult - 实际结果集数据targetName - 目标结果集的名称ResultSetMismatchException - 不匹配public <T> void compareDatas(List<T> actualResult, String targetName, Map<String,String> resources) throws ResultSetMismatchException
actualResult - 实际结果集数据targetName - 目标结果集的名称resources - 自定义提示消息ResultSetMismatchException - 不匹配public <T> void compareDatas(List<T> actualResult, String targetName, List<String> excludeFields) throws ResultSetMismatchException
actualResult - 实际结果集数据targetName - 目标结果集的名称excludeFields - 不需要比较的字段列表ResultSetMismatchException - 不匹配public <T> void compareDatas(List<T> actualResult, String targetName, List<String> excludeFields, Map<String,String> resources) throws ResultSetMismatchException
actualResult - 实际结果集数据targetName - 目标结果集的名称excludeFields - 不需要比较的字段列表resources - 自定义提示消息ResultSetMismatchException - 不匹配public <T> void compareValues(List<T> actualResult, String targetName) throws ResultSetMismatchException
actualResult - 实际数据列表数据targetName - 目标数据列表的名称ResultSetMismatchException - 不匹配public <T> void compareValues(List<T> actualResult, String targetName, Map<String,String> resources) throws ResultSetMismatchException
actualResult - 实际数据列表数据targetName - 目标数据列表的名称resources - 自定义提示消息ResultSetMismatchException - 不匹配Copyright © 2020. All rights reserved.