Interface FieldManagerModifier
- 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 TypeMethodDescriptionbooleanDetermines whether this modifier is able handle writing or reading thisField.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
Determines whether this modifier is able handle writing or reading thisField.- Parameters:
field- the Field that is being handledvalue- the value that is being set or readem- 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 modifiedvalue- the bean or object with the fieldnewValue- the new value for the fieldem- theEntityManager- 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 modifiedvalue- the value of the fieldem- theEntityManager- Returns:
- Throws:
IllegalAccessException- See Also:
-