Class PString<R>

Type Parameters:
R - the root query bean type
All Implemented Interfaces:
io.ebean.Query.Property<String>

public final class PString<R> extends PBaseComparable<R,String>
String property.
  • Constructor Details

    • PString

      public PString(String name, R root)
      Construct with a property name and root instance.
      Parameters:
      name - property name
      root - the root query bean instance
    • PString

      public PString(String name, R root, String prefix)
      Construct with additional path prefix.
  • Method Details

    • ieq

      public R ieq(String value)
      Case insensitive is equal to.
      Parameters:
      value - the equal to bind value
      Returns:
      the root query bean instance
    • iequalTo

      public R iequalTo(String value)
      Case insensitive is equal to.
      Parameters:
      value - the equal to bind value
      Returns:
      the root query bean instance
    • like

      public R like(String value)
      Like - include '%' and '_' placeholders as necessary.
      Parameters:
      value - the equal to bind value
      Returns:
      the root query bean instance
    • startsWith

      public R startsWith(String value)
      Starts with - uses a like with '%' wildcard added to the end.
      Parameters:
      value - the equal to bind value
      Returns:
      the root query bean instance
    • endsWith

      public R endsWith(String value)
      Ends with - uses a like with '%' wildcard added to the beginning.
      Parameters:
      value - the equal to bind value
      Returns:
      the root query bean instance
    • contains

      public R contains(String value)
      Contains - uses a like with '%' wildcard added to the beginning and end.
      Parameters:
      value - the equal to bind value
      Returns:
      the root query bean instance
    • ilike

      public R ilike(String value)
      Case insensitive like.
      Parameters:
      value - the equal to bind value
      Returns:
      the root query bean instance
    • istartsWith

      public R istartsWith(String value)
      Case insensitive starts with.
      Parameters:
      value - the equal to bind value
      Returns:
      the root query bean instance
    • iendsWith

      public R iendsWith(String value)
      Case insensitive ends with.
      Parameters:
      value - the equal to bind value
      Returns:
      the root query bean instance
    • icontains

      public R icontains(String value)
      Case insensitive contains.
      Parameters:
      value - the equal to bind value
      Returns:
      the root query bean instance
    • match

      public R match(String value)
      Add a full text "Match" expression.

      This means the query will automatically execute against the document store (ElasticSearch).

      Parameters:
      value - the match expression