public class DataDTOToMVELTranslator extends Object
Constructor and Description |
---|
DataDTOToMVELTranslator() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildExpression(ExpressionDTO expressionDTO,
StringBuffer sb,
String entityKey,
BLCOperator operator,
RuleBuilderFieldService fieldService) |
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 String |
buildFieldName(String entityKey,
String fieldName) |
protected void |
buildMVEL(DataDTO dataDTO,
StringBuffer sb,
String entityKey,
String groupOperator,
RuleBuilderFieldService fieldService) |
String |
createMVEL(String entityKey,
DataDTO dataDTO,
RuleBuilderFieldService fieldService) |
protected Object[] |
extractBasicValues(Object value) |
protected Object[] |
extractDate(ExpressionDTO expressionDTO,
BLCOperator operator,
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) |
public String createMVEL(String entityKey, DataDTO dataDTO, RuleBuilderFieldService fieldService) throws MVELTranslationException
MVELTranslationException
protected void buildMVEL(DataDTO dataDTO, StringBuffer sb, String entityKey, String groupOperator, RuleBuilderFieldService fieldService) throws MVELTranslationException
MVELTranslationException
protected void buildExpression(ExpressionDTO expressionDTO, StringBuffer sb, String entityKey, BLCOperator operator, RuleBuilderFieldService fieldService) throws MVELTranslationException
MVELTranslationException
protected Object[] extractDate(ExpressionDTO expressionDTO, BLCOperator operator, 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 MVELTranslationException
MVELTranslationException
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 MVELTranslationException
MVELTranslationException
Copyright © 2014. All rights reserved.