public abstract class AbstractPropertyBuilder<T> extends Object implements PropertyBuilder<T>
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
AbstractPropertyBuilder.Operation |
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
ignoredNull |
protected Object |
lastOrig |
| 构造器和说明 |
|---|
AbstractPropertyBuilder() |
| 限定符和类型 | 方法和说明 |
|---|---|
PropertyBuilder<T> |
exec()
执行所有属性映射操作,已执行过的操作不会重复执行
|
protected abstract void |
exec(AbstractPropertyBuilder.Operation operation) |
PropertyBuilder<T> |
from(Object orig)
指定数据来源对象
|
PropertyBuilder<T> |
ignoreNull(boolean ignored)
是否忽略空属性值
|
PropertyBuilder<T> |
map(String origProperty,
String destProperty)
配置属性映射关系
|
PropertyBuilder<T> |
mapAll() |
PropertyBuilder<T> |
mapAll(Class<?> clazz) |
PropertyBuilder<T> |
set(String destProperty,
Object value)
设置目标对象的属性的值
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoneprotected Object lastOrig
protected boolean ignoredNull
public PropertyBuilder<T> from(Object orig)
PropertyBuilderfrom 在接口中 PropertyBuilder<T>public PropertyBuilder<T> ignoreNull(boolean ignored)
PropertyBuilderignoreNull 在接口中 PropertyBuilder<T>public PropertyBuilder<T> set(String destProperty, Object value)
PropertyBuilderset 在接口中 PropertyBuilder<T>destProperty - 目标对象属性表达式value - 属性值public PropertyBuilder<T> mapAll()
mapAll 在接口中 PropertyBuilder<T>public PropertyBuilder<T> mapAll(Class<?> clazz)
mapAll 在接口中 PropertyBuilder<T>public PropertyBuilder<T> map(String origProperty, String destProperty)
PropertyBuildermap 在接口中 PropertyBuilder<T>origProperty - 来源对象属性表达式destProperty - 目标对象属性表达式public PropertyBuilder<T> exec()
PropertyBuilderexec 在接口中 PropertyBuilder<T>protected abstract void exec(AbstractPropertyBuilder.Operation operation)
Copyright © 2024 fossc. All rights reserved.