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.unversioned.EntityResource
@Deprecated
@Produces({"application/json","application/xml"})
@Consumes({"application/json","application/xml"})
@Path("/{context}/entity/")
public class EntityResource
extends AbstractEntityResource
Deprecated.
-
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 persistenceUnit, String type, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo uriInfo, InputStream in) Deprecated.jakarta.ws.rs.core.Response
delete
(String persistenceUnit, String type, String id, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo ui) Deprecated.jakarta.ws.rs.core.Response
find
(String persistenceUnit, String type, String id, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo ui) Deprecated.jakarta.ws.rs.core.Response
findAttribute
(String persistenceUnit, String type, String id, String attribute, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo ui) Deprecated.jakarta.ws.rs.core.Response
removeAttribute
(String persistenceUnit, String type, String id, String attribute, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo ui) Deprecated.jakarta.ws.rs.core.Response
setOrAddAttribute
(String persistenceUnit, String type, String id, String attribute, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo ui, InputStream in) Deprecated.jakarta.ws.rs.core.Response
update
(String persistenceUnit, String type, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo uriInfo, InputStream in) Deprecated.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()Deprecated.
-
-
Method Details
-
findAttribute
@GET @Path("{type}/{id}/{attribute}") public jakarta.ws.rs.core.Response findAttribute(@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) Deprecated. -
find
@GET @Path("{type}/{id}") public jakarta.ws.rs.core.Response find(@PathParam("context") String persistenceUnit, @PathParam("type") String type, @PathParam("id") String id, @Context jakarta.ws.rs.core.HttpHeaders hh, @Context jakarta.ws.rs.core.UriInfo ui) Deprecated. -
create
@PUT @Path("{type}") public jakarta.ws.rs.core.Response create(@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 Deprecated.- Throws:
Exception
-
update
@POST @Path("{type}") public jakarta.ws.rs.core.Response update(@PathParam("context") String persistenceUnit, @PathParam("type") String type, @Context jakarta.ws.rs.core.HttpHeaders hh, @Context jakarta.ws.rs.core.UriInfo uriInfo, InputStream in) Deprecated. -
setOrAddAttribute
@POST @Path("{type}/{id}/{attribute}") public jakarta.ws.rs.core.Response setOrAddAttribute(@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) Deprecated. -
removeAttribute
@DELETE @Path("{type}/{id}/{attribute}") public jakarta.ws.rs.core.Response removeAttribute(@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) Deprecated. -
delete
@DELETE @Path("{type}/{id}") public jakarta.ws.rs.core.Response delete(@PathParam("context") String persistenceUnit, @PathParam("type") String type, @PathParam("id") String id, @Context jakarta.ws.rs.core.HttpHeaders hh, @Context jakarta.ws.rs.core.UriInfo ui) Deprecated.
-
EntityResource
instead.