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) |
| Modifier and Type | Method and Description |
|---|---|
String |
getQuery(String queryName)
Returns the named query with the given name.
|
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)
public boolean hasQuery(String queryName)
NamedQueriesNamedQueries.getQuery(String) to return a non-null query for the very same name.hasQuery in interface NamedQueriesqueryName - must not be null or empty.public String getQuery(String queryName)
NamedQueriesgetQuery in interface NamedQueriesqueryName - must not be null or empty.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.