Module spring.data.keyvalue
Interface CriteriaAccessor<T>
- Type Parameters:
T-
public interface CriteriaAccessor<T>
Resolves the criteria object from given
KeyValueQuery.- Author:
- Christoph Strobl, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionresolve(KeyValueQuery<?> query) Checks and readsKeyValueQuery.getCriteria()of givenKeyValueQuery.
-
Method Details
-
resolve
Checks and readsKeyValueQuery.getCriteria()of givenKeyValueQuery. Might also apply additional transformation to match the desired type.- Parameters:
query- must not be null.- Returns:
- the criteria extracted from the query. Can be null.
- Throws:
IllegalArgumentException- in case the criteria is not valid for usage with specificCriteriaAccessor.
-