public interface PropertyAccessor
PropertyAccessor, you implements class of this interface and you need to
specify to a SqlGenerator. | Modifier and Type | Interface and Description |
|---|---|
static class |
PropertyAccessor.BuiltIn
The built-in property accessors.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getPropertyNames(Class<?> type)
Get property names of specified type.
|
Class<?> |
getPropertyType(Class<?> type,
String name)
Get a property type of specified property.
|
Object |
getPropertyValue(Object target,
String name)
Get a property value from specified target object.
|
void |
setPropertyValue(Object target,
String name,
Object value)
Set a property value to the specified target object.
|
Set<String> getPropertyNames(Class<?> type)
type - a target typeClass<?> getPropertyType(Class<?> type, String name)
type - a target typename - a property nameObject getPropertyValue(Object target, String name)
target - a target objectname - a property nameCopyright © 2018–2020 MyBatis.org. All rights reserved.