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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responsecreate(String persistenceUnit, String type, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo uriInfo, InputStream in) Deprecated.jakarta.ws.rs.core.Responsedelete(String persistenceUnit, String type, String id, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo ui) Deprecated.jakarta.ws.rs.core.Responsefind(String persistenceUnit, String type, String id, jakarta.ws.rs.core.HttpHeaders hh, jakarta.ws.rs.core.UriInfo ui) Deprecated.jakarta.ws.rs.core.ResponsefindAttribute(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.ResponseremoveAttribute(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.ResponsesetOrAddAttribute(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.Responseupdate(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, updateInternalMethods 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.
-
EntityResourceinstead.