public class BeanField extends Object
public BeanField(Field field, boolean required)
field - - A java.lang.reflect.Field object.required - - true if the field is required to contain a value, false if it is allowed to be null or blank String.public boolean isRequired()
public <T> void setFieldValue(T bean,
String value)
throws IllegalAccessException
T - - Type of the bean.bean - - Object containing the field to be set.value - - String containing the value to set the field to.IllegalAccessException - - Thrown on reflection error.Copyright © 2018 Liquibase.org. All rights reserved.