Class PBaseString<R,​T>

  • Type Parameters:
    R - the root query bean type
    Direct Known Subclasses:
    PClass, PLocale, PUri, PUrl

    public abstract class PBaseString<R,​T>
    extends PBaseCompareable<R,​String>
    Base for property types that store as String Varchar types.
    • Method Detail

      • equalToType

        public final R equalToType​(T value)
        Is equal to. The same as eq but uses the strong type as argument rather than String.
        Parameters:
        value - the equal to bind value
        Returns:
        the root query bean instance
      • notEqualToType

        public final R notEqualToType​(T value)
        Is not equal to. The same as ne but uses the strong type as argument rather than String.
        Parameters:
        value - the equal to bind value
        Returns:
        the root query bean instance
      • 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