public class BeanOperateHandler extends Object implements OperateHandler
| 构造器和说明 |
|---|
BeanOperateHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
readFromSource(Object source,
PropertyMapping property,
Operation operation)
从数据源中读取数据
source必须是 OperateHandler.sourceCanRead(Object, PropertyMapping, Operation)所支持的类型 |
boolean |
sourceCanRead(Object source,
PropertyMapping property,
Operation operation)
是否支持从数据源中读取数据
|
boolean |
targetCanWrite(Object sourceData,
Object target,
PropertyMapping property,
AssembleOperation operation)
是否支持将数据源数据写入待处理对象
|
void |
writeToTarget(Object sourceData,
Object target,
PropertyMapping property,
AssembleOperation operation)
将数据源数据写入待处理对象
target必须是 OperateHandler.targetCanWrite(Object, Object, PropertyMapping, AssembleOperation)所支持的类型 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparator, compareTo, getActualOrder, getOrderpublic boolean sourceCanRead(Object source, PropertyMapping property, Operation operation)
OperateHandlersourceCanRead 在接口中 OperateHandlersource - 数据源property - 待处理字段operation - 字段配置public Object readFromSource(Object source, PropertyMapping property, Operation operation)
OperateHandlerOperateHandler.sourceCanRead(Object, PropertyMapping, Operation)所支持的类型readFromSource 在接口中 OperateHandlersource - 数据源property - 待处理字段operation - 字段配置public boolean targetCanWrite(Object sourceData, Object target, PropertyMapping property, AssembleOperation operation)
OperateHandlertargetCanWrite 在接口中 OperateHandlersourceData - 从数据源获取的数据target - 待处理对象property - 待处理字段operation - 字段配置public void writeToTarget(Object sourceData, Object target, PropertyMapping property, AssembleOperation operation)
OperateHandlerOperateHandler.targetCanWrite(Object, Object, PropertyMapping, AssembleOperation)所支持的类型writeToTarget 在接口中 OperateHandlersourceData - 从数据源获取的数据target - 待处理对象property - 待处理字段operation - 字段配置Copyright © 2022. All rights reserved.