Class QueryProperty

java.lang.Object
org.apache.juneau.commons.beanquery.QueryProperty

public final class QueryProperty extends Object
One bean property as BeanQuery sees it: its column name, value type and inferred SearchType, and how to read and write it.

Instances come from QueryModel. The name is the Juneau bean property name, after @BeanProp and the configured PropertyNamer, so it is the name serializers emit. Reads use the getter (or record accessor), else the field. Writes use the setter, else a non-final field.

Example:

QueryProperty age = QueryModel.of(Person.class).getReadableProperty("age"); SearchType type = age.getSearchType(); // NUMERIC Object value = age.read(person);

Since:
10.0.0