@Component(value="cuba_RestQueriesConfiguration")
public class RestQueriesConfiguration
extends java.lang.Object
cuba.rest.queriesConfig
application property.
Queries with the name defined by the ALL_ENTITIES_QUERY_NAME
field should not be present in the queries
config. If the query with this name is requested, the RestQueriesConfiguration.QueryInfo
for the query that returns all entities will
be returned.
Modifier and Type | Class and Description |
---|---|
static class |
RestQueriesConfiguration.QueryInfo
Class stores an information about the predefined JPQL query
|
static class |
RestQueriesConfiguration.QueryParamInfo
Class stores an information about the predefined JPQL query parameter
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALL_ENTITIES_QUERY_NAME |
Constructor and Description |
---|
RestQueriesConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.util.List<RestQueriesConfiguration.QueryInfo> |
getQueries() |
java.util.List<RestQueriesConfiguration.QueryInfo> |
getQueries(java.lang.String entityName) |
RestQueriesConfiguration.QueryInfo |
getQuery(java.lang.String entityName,
java.lang.String queryName)
Returns a query description with the given name for the given entity.
|
public static final java.lang.String ALL_ENTITIES_QUERY_NAME
@Nullable public RestQueriesConfiguration.QueryInfo getQuery(java.lang.String entityName, java.lang.String queryName)
entityName
- entity namequeryName
- query namepublic java.util.List<RestQueriesConfiguration.QueryInfo> getQueries()
public java.util.List<RestQueriesConfiguration.QueryInfo> getQueries(java.lang.String entityName)