Class StringQueryField

java.lang.Object
org.litebridge.orm.meta.QueryField
org.litebridge.orm.meta.StringQueryField
All Implemented Interfaces:
ExpressionSpec

public final class StringQueryField extends QueryField
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.

  • Constructor Details

    • StringQueryField

      public StringQueryField(Class<?> dtoClass, String fieldName)
      Creates a new StringQueryField instance for the specified DTO class and field name.
      Parameters:
      dtoClass - the DTO class
      fieldName - the field name
  • Method Details

    • upper

      public StringQueryField upper()
      UPPER(): Returns the uppercase value of a column's text.
      Returns:
      a ProtoNestableTOExpr expression instance to select a specific column.
    • lower

      public StringQueryField lower()
      LOWER(): Returns the lowercase value of a column's text.
      Returns:
      a ProtoNestableTOExpr expression instance to select a specific column.