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
,QueryResource
public abstract class AbstractQueryResource extends AbstractResource
Base class for 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 AbstractQueryResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.ws.rs.core.Response
buildQueryOptionsResponse(java.lang.String version, java.lang.String persistenceUnit, java.lang.String queryName, javax.ws.rs.core.HttpHeaders httpHeaders, javax.ws.rs.core.UriInfo uriInfo)
protected javax.ws.rs.core.Response
namedQueryInternal(java.lang.String version, java.lang.String persistenceUnit, java.lang.String queryName, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo)
Executes given named query.protected javax.ws.rs.core.Response
namedQueryUpdateInternal(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 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
-
-
-
-
Method Detail
-
namedQueryUpdateInternal
protected javax.ws.rs.core.Response namedQueryUpdateInternal(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 update internal.- Parameters:
version
- the versionpersistenceUnit
- the persistence unitqueryName
- the nameheaders
- the http headersuriInfo
- the uri info- Returns:
- the response
-
namedQueryInternal
protected javax.ws.rs.core.Response namedQueryInternal(java.lang.String version, java.lang.String persistenceUnit, java.lang.String queryName, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.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
protected javax.ws.rs.core.Response buildQueryOptionsResponse(java.lang.String version, java.lang.String persistenceUnit, java.lang.String queryName, javax.ws.rs.core.HttpHeaders httpHeaders, javax.ws.rs.core.UriInfo uriInfo)
-
-