Class QueryResource
java.lang.Object
org.eclipse.persistence.jpa.rs.resources.common.AbstractResource
org.eclipse.persistence.jpa.rs.resources.common.AbstractQueryResource
org.eclipse.persistence.jpa.rs.resources.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.
-
Field Summary
Fields inherited from class org.eclipse.persistence.jpa.rs.resources.common.AbstractResource
APPLICATION_SCHEMA_JSON, APPLICATION_SCHEMA_JSON_TYPE, factory, SERVICE_VERSION_FORMAT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetQueryOptions
(String version, String persistenceUnit, String queryName, HttpHeaders httpHeaders, UriInfo uriInfo) namedQuery
(String version, String persistenceUnit, String name, HttpHeaders hh, UriInfo ui) namedQueryUpdate
(String version, String persistenceUnit, String name, HttpHeaders hh, UriInfo ui) Methods inherited from class org.eclipse.persistence.jpa.rs.resources.common.AbstractQueryResource
buildQueryOptionsResponse, namedQueryInternal, namedQueryUpdateInternal
Methods inherited from class org.eclipse.persistence.jpa.rs.resources.common.AbstractResource
buildPersistenceContextFactory, getMatrixParameters, getPersistenceContext, getPersistenceFactory, getPersistenceFactory, getQueryParameters, getRelationshipPartner, isValidVersion, marshallMetadata, setPersistenceFactory, setRequestUniqueId
-
Constructor Details
-
QueryResource
public QueryResource()
-
-
Method Details
-
namedQueryUpdate
@POST @Path("{name}") public Response namedQueryUpdate(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @PathParam("name") String name, @Context HttpHeaders hh, @Context UriInfo ui) -
namedQuery
@GET @Path("{name}") public Response namedQuery(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @PathParam("name") String name, @Context HttpHeaders hh, @Context UriInfo ui) -
getQueryOptions
@OPTIONS @Path("{name}") public Response getQueryOptions(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @PathParam("name") String queryName, @Context HttpHeaders httpHeaders, @Context UriInfo uriInfo)
-