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
,SingleResultQueryResource
public abstract class AbstractSingleResultQueryResource extends AbstractResource
Base class for all single result query resources.- 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 AbstractSingleResultQueryResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.ws.rs.core.Response
namedQuerySingleResultInternal(java.lang.String version, java.lang.String persistenceUnit, java.lang.String queryName, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.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
-
-
-
-
Method Detail
-
namedQuerySingleResultInternal
protected javax.ws.rs.core.Response namedQuerySingleResultInternal(java.lang.String version, java.lang.String persistenceUnit, java.lang.String queryName, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo)
Named query single result.- Parameters:
version
- the versionpersistenceUnit
- the persistence unitqueryName
- the query nameheaders
- the http headersuriInfo
- the uriInfo- Returns:
- the response
-
-