@Override public FilterFieldExpression filterByAttribute(final String key) { return new AttributeExpressionImpl(key); }
@Override public ExistsFieldExpression existsByAttribute(final String key) { return new AttributeExpressionImpl(key); }
@Override public SortFieldExpression sortByAttribute(final String key) { return new AttributeExpressionImpl(requireNonNull(key)); }
/** * internal factory method for fields where the filter and the sortOptions field expression is the same. * * @throws IllegalArgumentException if the property can not be mapped. Because of this, call this method last in the * workflow. */ private FieldExpression common(final String propertyName) throws IllegalArgumentException { if (FieldExpressionUtil.isAttributeFieldName(propertyName)) { return new AttributeExpressionImpl(FieldExpressionUtil.stripAttributesPrefix(propertyName)); } final String fieldName = simpleFieldMappings.get(propertyName); if (fieldName != null) { return new SimpleFieldExpressionImpl(fieldName); } throw new IllegalArgumentException("Unknown property name: " + propertyName); }