java.lang.Object
org.litebridge.orm.meta.QueryField
org.litebridge.orm.meta.StringQueryField
- All Implemented Interfaces:
ExpressionSpec
Metamodel field for querying string-based columns in a type-safe manner.
This class extends QueryField to provide additional behavior specifically for
string column operations within a query context.
Instances of this class allow performing operations such as converting the value of a string field to uppercase or lowercase.
-
Field Summary
Fields inherited from class org.litebridge.orm.meta.QueryField
dtoClass, field, pendingExpressionSpec -
Constructor Summary
ConstructorsConstructorDescriptionStringQueryField(Class<?> dtoClass, String fieldName) Creates a newStringQueryFieldinstance for the specified DTO class and field name. -
Method Summary
Methods inherited from class org.litebridge.orm.meta.QueryField
as, as, convert, toString
-
Constructor Details
-
StringQueryField
Creates a newStringQueryFieldinstance for the specified DTO class and field name.- Parameters:
dtoClass- the DTO classfieldName- the field name
-
-
Method Details
-
upper
UPPER(): Returns the uppercase value of a column's text.- Returns:
- a
ProtoNestableTOExprexpression instance to select a specific column.
-
lower
LOWER(): Returns the lowercase value of a column's text.- Returns:
- a
ProtoNestableTOExprexpression instance to select a specific column.
-