com.espertech.esper.util
Class LikeUtil

java.lang.Object
  extended by com.espertech.esper.util.LikeUtil

public class LikeUtil
extends Object

Utility for performing a SQL Like comparsion.


Constructor Summary
LikeUtil(String pattern, Character escape, boolean ignorecase)
          Ctor.
 
Method Summary
 Boolean compare(String compareString)
          Execute the string.
 void resetPattern(String pattern)
          Resets the search pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LikeUtil

public LikeUtil(String pattern,
                Character escape,
                boolean ignorecase)
Ctor.

Parameters:
pattern - is the SQL-like pattern to
escape - is the escape character
ignorecase - is true to ignore the case, or false if not
Method Detail

compare

public Boolean compare(String compareString)
Execute the string.

Parameters:
compareString - is the string to compare
Returns:
true if pattern matches, or false if not

resetPattern

public void resetPattern(String pattern)
Resets the search pattern.

Parameters:
pattern - is the new pattern to match against

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com