ORDERLY_COMPARATOR| 构造器和说明 |
|---|
BaseKeyContainer() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract Map<K,?> |
getSources(Set<K> keys)
根据装配的key字段值获取与key字段值对应的数据源对象集合
|
protected Set<K> |
getTargetIds(com.google.common.collect.Multimap<AssembleOperation,?> operations)
从待处理对象中获取所需要的key字段值
|
protected K |
parseKey(Object key)
将获取的key字段值转为所需要的类型
|
void |
process(com.google.common.collect.Multimap<AssembleOperation,?> operations)
根据指定装配操作配置处理待处理对象
|
protected void |
writeToTargets(Map<K,?> sources,
Object target,
AssembleOperation operation)
将数据源写入对象
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparator, compareTo, getActualOrder, getOrderpublic void process(com.google.common.collect.Multimap<AssembleOperation,?> operations)
Containerprotected void writeToTargets(@Nonnull Map<K,?> sources, @Nullable Object target, @Nonnull AssembleOperation operation)
sources - 数据源target - 待处理对象operation - 装配配置@Nonnull protected abstract Map<K,?> getSources(@Nonnull Set<K> keys)
keys - id集合@Nonnull protected Set<K> getTargetIds(@Nonnull com.google.common.collect.Multimap<AssembleOperation,?> operations)
operations - 待处理对象与操作配置Copyright © 2022. All rights reserved.