Class QueryResource

java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.client.impl.query.QueryResource
All Implemented Interfaces:
RestResource

@Path("/client/query/{model}") public class QueryResource extends AbstractRestResource
  • Constructor Details

  • Method Details

    • validateQuery

      @POST @Path("/validation") @Consumes("application/json") @Produces("application/json") public ch.tocco.nice2.rest.client.impl.query.QueryResource.QueryValidation validateQuery(@PathParam("model") String model, ch.tocco.nice2.rest.client.impl.query.QueryResource.ConditionParameter parameter)
      PersistenceService.compileQuery(String) and PersistenceService.CompiledQuery.findPrimaryKeys() simply throw an exception when it fails, and the resulting query doesn't actually interest us, only if it succeeds
    • buildQuery

      @POST @Path("/build") @Consumes("application/json") @Produces("application/json") public ch.tocco.nice2.rest.client.impl.query.QueryResource.JoinedQuery buildQuery(@PathParam("model") String model, ch.tocco.nice2.rest.client.impl.query.QueryResource.QueryParameter parameter)