public static enum PropertyAccessor.BuiltIn extends Enum<PropertyAccessor.BuiltIn> implements PropertyAccessor
PropertyAccessor.BuiltIn| Enum Constant and Description |
|---|
STANDARD
The implementation using Java Beans API provided by JDK.
|
| 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.
|
static PropertyAccessor.BuiltIn |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PropertyAccessor.BuiltIn[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertyAccessor.BuiltIn STANDARD
public static PropertyAccessor.BuiltIn[] values()
for (PropertyAccessor.BuiltIn c : PropertyAccessor.BuiltIn.values()) System.out.println(c);
public static PropertyAccessor.BuiltIn valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Set<String> getPropertyNames(Class<?> type)
getPropertyNames in interface PropertyAccessortype - a target typepublic Class<?> getPropertyType(Class<?> type, String name)
getPropertyType in interface PropertyAccessortype - a target typename - a property namepublic Object getPropertyValue(Object target, String name)
getPropertyValue in interface PropertyAccessortarget - a target objectname - a property namepublic void setPropertyValue(Object target, String name, Object value)
setPropertyValue in interface PropertyAccessortarget - a target objectname - a property namevalue - a property valueCopyright © 2018–2020 MyBatis.org. All rights reserved.