public interface OperateHandler extends Orderly
Operator中从不同类型的数据结构中读取或写入所需数据| 限定符和类型 | 方法和说明 |
|---|---|
Object |
readFromSource(Object source,
PropertyMapping property,
Operation operation)
从数据源中读取数据
source必须是 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必须是 targetCanWrite(Object, Object, PropertyMapping, AssembleOperation)所支持的类型 |
comparator, compareTo, getActualOrder, getOrderboolean sourceCanRead(@Nullable Object source, PropertyMapping property, Operation operation)
source - 数据源property - 待处理字段operation - 字段配置@Nullable Object readFromSource(@Nullable Object source, PropertyMapping property, Operation operation)
sourceCanRead(Object, PropertyMapping, Operation)所支持的类型source - 数据源property - 待处理字段operation - 字段配置boolean targetCanWrite(@Nullable Object sourceData, @Nullable Object target, PropertyMapping property, AssembleOperation operation)
sourceData - 从数据源获取的数据target - 待处理对象property - 待处理字段operation - 字段配置void writeToTarget(@Nullable Object sourceData, @Nullable Object target, PropertyMapping property, AssembleOperation operation)
targetCanWrite(Object, Object, PropertyMapping, AssembleOperation)所支持的类型sourceData - 从数据源获取的数据target - 待处理对象property - 待处理字段operation - 字段配置Copyright © 2022. All rights reserved.