public class PropertiesBasedNamedQueries extends Object implements NamedQueries
NamedQueries implementation backed by a Properties instance.| Modifier and Type | Field and Description |
|---|---|
static NamedQueries |
EMPTY |
| Constructor and Description |
|---|
PropertiesBasedNamedQueries(Properties properties)
Creates a new
PropertiesBasedNamedQueries for the given Properties instance. |
| Modifier and Type | Method and Description |
|---|---|
String |
getQuery(String queryName)
Returns the named query with the given name or null if none exists.
|
boolean |
hasQuery(String queryName)
Returns whether the map contains a named query for the given name.
|
public static final NamedQueries EMPTY
public PropertiesBasedNamedQueries(Properties properties)
PropertiesBasedNamedQueries for the given Properties instance.properties - public boolean hasQuery(String queryName)
NamedQueriesNamedQueries.getQuery(String) to return a non-null query for the very same name.hasQuery in interface NamedQueriespublic String getQuery(String queryName)
NamedQueriesgetQuery in interface NamedQueriesCopyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.