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
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
getDescriptorMetadata
(String version, String persistenceUnit, String descriptorAlias, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo uriInfo) jakarta.ws.rs.core.Response
getQueriesMetadata
(String version, String persistenceUnit, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo uriInfo) jakarta.ws.rs.core.Response
getQueryMetadata
(String version, String persistenceUnit, String queryName, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo uriInfo) jakarta.ws.rs.core.Response
getTypes
(String version, String persistenceUnit, jakarta.ws.rs.core.HttpHeaders hh, jakarta.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
-
Constructor Details
-
PersistenceUnitResource
public PersistenceUnitResource()
-
-
Method Details
-
getDescriptorMetadata
@GET @Path("entity/{descriptorAlias}") public jakarta.ws.rs.core.Response getDescriptorMetadata(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @PathParam("descriptorAlias") String descriptorAlias, @Context jakarta.ws.rs.core.HttpHeaders hh, @Context jakarta.ws.rs.core.UriInfo uriInfo) -
getTypes
-
getQueriesMetadata
-
getQueryMetadata
-