Interface PropertyAccessor

All Known Implementing Classes:
PropertyAccessor.BuiltIn

public interface PropertyAccessor
The interface for accessing a property.
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
  • Method Details

    • getPropertyNames

      Set<String> getPropertyNames(Class<?> type)
      Get property names of specified type.
      Parameters:
      type - a target type
      Returns:
      property names
    • getPropertyType

      Class<?> getPropertyType(Class<?> type, String name)
      Get a property type of specified property.
      Parameters:
      type - a target type
      name - a property name
      Returns:
      a property type
    • getPropertyValue

      Object getPropertyValue(Object target, String name)
      Get a property value from specified target object.
      Parameters:
      target - a target object
      name - a property name
      Returns:
      a property value
    • setPropertyValue

      void setPropertyValue(Object target, String name, Object value)
      Set a property value to the specified target object.
      Parameters:
      target - a target object
      name - a property name
      value - a property value