Class PersistenceUnitResource
java.lang.Object
org.eclipse.persistence.jpa.rs.resources.common.AbstractResource
org.eclipse.persistence.jpa.rs.resources.common.AbstractPersistenceUnitResource
org.eclipse.persistence.jpa.rs.resources.PersistenceUnitResource
@Produces({"application/json","application/xml"})
@Consumes({"application/json","application/xml"})
@Path("/{version : v\\d\\.\\d|latest}/{context}/metadata/")
public class PersistenceUnitResource
extends AbstractPersistenceUnitResource
Metadata catalog resource in JPARS version less than 2.0.
-
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 TypeMethodDescriptiongetDescriptorMetadata
(String version, String persistenceUnit, String descriptorAlias, HttpHeaders hh, UriInfo uriInfo) getQueriesMetadata
(String version, String persistenceUnit, HttpHeaders hh, UriInfo uriInfo) getQueryMetadata
(String version, String persistenceUnit, String queryName, HttpHeaders hh, UriInfo uriInfo) getTypes
(String version, String persistenceUnit, HttpHeaders hh, UriInfo uriInfo) Methods inherited from class org.eclipse.persistence.jpa.rs.resources.common.AbstractPersistenceUnitResource
getDescriptorMetadataInternal, getQueriesMetadataInternal, getQueryMetadataInternal, getTypesInternal
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
-
PersistenceUnitResource
public PersistenceUnitResource()
-
-
Method Details
-
getDescriptorMetadata
@GET @Path("entity/{descriptorAlias}") public Response getDescriptorMetadata(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @PathParam("descriptorAlias") String descriptorAlias, @Context HttpHeaders hh, @Context UriInfo uriInfo) -
getTypes
@GET public Response getTypes(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @Context HttpHeaders hh, @Context UriInfo uriInfo) -
getQueriesMetadata
@GET @Path("query") public Response getQueriesMetadata(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @Context HttpHeaders hh, @Context UriInfo uriInfo) -
getQueryMetadata
@GET @Path("query/{queryName}") public Response getQueryMetadata(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @PathParam("queryName") String queryName, @Context HttpHeaders hh, @Context UriInfo uriInfo)
-