public interface AssembleOperation extends KeyTriggerOperation
表示一个由指定的键触发的装配操作。
它通常通常用来描述通过下述步骤完成的依次填充操作:
完成上述操作所需的组件或配置可以通过方法获取:
KeyTriggerOperation.getKey():目标对象的哪个字段是键字段;getContainer():通过键字段值获取对应的数据源对象的容器;getPropertyMappings():获取数据源对象后,哪些属性应该填充到目标对象的哪些属性中;getAssembleOperationHandler():如何将这些属性值插入;getKeyResolver():如何解析键;getKeyDescription():键的描述;getPropertyMappingStrategy():属性映射策略;getKeyType():键的类型;The assembly operation triggered by the specified key.
An example is usually used to describe one of the following processes:
The necessary parts for completing the above operations can be obtained through the instance:
KeyTriggerOperation.getKey(): which field of the target object is the key field;getContainer(): which container to get the corresponding data source object through the key field value;getPropertyMappings(): after getting the data source object, which attributes
should be stuffed into which attributes of the target object;
getAssembleOperationHandler(): how to plug these attribute values;getKeyResolver(): how to resolve the key;getKeyDescription(): description of the key;getPropertyMappingStrategy(): property mapping strategy;getKeyType(): key type;AssembleOperationHandler,
Container,
PropertyMapping,
SimpleAssembleOperation| 限定符和类型 | 方法和说明 |
|---|---|
AssembleOperationHandler |
getAssembleOperationHandler()
Get operation handler.
|
String |
getContainer()
Get the namespace of data source container.
|
@Nullable String |
getKeyDescription()
Some description of the key which
helps
resolver to resolve the key. |
KeyResolver |
getKeyResolver()
Get key resolver.
|
@Nullable Class<?> |
getKeyType()
Get the type of key property.
|
Set<PropertyMapping> |
getPropertyMappings()
Get property mapping.
|
PropertyMappingStrategy |
getPropertyMappingStrategy()
Get property mapping strategy.
|
void |
setKeyDescription(@NonNull String keyDescription)
Set key description.
|
void |
setKeyResolver(@NonNull KeyResolver keyResolver)
Set key resolver.
|
void |
setKeyType(Class<?> keyType)
Set key property type.
|
void |
setPropertyMappingStrategy(@NonNull PropertyMappingStrategy strategy)
Set property mapping strategy.
|
getCondition, getId, getKey, getSource, setConditionallMatch, alwaysMatch, alwaysNoneMatch, anyMatch, getGroups, isBelong, noneMatchSet<PropertyMapping> getPropertyMappings()
@Nullable Class<?> getKeyType()
void setKeyType(Class<?> keyType)
keyType - key typeKeyResolver getKeyResolver()
void setKeyResolver(@NonNull KeyResolver keyResolver)
keyResolver - key resolver@Nullable String getKeyDescription()
resolver to resolve the key.void setKeyDescription(@NonNull String keyDescription)
keyDescription - descriptionString getContainer()
AssembleOperationHandler getAssembleOperationHandler()
PropertyMappingStrategy getPropertyMappingStrategy()
void setPropertyMappingStrategy(@NonNull PropertyMappingStrategy strategy)
strategy - strategy nameCopyright © 2024. All rights reserved.