net.sf.farrago.type.runtime
Class RuntimeTypeUtil
java.lang.Object
net.sf.farrago.type.runtime.RuntimeTypeUtil
public class RuntimeTypeUtil
- extends Object
Runtime Utility Subroutines.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/type/runtime/RuntimeTypeUtil.java#13 $
- Author:
- Xiaoyang Luo
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
javaRegexSpecials
private static final String javaRegexSpecials
- See Also:
- Constant Field Values
SqlSimilarSpecials
private static final String SqlSimilarSpecials
- See Also:
- Constant Field Values
regCharClasses
private static final String[] regCharClasses
RuntimeTypeUtil
protected RuntimeTypeUtil()
SqlToRegexLike
public static String SqlToRegexLike(String sqlPattern,
CharSequence escapeStr)
- Translates the like pattern to java's regex pattern.
similarEscapeRuleChecking
private static void similarEscapeRuleChecking(String sqlPattern,
char escapeChar)
sqlSimilarRewrite
private static String sqlSimilarRewrite(String sqlPattern,
char escapeChar)
sqlSimilarRewriteCharEnumeration
public static int sqlSimilarRewriteCharEnumeration(String sqlPattern,
StringBuffer javaPattern,
int pos,
char escapeChar)
SqlToRegexSimilar
public static String SqlToRegexSimilar(String sqlPattern,
CharSequence escapeStr)