Package org.mybatis.scripting.thymeleaf
Interface PropertyAccessor
- All Known Implementing Classes:
PropertyAccessor.BuiltIn
public interface PropertyAccessor
The interface for accessing a property.
If you want to customize a default
If you want to customize a default
PropertyAccessor, you implements class of this interface and you need to
specify to a SqlGenerator. - Version:
- 1.0.2
- Author:
- Kazuki Shimizu
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe built-in property accessors. -
Method Summary
Modifier and TypeMethodDescriptiongetPropertyNames(Class<?> type) Get property names of specified type.Class<?> getPropertyType(Class<?> type, String name) Get a property type of specified property.getPropertyValue(Object target, String name) Get a property value from specified target object.voidsetPropertyValue(Object target, String name, Object value) Set a property value to the specified target object.
-
Method Details
-
getPropertyNames
Get property names of specified type.- Parameters:
type- a target type- Returns:
- property names
-
getPropertyType
Get a property type of specified property.- Parameters:
type- a target typename- a property name- Returns:
- a property type
-
getPropertyValue
Get a property value from specified target object.- Parameters:
target- a target objectname- a property name- Returns:
- a property value
-
setPropertyValue
Set a property value to the specified target object.- Parameters:
target- a target objectname- a property namevalue- a property value
-