Uses of Class
com.peterphi.std.guice.restclient.jaxb.webquery.WebQuery
Package
Description
-
Uses of WebQuery in com.peterphi.std.guice.database.dao
Modifier and TypeMethodDescriptionlong
Return the total number of results for a given query (ignoring offset/limit values)
The value returned is the same as thetotal
field returned by settingquery.computeSize(true)
Execute a query, returning entitiesDao.find
(WebQuery constraints, JPASearchStrategy strategy) Execute a query, using the named strategy (defaults to AUTO if null)<RT> ConstrainedResultSet<RT>
Dao.find
(WebQuery constraints, JPASearchStrategy strategy, Function<?, RT> serialiser) Execute a query, using the named strategy (defaults to AUTO if null) and optionally serialising the resulting rows using the provided serialiserDao.findByUriQuery
(WebQuery constraints) Execute a Dynamic query using the specified constraints, returning the result as a ConstrainedResultSet of this entity typeExecute a query, using the ID strategyDao.findIdsByUriQuery
(WebQuery query) Given a query, return the IDs of the matching entities, returning the result as a ConstrainedResultSet of this entity's id type -
Uses of WebQuery in com.peterphi.std.guice.hibernate.dao
Modifier and TypeMethodDescriptionlong
HibernateDao.find
(WebQuery query, JPASearchStrategy strategy) <RT> ConstrainedResultSet<RT>
HibernateDao.find
(WebQuery query, JPASearchStrategy strategy, Function<?, RT> serialiser) HibernateDao.findByUriQuery
(WebQuery query) HibernateDao.findIdsByUriQuery
(WebQuery query) Get a list of IDs matching a WebQueryprotected T
HibernateDao.uniqueResult
(WebQuery query) -
Uses of WebQuery in com.peterphi.std.guice.hibernate.webquery
Modifier and TypeMethodDescriptionResultSetConstraintBuilder.buildQuery()
Deprecated.Construct a WebQueryDefinition from this, applying the web query semanticsConstrainedResultSet.getQuery()
ResultSetConstraint.toQuery()
Deprecated.Convert this query to aWebQuery
using the legacy web query semantics -
Uses of WebQuery in com.peterphi.std.guice.hibernate.webquery.impl.jpa
Modifier and TypeMethodDescription<T> ConstrainedResultSet<T>
JPASearchExecutor.find
(QEntity entity, WebQuery query, JPASearchStrategy strategy, Function<?, ?> serialiser) Execute a search, returning a ConstrainedResultSet populated with the desired data (ID or Entity) with each piece of data optionally serialised using the supplied serialiservoid
void
JPAQueryBuilder.forWebQuery
(WebQuery query) -
Uses of WebQuery in com.peterphi.std.guice.restclient.jaxb.webquery
Modifier and TypeMethodDescriptionWebQuery.add
(WQConstraintLine line) WebQuery.computeSize
(boolean computeSize) Overwrite any fields in this WebQuery using the query defined in the provided mapWebQuery.decode
(javax.ws.rs.core.UriInfo qs) Overwrite any fields in this WebQuery using the query defined in the Query String of the provided UriInfoWebQuery.decode
(javax.ws.rs.core.UriInfo qs, WebQueryDecodePlugin parserPlugin) WebQuery.limit
(int limit) WebQuery.logPerformance
(boolean enabled) WebQuery.logSQL
(boolean enabled) WebQuery.offset
(int offset) static WebQuery
static WebQuery
-
Uses of WebQuery in com.peterphi.std.guice.restclient.jaxb.webquery.plugin
Modifier and TypeMethodDescriptionvoid
Called to request that the plugin add the appropriate constraints toquery
void
void
Modifier and TypeMethodDescriptionWebQueryPresetPlugin.withOption
(String value, Consumer<WebQuery> handler)