public class AdvancedCriteriaToMVELTranslator extends Object
Constructor and Description |
---|
AdvancedCriteriaToMVELTranslator() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildExpression(com.smartgwt.client.data.Criteria criteria,
StringBuffer sb,
String entityKey,
com.smartgwt.client.types.OperatorId operator,
com.smartgwt.client.data.DataSource dataSource) |
protected void |
buildExpression(StringBuffer sb,
String entityKey,
String field,
Object[] value,
SupportedFieldType type,
SupportedFieldType secondaryType,
String operator,
boolean includeParenthesis,
boolean isFieldComparison,
boolean ignoreCase,
boolean isNegation,
boolean ignoreQuotes) |
protected void |
buildMVEL(com.smartgwt.client.data.Criteria criteria,
StringBuffer sb,
String entityKey,
com.smartgwt.client.data.DataSource dataSource,
com.smartgwt.client.types.OperatorId groupOperator) |
String |
createMVEL(String entityKey,
com.smartgwt.client.data.AdvancedCriteria criteria,
com.smartgwt.client.data.DataSource dataSource) |
protected Object[] |
extractBasicValues(Object value) |
protected Object[] |
extractDate(com.smartgwt.client.data.Criteria criteria,
com.smartgwt.client.types.OperatorId operator,
Map values,
String key) |
protected String |
formatField(String entityKey,
SupportedFieldType type,
String field,
boolean ignoreCase,
boolean isNegation) |
protected String |
formatValue(String fieldName,
String entityKey,
SupportedFieldType type,
SupportedFieldType secondaryType,
Object[] value,
boolean isFieldComparison,
boolean ignoreCase,
boolean ignoreQuotes) |
boolean |
isProjection(Object value) |
protected Date |
parseRelativeDate(Map<String,String> dateItems) |
public String createMVEL(String entityKey, com.smartgwt.client.data.AdvancedCriteria criteria, com.smartgwt.client.data.DataSource dataSource) throws IncompatibleMVELTranslationException
protected void buildMVEL(com.smartgwt.client.data.Criteria criteria, StringBuffer sb, String entityKey, com.smartgwt.client.data.DataSource dataSource, com.smartgwt.client.types.OperatorId groupOperator) throws IncompatibleMVELTranslationException
protected void buildExpression(com.smartgwt.client.data.Criteria criteria, StringBuffer sb, String entityKey, com.smartgwt.client.types.OperatorId operator, com.smartgwt.client.data.DataSource dataSource) throws IncompatibleMVELTranslationException
protected Object[] extractDate(com.smartgwt.client.data.Criteria criteria, com.smartgwt.client.types.OperatorId operator, Map values, String key)
public boolean isProjection(Object value)
protected void buildExpression(StringBuffer sb, String entityKey, String field, Object[] value, SupportedFieldType type, SupportedFieldType secondaryType, String operator, boolean includeParenthesis, boolean isFieldComparison, boolean ignoreCase, boolean isNegation, boolean ignoreQuotes) throws IncompatibleMVELTranslationException
protected String formatField(String entityKey, SupportedFieldType type, String field, boolean ignoreCase, boolean isNegation)
protected String formatValue(String fieldName, String entityKey, SupportedFieldType type, SupportedFieldType secondaryType, Object[] value, boolean isFieldComparison, boolean ignoreCase, boolean ignoreQuotes) throws IncompatibleMVELTranslationException
Copyright © 2013. All rights reserved.