public class ManyToManyAssembleOperationHandler extends AbstractAssembleOperationHandler
An implementation of AssembleOperationHandler
for the one-to-one mapping between the target object and the data source object.
The difference between ManyToManyAssembleOperationHandler and OneToManyAssembleOperationHandler
is that OneToManyAssembleOperationHandler is used to handle the situation where
multiple values can be obtained through a key in the data source container,
while ManyToManyAssembleOperationHandler is used to handle the situation where only
one value can be obtained through a key, but there are multiple keys at the same time.
ReflectiveSeparablePropertyKeyResolverAbstractAssembleOperationHandler.Target| 限定符和类型 | 字段和说明 |
|---|---|
protected ConverterManager |
converterManager |
protected PropertyOperator |
propertyOperator |
ignoreNullKey| 构造器和说明 |
|---|
ManyToManyAssembleOperationHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
completeMapping(Object source,
AbstractAssembleOperationHandler.Target target)
Complete attribute mapping between the target object and the data source object.
|
KeyResolver |
determineKeyResolver(AssembleOperation operation)
Determine key resolver for the operation.
|
protected Map<Object,Object> |
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 Object |
getTheAssociatedSource(AbstractAssembleOperationHandler.Target target,
Map<Object,Object> sources)
Get the data source object associated with the target object.
|
createTarget, introspectForEntities, processclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNameprotected final PropertyOperator propertyOperator
protected final ConverterManager converterManager
protected Map<Object,Object> getSourcesFromContainer(Container<?> container, Collection<AbstractAssembleOperationHandler.Target> targets)
getSourcesFromContainer 在类中 AbstractAssembleOperationHandlercontainer - containertargets - targetsprotected Object getTheAssociatedSource(AbstractAssembleOperationHandler.Target target, Map<Object,Object> sources)
getTheAssociatedSource 在类中 AbstractAssembleOperationHandlertarget - targetsources - sourcesprotected void completeMapping(Object source, AbstractAssembleOperationHandler.Target target)
completeMapping 在类中 AbstractAssembleOperationHandlersource - sourcetarget - targetpublic KeyResolver determineKeyResolver(AssembleOperation operation)
operation - operationCopyright © 2024. All rights reserved.