|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.repository.core.support.PropertiesBasedNamedQueries
public class PropertiesBasedNamedQueries
NamedQueries
implementation backed by a Properties
instance.
Field Summary | |
---|---|
static NamedQueries |
EMPTY
|
Constructor Summary | |
---|---|
PropertiesBasedNamedQueries(java.util.Properties properties)
Creates a new PropertiesBasedNamedQueries for the given Properties instance. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final NamedQueries EMPTY
Constructor Detail |
---|
public PropertiesBasedNamedQueries(java.util.Properties properties)
PropertiesBasedNamedQueries
for the given Properties
instance.
properties
- Method Detail |
---|
public boolean hasQuery(java.lang.String queryName)
NamedQueries
NamedQueries.getQuery(String)
to return a non-null query for the very same name.
hasQuery
in interface NamedQueries
public java.lang.String getQuery(java.lang.String queryName)
NamedQueries
getQuery
in interface NamedQueries
|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |