All Superinterfaces:
org.springframework.core.Ordered
All Known Implementing Classes:
OracleRequiredFieldManagerModifier

public interface FieldManagerModifier extends org.springframework.core.Ordered
This interface is responsible for modifying the behavior of FieldManager.setFieldValue(Object, String, Object) and FieldManager.getFieldValue(Object, String).
Author:
Nick Crum ncrum
See Also:
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHandle(Field field, Object value, jakarta.persistence.EntityManager em)
    Determines whether this modifier is able handle writing or reading this Field.
    getModifiedReadValue(Field field, Object value, jakarta.persistence.EntityManager em)
    Returns a modified read value for the field.
    getModifiedWriteValue(Field field, Object value, Object newValue, jakarta.persistence.EntityManager em)
    Returns a modified write value for the field.

    Methods inherited from interface org.springframework.core.Ordered

    getOrder
  • Method Details

    • canHandle

      boolean canHandle(Field field, Object value, jakarta.persistence.EntityManager em)
      Determines whether this modifier is able handle writing or reading this Field.
      Parameters:
      field - the Field that is being handled
      value - the value that is being set or read
      em - the EntityManager
      Returns:
      whether this field can be handled
    • getModifiedWriteValue

      Object getModifiedWriteValue(Field field, Object value, Object newValue, jakarta.persistence.EntityManager em) throws IllegalAccessException
      Returns a modified write value for the field.
      Parameters:
      field - the field being modified
      value - the bean or object with the field
      newValue - the new value for the field
      em - the EntityManager
      Returns:
      the modified write value
      Throws:
      IllegalAccessException
      See Also:
    • getModifiedReadValue

      Object getModifiedReadValue(Field field, Object value, jakarta.persistence.EntityManager em) throws IllegalAccessException
      Returns a modified read value for the field.
      Parameters:
      field - the field being modified
      value - the value of the field
      em - the EntityManager
      Returns:
      Throws:
      IllegalAccessException
      See Also: