Class QueryResource


  • @Produces({"application/json","application/xml"})
    @Consumes({"application/json","application/xml"})
    @Path("/{version : v\\d\\.\\d|latest}/{context}/query/")
    public class QueryResource
    extends AbstractQueryResource
    Query resource.
    Author:
    gonural
    • Constructor Detail

      • QueryResource

        public QueryResource()
    • Method Detail

      • namedQueryUpdate

        @POST
        @Path("{name}")
        public javax.ws.rs.core.Response namedQueryUpdate​(@PathParam("version")
                                                          java.lang.String version,
                                                          @PathParam("context")
                                                          java.lang.String persistenceUnit,
                                                          @PathParam("name")
                                                          java.lang.String name,
                                                          @Context
                                                          javax.ws.rs.core.HttpHeaders hh,
                                                          @Context
                                                          javax.ws.rs.core.UriInfo ui)
      • namedQuery

        @GET
        @Path("{name}")
        public javax.ws.rs.core.Response namedQuery​(@PathParam("version")
                                                    java.lang.String version,
                                                    @PathParam("context")
                                                    java.lang.String persistenceUnit,
                                                    @PathParam("name")
                                                    java.lang.String name,
                                                    @Context
                                                    javax.ws.rs.core.HttpHeaders hh,
                                                    @Context
                                                    javax.ws.rs.core.UriInfo ui)
      • getQueryOptions

        @OPTIONS
        @Path("{name}")
        public javax.ws.rs.core.Response getQueryOptions​(@PathParam("version")
                                                         java.lang.String version,
                                                         @PathParam("context")
                                                         java.lang.String persistenceUnit,
                                                         @PathParam("name")
                                                         java.lang.String queryName,
                                                         @Context
                                                         javax.ws.rs.core.HttpHeaders httpHeaders,
                                                         @Context
                                                         javax.ws.rs.core.UriInfo uriInfo)