| 程序包 | 说明 |
|---|---|
| cn.crane4j.core.executor | |
| cn.crane4j.core.executor.handler | |
| cn.crane4j.core.parser.handler | |
| cn.crane4j.core.parser.operation | |
| cn.crane4j.core.support |
| 限定符和类型 | 方法和说明 |
|---|---|
default AssembleOperationHandler |
AssembleExecution.getHandler()
Gets the handler used to perform the assembly operation.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected static void |
AbstractBeanOperationExecutor.doExecute(AssembleOperationHandler handler,
Container<?> container,
Collection<AssembleExecution> executions)
Try to execute the operation.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
AsyncBeanOperationExecutor.doExecuteOperations(Map<Container<?>,Map<AssembleOperationHandler,List<AssembleExecution>>> executionGroups)
Execute the assembly operation.
|
protected void |
DisorderedBeanOperationExecutor.doExecuteOperations(Map<Container<?>,Map<AssembleOperationHandler,List<AssembleExecution>>> executionGroups)
Execute the assembly operation.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractAssembleOperationHandler
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<cn.crane4j.core.executor.handler.AbstractAssembleOperationHandler.Target>): 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<cn.crane4j.core.executor.handler.AbstractAssembleOperationHandler.Target>): Obtains the required data sources based on the objects to be processed;
AbstractAssembleOperationHandler.getTheAssociatedSource(cn.crane4j.core.executor.handler.AbstractAssembleOperationHandler.Target, 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, cn.crane4j.core.executor.handler.AbstractAssembleOperationHandler.Target) method is called to perform property mapping between them. |
class |
ManyToManyAssembleOperationHandler
An implementation of
AssembleOperationHandler
for the one-to-one mapping between the target object and the data source object. |
class |
OneToManyAssembleOperationHandler
An implementation of
AssembleOperationHandler
for the one-to-many mapping between the target object and the data source object. |
class |
OneToOneAssembleOperationHandler
An implementation of
AssembleOperationHandler
for the one-to-one mapping between the target object and the data source object. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected AssembleOperationHandler |
AbstractStandardAssembleAnnotationHandler.parseAssembleOperationHandler(AbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotation<A> standardAnnotation)
Get to assemble operation groups from given
AbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotation. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected KeyResolver |
AbstractStandardAssembleAnnotationHandler.determineKeyResolver(AbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotation<A> standardAssembleAnnotation,
AssembleOperationHandler operationHandler,
AssembleOperation operation)
Determine key resolver.
|
| 限定符和类型 | 方法和说明 |
|---|---|
AssembleOperationHandler |
AssembleOperation.getAssembleOperationHandler()
Get operation handler.
|
| 限定符和类型 | 方法和说明 |
|---|---|
default @NonNull AssembleOperationHandler |
Crane4jGlobalConfiguration.getAssembleOperationHandler(Class<?> handlerType)
Get assemble operation handler.
|
default @NonNull AssembleOperationHandler |
Crane4jGlobalConfiguration.getAssembleOperationHandler(String handlerName)
Get assemble operation handler.
|
@NonNull AssembleOperationHandler |
Crane4jGlobalConfiguration.getAssembleOperationHandler(@Nullable String handlerName,
Class<?> handlerType)
Get assemble operation handler.
|
@NonNull AssembleOperationHandler |
SimpleCrane4jGlobalConfiguration.getAssembleOperationHandler(@Nullable String handlerName,
Class<?> handlerType)
Get assemble operation handler.
|
Copyright © 2024. All rights reserved.