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.- 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 PersistenceUnitResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
getDescriptorMetadata(java.lang.String version, java.lang.String persistenceUnit, java.lang.String descriptorAlias, javax.ws.rs.core.HttpHeaders hh, javax.ws.rs.core.UriInfo uriInfo)
javax.ws.rs.core.Response
getQueriesMetadata(java.lang.String version, java.lang.String persistenceUnit, javax.ws.rs.core.HttpHeaders hh, javax.ws.rs.core.UriInfo uriInfo)
javax.ws.rs.core.Response
getQueryMetadata(java.lang.String version, java.lang.String persistenceUnit, java.lang.String queryName, javax.ws.rs.core.HttpHeaders hh, javax.ws.rs.core.UriInfo uriInfo)
javax.ws.rs.core.Response
getTypes(java.lang.String version, java.lang.String persistenceUnit, javax.ws.rs.core.HttpHeaders hh, javax.ws.rs.core.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
-
-
-
-
Method Detail
-
getDescriptorMetadata
@GET @Path("entity/{descriptorAlias}") public javax.ws.rs.core.Response getDescriptorMetadata(@PathParam("version") java.lang.String version, @PathParam("context") java.lang.String persistenceUnit, @PathParam("descriptorAlias") java.lang.String descriptorAlias, @Context javax.ws.rs.core.HttpHeaders hh, @Context javax.ws.rs.core.UriInfo uriInfo)
-
getTypes
@GET public javax.ws.rs.core.Response getTypes(@PathParam("version") java.lang.String version, @PathParam("context") java.lang.String persistenceUnit, @Context javax.ws.rs.core.HttpHeaders hh, @Context javax.ws.rs.core.UriInfo uriInfo)
-
getQueriesMetadata
@GET @Path("query") public javax.ws.rs.core.Response getQueriesMetadata(@PathParam("version") java.lang.String version, @PathParam("context") java.lang.String persistenceUnit, @Context javax.ws.rs.core.HttpHeaders hh, @Context javax.ws.rs.core.UriInfo uriInfo)
-
getQueryMetadata
@GET @Path("query/{queryName}") public javax.ws.rs.core.Response getQueryMetadata(@PathParam("version") java.lang.String version, @PathParam("context") java.lang.String persistenceUnit, @PathParam("queryName") java.lang.String queryName, @Context javax.ws.rs.core.HttpHeaders hh, @Context javax.ws.rs.core.UriInfo uriInfo)
-
-