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
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
EMPTY
-
-
Constructor Details
-
PropertiesBasedNamedQueries
-
-
Method Details
-
hasQuery
Description copied from interface:NamedQueriesReturns 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:
hasQueryin interfaceNamedQueries- Parameters:
queryName- must not be null or empty.- Returns:
-
getQuery
Description copied from interface:NamedQueriesReturns the named query with the given name.- Specified by:
getQueryin interfaceNamedQueries- Parameters:
queryName- must not be null or empty.- Returns:
-