| 接口 | 说明 |
|---|---|
| AssembleOperationHandler |
Handler of assembly operation.
|
| DisassembleOperationHandler |
Handler of disassembly operation.
|
| 类 | 说明 |
|---|---|
| AbstractAssembleOperationHandler<T extends AbstractAssembleOperationHandler.Target> |
This class serves as the top-level template class
and defines the key steps required by most
AssembleOperationHandler:Object processing phase: AbstractAssembleOperationHandler.collectToEntities(java.util.Collection<cn.crane4j.core.executor.AssembleExecution>): Expands the target objects to be operated on from the AssembleExecution
and wraps them as AbstractAssembleOperationHandler.Target objects, which will be used for subsequent processing;
AbstractAssembleOperationHandler.introspectForEntities(java.util.Collection<T>): If the Container for the current operation is not specified,
directly use the target objects as the data source for field mapping;
If the Container for the current operation is specified, it enters the data source preparation phase:
AbstractAssembleOperationHandler.getSourcesFromContainer(cn.crane4j.core.container.Container<?>, java.util.Collection<T>): Obtains the required data sources based on the objects to be processed;
AbstractAssembleOperationHandler.getTheAssociatedSource(T, java.util.Map<java.lang.Object, java.lang.Object>): Retrieves the associated data source object
corresponding to the key value of the object to be processed from the data sources;
Finally, if the object has an associated data source object,
the AbstractAssembleOperationHandler.completeMapping(java.lang.Object, T) method is called to perform property mapping between them. |
| AbstractAssembleOperationHandler.Target |
Target object to be processed.
|
| ManyToManyAssembleOperationHandler |
An implementation of
AssembleOperationHandler
for the one-to-one mapping between the target object and the data source object. |
| ManyToManyAssembleOperationHandler.DefaultSplitter |
The default key value splitter supports splitting
Collection,
arrays and strings with specified delimiters. |
| OneToManyAssembleOperationHandler |
An implementation of
AssembleOperationHandler
for the one-to-many mapping between the target object and the data source object. |
| OneToOneAssembleOperationHandler |
An implementation of
AssembleOperationHandler
for the one-to-one mapping between the target object and the data source object. |
| ReflectiveDisassembleOperationHandler |
A basic
DisassembleOperationHandler implementation based on PropertyOperator. |
Copyright © 2023. All rights reserved.