Spring Data Commons

org.springframework.data.repository.core
Interface NamedQueries

All Known Implementing Classes:
PropertiesBasedNamedQueries

public interface NamedQueries

Abstraction of a map of NamedQueries that can be looked up by their names.

Author:
Oliver Gierke

Method Summary
 java.lang.String getQuery(java.lang.String queryName)
          Returns the named query with the given name or null if none exists.
 boolean hasQuery(java.lang.String queryName)
          Returns whether the map contains a named query for the given name.
 

Method Detail

hasQuery

boolean hasQuery(java.lang.String queryName)
Returns whether the map contains a named query for the given name. If this method returns true you can expect getQuery(String) to return a non-null query for the very same name.

Parameters:
queryName -
Returns:

getQuery

java.lang.String getQuery(java.lang.String queryName)
Returns the named query with the given name or null if none exists.

Parameters:
queryName -
Returns:

Spring Data Commons

Copyright © 2012. All Rights Reserved.