Class PropertiesBasedNamedQueries
java.lang.Object
org.springframework.data.repository.core.support.PropertiesBasedNamedQueries
- All Implemented Interfaces:
NamedQueries
NamedQueries
implementation backed by a Properties
instance.- Author:
- Oliver Gierke
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
EMPTY
-
-
Constructor Details
-
PropertiesBasedNamedQueries
-
-
Method Details
-
hasQuery
Description copied from interface:NamedQueries
Returns whether the map contains a named query for the given name. If this method returns true you can expectNamedQueries.getQuery(String)
to return a non-null query for the very same name.- Specified by:
hasQuery
in interfaceNamedQueries
- Parameters:
queryName
- must not be null or empty.- Returns:
-
getQuery
Description copied from interface:NamedQueries
Returns the named query with the given name.- Specified by:
getQuery
in interfaceNamedQueries
- Parameters:
queryName
- must not be null or empty.- Returns:
-