public <T> SearchCondition<T> getCondition(Class<T> cls, Map<String, String> beanProperties, Map<String, String> parserProperties) { return getCondition(null, cls, beanProperties, parserProperties); }
public <T> SearchCondition<T> getCondition(String expression, Class<T> cls) { return getCondition(expression, cls, null); }
public <T> SearchCondition<T> getCondition(Class<T> cls) { return getCondition(null, cls); }
public <T> SearchCondition<T> getCondition(Class<T> cls, Map<String, String> beanProperties) { return getCondition(null, cls, beanProperties); }
public <T> SearchCondition<T> getCondition(String expression, Class<T> cls) { return getCondition(expression, cls, null); }
public <T> SearchCondition<T> getCondition(Class<T> cls, Map<String, String> beanProperties, Map<String, String> parserProperties) { return getCondition(null, cls, beanProperties, parserProperties); }
public <T> SearchCondition<T> getCondition(Class<T> cls, Map<String, String> beanProperties, Map<String, String> parserProperties) { return getCondition(null, cls, beanProperties, parserProperties); }
public <T> SearchCondition<T> getCondition(Class<T> cls) { return getCondition(null, cls); }
public <T> SearchCondition<T> getCondition(Class<T> cls, Map<String, String> beanProperties) { return getCondition(null, cls, beanProperties); }
public <T> SearchCondition<T> getCondition(String expression, Class<T> cls) { return getCondition(expression, cls, null); }
public <T> SearchCondition<T> getCondition(Class<T> cls) { return getCondition(null, cls); }
public <T> SearchCondition<T> getCondition(Class<T> cls, Map<String, String> beanProperties) { return getCondition(null, cls, beanProperties); }
public <T> SearchCondition<T> getCondition(String expression, Class<T> cls, Map<String, String> beanProperties, Map<String, String> parserProperties) { if (InjectionUtils.isPrimitive(cls)) { String errorMessage = "Primitive condition types are not supported"; LOG.warning(errorMessage); throw new IllegalArgumentException(errorMessage); } SearchConditionParser<T> parser = getParser(cls, beanProperties, parserProperties); String theExpression = expression == null ? getSearchExpression() : expression; if (theExpression != null) { try { return parser.parse(theExpression); } catch (SearchParseException ex) { if (PropertyUtils.isTrue(message.getContextualProperty(BLOCK_SEARCH_EXCEPTION))) { return null; } throw ex; } } return null; }
public <T> SearchCondition<T> getCondition(String expression, Class<T> cls, Map<String, String> beanProperties, Map<String, String> parserProperties) { if (InjectionUtils.isPrimitive(cls)) { String errorMessage = "Primitive condition types are not supported"; LOG.warning(errorMessage); throw new IllegalArgumentException(errorMessage); } SearchConditionParser<T> parser = getParser(cls, beanProperties, parserProperties); String theExpression = expression == null ? getSearchExpression() : expression; if (theExpression != null) { try { return parser.parse(theExpression); } catch (SearchParseException ex) { Object prop = message.getContextualProperty(BLOCK_SEARCH_EXCEPTION); if (prop != null && !PropertyUtils.isTrue(prop)) { throw ex; } else { return null; } } } else { return null; } }
public <T> SearchCondition<T> getCondition(String expression, Class<T> cls, Map<String, String> beanProperties, Map<String, String> parserProperties) { if (InjectionUtils.isPrimitive(cls)) { String errorMessage = "Primitive condition types are not supported"; LOG.warning(errorMessage); throw new IllegalArgumentException(errorMessage); } SearchConditionParser<T> parser = getParser(cls, beanProperties, parserProperties); String theExpression = expression == null ? getSearchExpression() : expression; if (theExpression != null) { try { return parser.parse(theExpression); } catch (SearchParseException ex) { if (PropertyUtils.isTrue(message.getContextualProperty(BLOCK_SEARCH_EXCEPTION))) { return null; } throw ex; } } return null; }