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.- Author:
- gonural
-
-
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
Constructors Constructor Description QueryResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
getQueryOptions(java.lang.String version, java.lang.String persistenceUnit, java.lang.String queryName, javax.ws.rs.core.HttpHeaders httpHeaders, javax.ws.rs.core.UriInfo uriInfo)
javax.ws.rs.core.Response
namedQuery(java.lang.String version, java.lang.String persistenceUnit, java.lang.String name, javax.ws.rs.core.HttpHeaders hh, javax.ws.rs.core.UriInfo ui)
javax.ws.rs.core.Response
namedQueryUpdate(java.lang.String version, java.lang.String persistenceUnit, java.lang.String name, javax.ws.rs.core.HttpHeaders hh, javax.ws.rs.core.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
-
-
-
-
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)
-
-