public class DataDTOToMVELTranslator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COLLECTION_OPERATOR |
static String |
CONTAINS_OPERATOR |
static String |
ENDS_WITH_OPERATOR |
static String |
EQUALS_OPERATOR |
static String |
GREATER_THAN_EQUALS_OPERATOR |
static String |
GREATER_THAN_OPERATOR |
static String |
LESS_THAN_EQUALS_OPERATOR |
static String |
LESS_THAN_OPERATOR |
static String |
NOT_EQUALS_OPERATOR |
static String |
OLD_CONTAINS_OPERATOR |
static String |
OLD_ENDS_WITH_OPERATOR |
static String |
OLD_STARTS_WITH_OPERATOR |
static String |
SIZE_EQUALS_OPERATOR |
static String |
SIZE_GREATER_THAN_EQUALS_OPERATOR |
static String |
SIZE_GREATER_THAN_OPERATOR |
static String |
SIZE_LESS_THAN_EQUALS_OPERATOR |
static String |
SIZE_LESS_THAN_OPERATOR |
static String |
STARTS_WITH_OPERATOR |
static String |
ZERO_OPERATOR |
Constructor and Description |
---|
DataDTOToMVELTranslator() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildCollectionExpression(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 |
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 String |
escapeInternalMiltyQuotes(String processedValue) |
protected String |
escapeInternalQuotes(String processedValue) |
protected Object[] |
extractBasicValues(Object value) |
protected String |
formatField(String entityKey,
SupportedFieldType type,
String field,
boolean ignoreCase) |
protected String |
formatValue(String fieldName,
String entityKey,
SupportedFieldType type,
SupportedFieldType secondaryType,
Object[] value,
boolean isFieldComparison,
boolean ignoreCase,
boolean ignoreQuotes) |
boolean |
isProjection(Object value) |
public static final String CONTAINS_OPERATOR
public static final String STARTS_WITH_OPERATOR
public static final String ENDS_WITH_OPERATOR
public static final String EQUALS_OPERATOR
public static final String NOT_EQUALS_OPERATOR
public static final String GREATER_THAN_EQUALS_OPERATOR
public static final String LESS_THAN_EQUALS_OPERATOR
public static final String GREATER_THAN_OPERATOR
public static final String LESS_THAN_OPERATOR
public static final String COLLECTION_OPERATOR
public static final String SIZE_GREATER_THAN_OPERATOR
public static final String SIZE_GREATER_THAN_EQUALS_OPERATOR
public static final String SIZE_LESS_THAN_OPERATOR
public static final String SIZE_LESS_THAN_EQUALS_OPERATOR
public static final String SIZE_EQUALS_OPERATOR
public static final String ZERO_OPERATOR
public static final String OLD_CONTAINS_OPERATOR
public static final String OLD_STARTS_WITH_OPERATOR
public static final String OLD_ENDS_WITH_OPERATOR
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
public boolean isProjection(Object value)
protected void buildCollectionExpression(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 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)
protected String formatValue(String fieldName, String entityKey, SupportedFieldType type, SupportedFieldType secondaryType, Object[] value, boolean isFieldComparison, boolean ignoreCase, boolean ignoreQuotes) throws MVELTranslationException
MVELTranslationException
Copyright © 2022. All rights reserved.