Class AbstractSingleResultQueryResource
java.lang.Object
org.eclipse.persistence.jpa.rs.resources.common.AbstractResource
org.eclipse.persistence.jpa.rs.resources.common.AbstractSingleResultQueryResource
- Direct Known Subclasses:
SingleResultQueryResource
Base class for all single result query resources.
-
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
namedQuerySingleResultInternal
(String version, String persistenceUnit, String queryName, HttpHeaders headers, UriInfo uriInfo) Named query single result.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
-
AbstractSingleResultQueryResource
public AbstractSingleResultQueryResource()
-
-
Method Details
-
namedQuerySingleResultInternal
protected Response namedQuerySingleResultInternal(String version, String persistenceUnit, String queryName, HttpHeaders headers, UriInfo uriInfo) Named query single result.- Parameters:
version
- the versionpersistenceUnit
- the persistence unitqueryName
- the query nameheaders
- the http headersuriInfo
- the uriInfo- Returns:
- the response
-