T - Property value typepublic interface PathProperty<T> extends Property<T>, PathExpression<T>, QueryProjection<T>
Property bound to a Path, using Path.getName() as property name.
This property can be used as QueryExpression and QueryProjection, and provides useful methods to
create query clauses such as filters, sorts and aggregations.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
PathProperty.Builder<T,B extends PathProperty.Builder<T,B>>
Base interface for
PathProperty building. |
static interface |
PathProperty.PathPropertyBuilder<T>
PathProperty builder. |
Property.PropertyAccessException, Property.PropertyNotFoundException, Property.PropertyReadException, Property.PropertyReadOnlyException, Property.PropertyWriteExceptionLocalizable.LocalizableBuilder, Localizable.LocalizationExceptionPath.FinalPath<T>, Path.PathBuilder<T>Expression.ExpressionResolverFunction<E extends Expression,R extends Expression>, Expression.InvalidExpressionExceptionPATH_HIERARCHY_SEPARATOR| Modifier and Type | Method and Description |
|---|---|
default QuerySort |
asc()
Build a
QuerySort.SortDirection.ASCENDING sort using this property. |
default FunctionExpression.PathFunctionExpressionProperty<T,Double> |
avg()
Build an aggregation
FunctionExpression on this property using the QueryFunction.Avg function, which returns
the average value of the property. |
default QueryFilter |
between(T from,
T to)
Build a
QueryFilter.FilterOperator.BETWEEN filter using this property as expression, which checks if property value
is between given from and to values. |
PathProperty.PathPropertyBuilder<T> |
clone()
Clone this property.
|
default QueryFilter |
contains(String value)
Build a contains query filter, checking if the property value contains given value, in a case-sentive
fashion.
|
default QueryFilter |
contains(String value,
boolean ignoreCase)
Build a contains query filter, checking if the property value contains given value.
|
default QueryFilter |
containsIgnoreCase(String value)
Build a contains query filter, checking if the property value contains given value, ignoring case.
|
default FunctionExpression.PathFunctionExpressionProperty<T,Long> |
count()
Build an aggregation
FunctionExpression on this property using the QueryFunction.Count function, which returns
the count of the values of the property. |
static <T> PathProperty.PathPropertyBuilder<T> |
create(Path<T> path)
|
static <T> PathProperty.PathPropertyBuilder<T> |
create(String name,
Class<? extends T> type)
|
default QuerySort |
desc()
Build a
QuerySort.SortDirection.DESCENDING sort using this property. |
default QueryFilter |
endsWith(String value)
Build a ends with query filter, checking if the property value ends with given value, in a case-sentive
fashion.
|
default QueryFilter |
endsWith(String value,
boolean ignoreCase)
Build a ends with query filter, checking if the property value ends with given value.
|
default QueryFilter |
endsWithIgnoreCase(String value)
Build a ends with query filter, checking if the property value ends with given value, ignoring case.
|
default QueryFilter |
eq(QueryExpression<? super T> expression)
Build a
QueryFilter.FilterOperator.EQUAL filter using this property as expression, which checks if property value is
equal to given expression value. |
default QueryFilter |
eq(T value)
Build a
QueryFilter.FilterOperator.EQUAL filter using this property as expression, which checks if property value is
equal to given constant value. |
default QueryFilter |
goe(QueryExpression<? super T> expression)
Build a
QueryFilter.FilterOperator.GREATER_OR_EQUAL filter using this property as expression, which checks if
property value is greater than or equal to given expression value. |
default QueryFilter |
goe(T value)
Build a
QueryFilter.FilterOperator.GREATER_OR_EQUAL filter using this property as expression, which checks if
property value is greater than or equal to given constant value. |
default QueryFilter |
gt(QueryExpression<? super T> expression)
Build a
QueryFilter.FilterOperator.GREATER_THAN filter using this property as expression, which checks if property
value is greater than given expression value. |
default QueryFilter |
gt(T value)
Build a
QueryFilter.FilterOperator.GREATER_THAN filter using this property as expression, which checks if property
value is greater than given constant value. |
default QueryFilter |
in(Collection<T> values)
Build a
QueryFilter.FilterOperator.IN filter using this property as expression, which checks if property value is
included in given constant values. |
default QueryFilter |
in(QueryExpression<? super T> expression)
Build a
QueryFilter.FilterOperator.IN filter using this property as expression, which checks if property value is
included in given expression values. |
default QueryFilter |
in(T... values)
Build a
QueryFilter.FilterOperator.IN filter using this property as expression, which checks if property value is
included in given constant values. |
default QueryFilter |
isNotNull()
Build a
QueryFilter.FilterOperator.NOT_NULL filter using this property as expression, which checks if property value
is not null. |
default QueryFilter |
isNull()
Build a
QueryFilter.FilterOperator.NULL filter using this property as expression, which checks if property value is
null. |
default boolean |
isReadOnly()
Gets whether property is read-only, i.e. does not support value setting.
|
default QueryFilter |
loe(QueryExpression<? super T> expression)
Build a
QueryFilter.FilterOperator.LESS_OR_EQUAL filter using this property as expression, which checks if property
value is less than or equal to given expression value. |
default QueryFilter |
loe(T value)
Build a
QueryFilter.FilterOperator.LESS_OR_EQUAL filter using this property as expression, which checks if property
value is less than or equal to given constant value. |
default QueryFilter |
lt(QueryExpression<? super T> expression)
Build a
QueryFilter.FilterOperator.LESS_THAN filter using this property as expression, which checks if property value
is less than given expression value. |
default QueryFilter |
lt(T value)
Build a
QueryFilter.FilterOperator.LESS_THAN filter using this property as expression, which checks if property value
is less than given constant value. |
default FunctionExpression.PathFunctionExpressionProperty<T,T> |
max()
Build an aggregation
FunctionExpression on this property using the QueryFunction.Max function, which returns
the largest value of the property. |
default FunctionExpression.PathFunctionExpressionProperty<T,T> |
min()
Build an aggregation
FunctionExpression on this property using the QueryFunction.Min function, which returns
the smallest value of the property. |
default QueryFilter |
neq(QueryExpression<? super T> expression)
Build a
QueryFilter.FilterOperator.NOT_EQUAL filter using this property as expression, which checks if property value
is not equal to given expression value. |
default QueryFilter |
neq(T value)
Build a
QueryFilter.FilterOperator.NOT_EQUAL filter using this property as expression, which checks if property value
is not equal to given constant value. |
default QueryFilter |
nin(Collection<T> values)
Build a
QueryFilter.FilterOperator.NOT_IN filter using this property as expression, which checks if property value is
not included in given constant values. |
default QueryFilter |
nin(QueryExpression<? super T> expression)
Build a
QueryFilter.FilterOperator.NOT_IN filter using this property as expression, which checks if property value is
not included in given expression values. |
default QueryFilter |
nin(T... values)
Build a
QueryFilter.FilterOperator.NOT_IN filter using this property as expression, which checks if property value is
not included in given constant values. |
default QueryFilter |
startsWith(String value)
Build a starts with query filter, checking if the property value starts with given value, in a
case-sentive fashion.
|
default QueryFilter |
startsWith(String value,
boolean ignoreCase)
Build a starts with query filter, checking if the property value starts with given value.
|
default QueryFilter |
startsWithIgnoreCase(String value)
Build a starts with query filter, checking if the property value starts with given value, ignoring case.
|
default FunctionExpression.PathFunctionExpressionProperty<T,T> |
sum()
Build an aggregation
FunctionExpression on this property using the QueryFunction.Sum function, which returns
the sum of the property values. |
getConfiguration, getConvertedValue, getConverter, getType, present, render, renderIfAvailablegetValidators, validatebuilder, getMessage, getMessageArguments, getMessageCodefromfullName, getName, getParent, getType, isRootPath, of, relativeName, streamgetTypevalidategetTypedefault boolean isReadOnly()
Property
When a property is read-only, a Property.PropertyReadOnlyException should be thrown by property value setting
methods.
isReadOnly in interface Property<T>true if property is read-onlyPathProperty.PathPropertyBuilder<T> clone()
PathProperty.PathPropertyBuilder using property name, type and configuration cloned from this propertystatic <T> PathProperty.PathPropertyBuilder<T> create(String name, Class<? extends T> type)
create in interface PathExpression<T>T - Property (path) typename - Property name (not null)type - Property value type (not null)PathProperty builderstatic <T> PathProperty.PathPropertyBuilder<T> create(Path<T> path)
T - Property (path) typepath - Path from which to obtain the property path name and type (not null)PathProperty builderdefault QueryFilter isNull()
QueryFilter.FilterOperator.NULL filter using this property as expression, which checks if property value is
null.default QueryFilter isNotNull()
QueryFilter.FilterOperator.NOT_NULL filter using this property as expression, which checks if property value
is not null.default QueryFilter eq(T value)
QueryFilter.FilterOperator.EQUAL filter using this property as expression, which checks if property value is
equal to given constant value.value - Filter value (not null)default QueryFilter eq(QueryExpression<? super T> expression)
QueryFilter.FilterOperator.EQUAL filter using this property as expression, which checks if property value is
equal to given expression value.expression - Right operand expression (not null)default QueryFilter neq(T value)
QueryFilter.FilterOperator.NOT_EQUAL filter using this property as expression, which checks if property value
is not equal to given constant value.value - Filter value (not null)default QueryFilter neq(QueryExpression<? super T> expression)
QueryFilter.FilterOperator.NOT_EQUAL filter using this property as expression, which checks if property value
is not equal to given expression value.expression - Right operand expression (not null)default QueryFilter lt(T value)
QueryFilter.FilterOperator.LESS_THAN filter using this property as expression, which checks if property value
is less than given constant value.value - Filter value (not null)default QueryFilter lt(QueryExpression<? super T> expression)
QueryFilter.FilterOperator.LESS_THAN filter using this property as expression, which checks if property value
is less than given expression value.expression - Right operand expression (not null)default QueryFilter loe(T value)
QueryFilter.FilterOperator.LESS_OR_EQUAL filter using this property as expression, which checks if property
value is less than or equal to given constant value.value - Filter value (not null)default QueryFilter loe(QueryExpression<? super T> expression)
QueryFilter.FilterOperator.LESS_OR_EQUAL filter using this property as expression, which checks if property
value is less than or equal to given expression value.expression - Right operand expression (not null)default QueryFilter gt(T value)
QueryFilter.FilterOperator.GREATER_THAN filter using this property as expression, which checks if property
value is greater than given constant value.value - Filter value (not null)default QueryFilter gt(QueryExpression<? super T> expression)
QueryFilter.FilterOperator.GREATER_THAN filter using this property as expression, which checks if property
value is greater than given expression value.expression - Right operand expression (not null)default QueryFilter goe(T value)
QueryFilter.FilterOperator.GREATER_OR_EQUAL filter using this property as expression, which checks if
property value is greater than or equal to given constant value.value - Filter value (not null)default QueryFilter goe(QueryExpression<? super T> expression)
QueryFilter.FilterOperator.GREATER_OR_EQUAL filter using this property as expression, which checks if
property value is greater than or equal to given expression value.expression - Right operand expression (not null)default QueryFilter in(T... values)
QueryFilter.FilterOperator.IN filter using this property as expression, which checks if property value is
included in given constant values.values - Filter values (not null)default QueryFilter in(Collection<T> values)
QueryFilter.FilterOperator.IN filter using this property as expression, which checks if property value is
included in given constant values.values - Filter values (not null)default QueryFilter in(QueryExpression<? super T> expression)
QueryFilter.FilterOperator.IN filter using this property as expression, which checks if property value is
included in given expression values.expression - Right operand expression (not null)default QueryFilter nin(T... values)
QueryFilter.FilterOperator.NOT_IN filter using this property as expression, which checks if property value is
not included in given constant values.values - Filter values (not null)default QueryFilter nin(Collection<T> values)
QueryFilter.FilterOperator.NOT_IN filter using this property as expression, which checks if property value is
not included in given constant values.values - Filter values (not null)default QueryFilter nin(QueryExpression<? super T> expression)
QueryFilter.FilterOperator.NOT_IN filter using this property as expression, which checks if property value is
not included in given expression values.expression - Right operand expression (not null)default QueryFilter between(T from, T to)
QueryFilter.FilterOperator.BETWEEN filter using this property as expression, which checks if property value
is between given from and to values.from - From value (not null)to - To value (not null)default QueryFilter contains(String value, boolean ignoreCase)
Only applicable for String value type properties.
value - Value which must be contained in expression valueignoreCase - Whether to ignore caseUnsupportedOperationException - If the property is not a String typedefault QueryFilter startsWith(String value, boolean ignoreCase)
Only applicable for String value type properties.
value - Value with which the expression value must start withignoreCase - Whether to ignore caseUnsupportedOperationException - If the property is not a String typedefault QueryFilter endsWith(String value, boolean ignoreCase)
Only applicable for String value type properties.
value - Value with which the expression value must end withignoreCase - Whether to ignore caseUnsupportedOperationException - If the property is not a String typedefault QueryFilter contains(String value)
Only applicable for String value type properties.
value - Value which must be contained in expression valueUnsupportedOperationException - If the property is not a String typedefault QueryFilter containsIgnoreCase(String value)
Only applicable for String value type properties.
value - Value which must be contained in expression valueUnsupportedOperationException - If the property is not a String typedefault QueryFilter startsWith(String value)
Only applicable for String value type properties.
value - Value with which the expression value must start withUnsupportedOperationException - If the property is not a String typedefault QueryFilter startsWithIgnoreCase(String value)
Only applicable for String value type properties.
value - Value with which the expression value must start withUnsupportedOperationException - If the property is not a String typedefault QueryFilter endsWith(String value)
Only applicable for String value type properties.
value - Value with which the expression value must end withUnsupportedOperationException - If the property is not a String typedefault QueryFilter endsWithIgnoreCase(String value)
Only applicable for String value type properties.
value - Value with which the expression value must end withUnsupportedOperationException - If the property is not a String typedefault QuerySort asc()
QuerySort.SortDirection.ASCENDING sort using this property.QuerySortdefault QuerySort desc()
QuerySort.SortDirection.DESCENDING sort using this property.QuerySortdefault FunctionExpression.PathFunctionExpressionProperty<T,Long> count()
FunctionExpression on this property using the QueryFunction.Count function, which returns
the count of the values of the property.QueryFunction.Count expression on this property, expressed as a Property to allow inclusion in
PropertySet and PropertyBox structures.default FunctionExpression.PathFunctionExpressionProperty<T,T> min()
FunctionExpression on this property using the QueryFunction.Min function, which returns
the smallest value of the property.QueryFunction.Min expression on this property, expressed as a Property to allow inclusion in
PropertySet and PropertyBox structures.default FunctionExpression.PathFunctionExpressionProperty<T,T> max()
FunctionExpression on this property using the QueryFunction.Max function, which returns
the largest value of the property.QueryFunction.Max expression on this property, expressed as a Property to allow inclusion in
PropertySet and PropertyBox structures.default FunctionExpression.PathFunctionExpressionProperty<T,Double> avg()
FunctionExpression on this property using the QueryFunction.Avg function, which returns
the average value of the property.QueryFunction.Avg expression on this property, expressed as a Property to allow inclusion in
PropertySet and PropertyBox structures.default FunctionExpression.PathFunctionExpressionProperty<T,T> sum()
FunctionExpression on this property using the QueryFunction.Sum function, which returns
the sum of the property values.QueryFunction.Sum expression on this property, expressed as a Property to allow inclusion in
PropertySet and PropertyBox structures.Copyright © 2017 The Holon Platform. All rights reserved.