java.lang.Object
org.litebridge.orm.meta.QueryField
org.litebridge.orm.meta.NumericQueryField
- All Implemented Interfaces:
ExpressionSpec
Metamodel field for querying numeric-based columns in a type-safe manner.
This class extends the capabilities of QueryField
by providing methods for common numeric operations, such as retrieving average, maximum,
or minimum values.
-
Field Summary
Fields inherited from class org.litebridge.orm.meta.QueryField
dtoClass, field -
Constructor Summary
ConstructorsConstructorDescriptionNumericQueryField(Class<?> dtoClass, String fieldName) Creates a newNumericQueryFieldinstance. -
Method Summary
Methods inherited from class org.litebridge.orm.meta.QueryField
convert, toString
-
Constructor Details
-
NumericQueryField
Creates a newNumericQueryFieldinstance.- Parameters:
dtoClass- DTO class the field belongs to.fieldName- Target field name.
-
-
Method Details
-
avg
AVG(): Returns the average value of a column/field.- Returns:
- a
ProtoNestableTOExprexpression instance to select the average value of a column/field.
-
max
MAX(): Returns the highest or largest value within a specified field.- Returns:
- a
ProtoNestableTOExprexpression instance to select the maximum value of a field.
-
min
MIN(): Returns the lowest or smallest value within a specified column or expression- Returns:
- a
ProtoNestableTOExprexpression instance to select the maximum value of a column/field.
-