Class EntityResource
java.lang.Object
org.eclipse.persistence.jpa.rs.resources.common.AbstractResource
org.eclipse.persistence.jpa.rs.resources.common.AbstractEntityResource
org.eclipse.persistence.jpa.rs.resources.EntityResource
@Produces({"application/json","application/xml"})
@Consumes({"application/json","application/xml"})
@Path("/{version : v\\d\\.\\d|latest}/{context}/entity/")
public class EntityResource
extends AbstractEntityResource
Entity 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
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
create
(String version, String persistenceUnit, String type, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo uriInfo, InputStream in) jakarta.ws.rs.core.Response
delete
(String version, String persistenceUnit, String type, String id, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo ui) jakarta.ws.rs.core.Response
find
(String version, String persistenceUnit, String type, String id, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo ui) jakarta.ws.rs.core.Response
findAttribute
(String version, String persistenceUnit, String type, String id, String attribute, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo ui) jakarta.ws.rs.core.Response
getEntityOptions
(String version, String persistenceUnit, String entityName, jakarta.ws.rs.core.HttpHeaders httpHeaders, jakarta.ws.rs.core.UriInfo uriInfo) jakarta.ws.rs.core.Response
removeAttribute
(String version, String persistenceUnit, String type, String id, String attribute, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo ui) jakarta.ws.rs.core.Response
setOrAddAttribute
(String version, String persistenceUnit, String type, String id, String attribute, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo ui, InputStream in) jakarta.ws.rs.core.Response
update
(String version, String persistenceUnit, String type, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo uriInfo, InputStream in) Methods inherited from class org.eclipse.persistence.jpa.rs.resources.common.AbstractEntityResource
buildEntityOptionsResponse, createInternal, deleteInternal, findAttributeInternal, findInternal, removeAttributeInternal, setOrAddAttributeInternal, updateInternal
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
-
EntityResource
public EntityResource()
-
-
Method Details
-
findAttribute
@GET @Path("{type}/{id}/{attribute}") public jakarta.ws.rs.core.Response findAttribute(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @PathParam("type") String type, @PathParam("id") String id, @PathParam("attribute") String attribute, @Context jakarta.ws.rs.core.HttpHeaders hh, @Context jakarta.ws.rs.core.UriInfo ui) -
find
-
create
@PUT @Path("{type}") public jakarta.ws.rs.core.Response create(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @PathParam("type") String type, @Context jakarta.ws.rs.core.HttpHeaders hh, @Context jakarta.ws.rs.core.UriInfo uriInfo, InputStream in) throws Exception - Throws:
Exception
-
update
@POST @Path("{type}") public jakarta.ws.rs.core.Response update(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @PathParam("type") String type, @Context jakarta.ws.rs.core.HttpHeaders hh, @Context jakarta.ws.rs.core.UriInfo uriInfo, InputStream in) -
setOrAddAttribute
@POST @Path("{type}/{id}/{attribute}") public jakarta.ws.rs.core.Response setOrAddAttribute(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @PathParam("type") String type, @PathParam("id") String id, @PathParam("attribute") String attribute, @Context jakarta.ws.rs.core.HttpHeaders hh, @Context jakarta.ws.rs.core.UriInfo ui, InputStream in) -
removeAttribute
@DELETE @Path("{type}/{id}/{attribute}") public jakarta.ws.rs.core.Response removeAttribute(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @PathParam("type") String type, @PathParam("id") String id, @PathParam("attribute") String attribute, @Context jakarta.ws.rs.core.HttpHeaders hh, @Context jakarta.ws.rs.core.UriInfo ui) -
delete
-
getEntityOptions
@OPTIONS @Path("{entityName}") public jakarta.ws.rs.core.Response getEntityOptions(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @PathParam("entityName") String entityName, @Context jakarta.ws.rs.core.HttpHeaders httpHeaders, @Context jakarta.ws.rs.core.UriInfo uriInfo)
-