Class Predicate.ILikePredicate

java.lang.Object
com.loomcache.server.query.Predicate.ILikePredicate
All Implemented Interfaces:
Predicate
Enclosing interface:
Predicate

public static final class Predicate.ILikePredicate extends Object implements Predicate
Predicate that tests case-insensitive LIKE pattern matching with SQL wildcards.
  • Constructor Details

    • ILikePredicate

      public ILikePredicate(String fieldName, String sqlPattern)
  • Method Details

    • fieldName

      public String fieldName()
    • pattern

      public String pattern()
    • matches

      public boolean matches(SqlRow row)
      Description copied from interface: Predicate
      Tests whether the given row matches this predicate.
      Specified by:
      matches in interface Predicate
      Parameters:
      row - the row to test
      Returns:
      true if the row matches, false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object