| 程序包 | 说明 |
|---|---|
| cn.crane4j.core.parser.handler | |
| cn.crane4j.core.parser.handler.strategy | |
| cn.crane4j.core.parser.operation | |
| cn.crane4j.core.support |
| 限定符和类型 | 方法和说明 |
|---|---|
protected @NonNull PropertyMappingStrategy |
AbstractStandardAssembleAnnotationHandler.parserPropertyMappingStrategy(AbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotation<A> standardAnnotation)
Parse
PropertyMappingStrategy instance from given annotation. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
OverwriteMappingStrategy
Enforce overwriting the original value of the referenced field regardless of whether the referenced source value is null or not.
|
class |
OverwriteNotNullMappingStrategy
Assign the source value to the referenced field only if the referenced source value is not null.
|
class |
ReferenceMappingStrategy
Assignment of source values to the target object
is only allowed if the reference field value of the target object is null.
|
| 限定符和类型 | 方法和说明 |
|---|---|
@Nullable PropertyMappingStrategy |
PropertyMappingStrategyManager.getPropertyMappingStrategy(String name)
Get property mapping strategy by name.
|
@Nullable PropertyMappingStrategy |
SimplePropertyMappingStrategyManager.getPropertyMappingStrategy(String name)
Get property mapping strategy by name.
|
PropertyMappingStrategy |
PropertyMappingStrategyManager.removePropertyMappingStrategy(String name)
Remove property mapping strategy.
|
PropertyMappingStrategy |
SimplePropertyMappingStrategyManager.removePropertyMappingStrategy(String name)
Remove property mapping strategy.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<PropertyMappingStrategy> |
PropertyMappingStrategyManager.getAllPropertyMappingStrategies()
Get all property mapping strategies.
|
Collection<PropertyMappingStrategy> |
SimplePropertyMappingStrategyManager.getAllPropertyMappingStrategies()
Get all property mapping strategies.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
PropertyMappingStrategyManager.addPropertyMappingStrategy(@NonNull PropertyMappingStrategy propertyMappingStrategy)
Register property mapping strategy.
|
void |
SimplePropertyMappingStrategyManager.addPropertyMappingStrategy(@NonNull PropertyMappingStrategy strategy)
Register property mapping strategy.
|
| 限定符和类型 | 方法和说明 |
|---|---|
PropertyMappingStrategy |
AssembleOperation.getPropertyMappingStrategy()
Get property mapping strategy.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
AssembleOperation.setPropertyMappingStrategy(@NonNull PropertyMappingStrategy strategy)
Set property mapping strategy.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Crane4jTemplate.OpsForComponent |
Crane4jTemplate.OpsForComponent.registerPropertyMappingStrategy(@NonNull PropertyMappingStrategy propertyMappingStrategy)
Register property mapping strategy.
|
Copyright © 2024. All rights reserved.