Interface LikeWildcardPattern


public interface LikeWildcardPattern
Represents for wildcard pattern that is using in like/not-like comparison, is applied in the REST query.
Since:
1.0.0
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final LikeWildcardPattern
    The default wildcard pattern
    static final char
     
    static final char
     
    static final char
     
    static final LikeWildcardPattern
    The regex wildcard pattern
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    convert(String argument)
    Convert REST query argument to SQL query parameter based on the wildcard pattern
    default char
    Stands for escape character.
    boolean
    Enable using regular expression in like/not-like comparison
    static String
    quote(char r, char escape)
     
    default char
    Stands for any single character.
    default char
    Stands for any sequence of characters (including the empty sequence)
  • Field Details

  • Method Details

    • isRegexEnabled

      boolean isRegexEnabled()
      Enable using regular expression in like/not-like comparison
      Returns:
      true if enabled, otherwise is false
    • zeroOrMore

      default char zeroOrMore()
      Stands for any sequence of characters (including the empty sequence)

      It will be omitted if isRegexEnabled() is true

      Returns:
      the sequence pattern
    • single

      default char single()
      Stands for any single character.

      It will be omitted if isRegexEnabled() is true

      Returns:
      the single pattern
    • escape

      default char escape()
      Stands for escape character.

      It will be omitted if isRegexEnabled() is true

      Returns:
      the escape character
    • convert

      default String convert(String argument)
      Convert REST query argument to SQL query parameter based on the wildcard pattern
      Parameters:
      argument - the REST query argument
      Returns:
      the SQL query parameter
    • quote

      static String quote(char r, char escape)