| 程序包 | 说明 |
|---|---|
| cn.crane4j.core.executor.handler |
| 限定符和类型 | 类和说明 |
|---|---|
class |
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. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected AbstractAssembleOperationHandler.Target |
ManyToManyAssembleOperationHandler.createTarget(AssembleExecution execution,
Object origin,
Object keyValue)
Create a
Target comparator. |
protected AbstractAssembleOperationHandler.Target |
OneToOneAssembleOperationHandler.createTarget(AssembleExecution execution,
Object origin,
Object keyValue)
Create a
Target comparator. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Collection<AbstractAssembleOperationHandler.Target> |
OneToOneAssembleOperationHandler.collectToEntities(Collection<AssembleExecution> executions)
Split the
AssembleExecution into pending objects and wrap it as Target. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
OneToManyAssembleOperationHandler.completeMapping(Object source,
AbstractAssembleOperationHandler.Target target)
Complete attribute mapping between the target object and the data source object.
|
protected void |
OneToOneAssembleOperationHandler.completeMapping(Object source,
AbstractAssembleOperationHandler.Target target)
Complete attribute mapping between the target object and the data source object.
|
protected Object |
ManyToManyAssembleOperationHandler.getTheAssociatedSource(AbstractAssembleOperationHandler.Target target,
Map<Object,Object> sources)
Get the data source object associated with the target object.
|
protected Object |
OneToOneAssembleOperationHandler.getTheAssociatedSource(AbstractAssembleOperationHandler.Target target,
Map<Object,Object> sources)
Get the data source object associated with the target object.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected Map<Object,Object> |
ManyToManyAssembleOperationHandler.getSourcesFromContainer(Container<?> container,
Collection<AbstractAssembleOperationHandler.Target> targets)
Obtain the corresponding data source object from the data source container based on the entity's key value.
|
protected Map<Object,Object> |
OneToOneAssembleOperationHandler.getSourcesFromContainer(Container<?> container,
Collection<AbstractAssembleOperationHandler.Target> targets)
Obtain the corresponding data source object from the data source container based on the entity's key value.
|
Copyright © 2023. All rights reserved.