Package com.basiscomponents.db
Class ExpressionMatcher
- java.lang.Object
 - 
- com.basiscomponents.db.ExpressionMatcher
 
 
- 
public class ExpressionMatcher extends Object
 
- 
- 
Constructor Summary
Constructors Constructor Description ExpressionMatcher(String condition, int type, String fieldName) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgenerateJavaScriptExpression(String expression, int type)static StringgeneratePreparedWhereClause(String fieldName, String condition)static DataRowgetPreparedWhereClauseValues(String condition, int fieldType)booleanmatch(String value)booleanmatch(Comparator<DataRow> comp, DataRow dr, String fieldName) 
 - 
 
- 
- 
Method Detail
- 
match
public boolean match(String value)
 
- 
match
public boolean match(Comparator<DataRow> comp, DataRow dr, String fieldName) throws Exception
- Throws:
 Exception
 
- 
generateJavaScriptExpression
public static String generateJavaScriptExpression(String expression, int type) throws ParseException
- Throws:
 ParseException
 
- 
generatePreparedWhereClause
public static String generatePreparedWhereClause(String fieldName, String condition)
 
- 
getPreparedWhereClauseValues
public static DataRow getPreparedWhereClauseValues(String condition, int fieldType) throws ParseException
- Throws:
 ParseException
 
 - 
 
 -