Class AbstractQueryResource
java.lang.Object
org.eclipse.persistence.jpa.rs.resources.common.AbstractResource
org.eclipse.persistence.jpa.rs.resources.common.AbstractQueryResource
- Direct Known Subclasses:
QueryResource
Base class for 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 TypeMethodDescriptionprotected Response
buildQueryOptionsResponse
(String version, String persistenceUnit, String queryName, HttpHeaders httpHeaders, UriInfo uriInfo) protected Response
namedQueryInternal
(String version, String persistenceUnit, String queryName, HttpHeaders headers, UriInfo uriInfo) Executes given named query.protected Response
namedQueryUpdateInternal
(String version, String persistenceUnit, String queryName, HttpHeaders headers, UriInfo uriInfo) Named query update internal.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
-
AbstractQueryResource
public AbstractQueryResource()
-
-
Method Details
-
namedQueryUpdateInternal
protected Response namedQueryUpdateInternal(String version, String persistenceUnit, String queryName, HttpHeaders headers, UriInfo uriInfo) Named query update internal.- Parameters:
version
- the versionpersistenceUnit
- the persistence unitqueryName
- the nameheaders
- the http headersuriInfo
- the uri info- Returns:
- the response
-
namedQueryInternal
protected Response namedQueryInternal(String version, String persistenceUnit, String queryName, HttpHeaders headers, UriInfo uriInfo) Executes given named query.- Parameters:
version
- the versionpersistenceUnit
- the persistence unitqueryName
- named query to executeheaders
- the http headersuriInfo
- the uri info- Returns:
- the response
-
buildQueryOptionsResponse
-