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
-
@Produces({"application/json","application/xml"}) @Consumes({"application/json","application/xml"}) @Path("/{context}/entity/") public class EntityResource extends AbstractEntityResource
Deprecated.UseEntityResource
instead.
-
-
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 EntityResource()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description javax.ws.rs.core.Response
create(java.lang.String persistenceUnit, java.lang.String type, javax.ws.rs.core.HttpHeaders hh, javax.ws.rs.core.UriInfo uriInfo, java.io.InputStream in)
Deprecated.javax.ws.rs.core.Response
delete(java.lang.String persistenceUnit, java.lang.String type, java.lang.String id, javax.ws.rs.core.HttpHeaders hh, javax.ws.rs.core.UriInfo ui)
Deprecated.javax.ws.rs.core.Response
find(java.lang.String persistenceUnit, java.lang.String type, java.lang.String id, javax.ws.rs.core.HttpHeaders hh, javax.ws.rs.core.UriInfo ui)
Deprecated.javax.ws.rs.core.Response
findAttribute(java.lang.String persistenceUnit, java.lang.String type, java.lang.String id, java.lang.String attribute, javax.ws.rs.core.HttpHeaders hh, javax.ws.rs.core.UriInfo ui)
Deprecated.javax.ws.rs.core.Response
removeAttribute(java.lang.String persistenceUnit, java.lang.String type, java.lang.String id, java.lang.String attribute, javax.ws.rs.core.HttpHeaders hh, javax.ws.rs.core.UriInfo ui)
Deprecated.javax.ws.rs.core.Response
setOrAddAttribute(java.lang.String persistenceUnit, java.lang.String type, java.lang.String id, java.lang.String attribute, javax.ws.rs.core.HttpHeaders hh, javax.ws.rs.core.UriInfo ui, java.io.InputStream in)
Deprecated.javax.ws.rs.core.Response
update(java.lang.String persistenceUnit, java.lang.String type, javax.ws.rs.core.HttpHeaders hh, javax.ws.rs.core.UriInfo uriInfo, java.io.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
-
-
-
-
Method Detail
-
findAttribute
@GET @Path("{type}/{id}/{attribute}") public javax.ws.rs.core.Response findAttribute(@PathParam("context") java.lang.String persistenceUnit, @PathParam("type") java.lang.String type, @PathParam("id") java.lang.String id, @PathParam("attribute") java.lang.String attribute, @Context javax.ws.rs.core.HttpHeaders hh, @Context javax.ws.rs.core.UriInfo ui)
Deprecated.
-
find
@GET @Path("{type}/{id}") public javax.ws.rs.core.Response find(@PathParam("context") java.lang.String persistenceUnit, @PathParam("type") java.lang.String type, @PathParam("id") java.lang.String id, @Context javax.ws.rs.core.HttpHeaders hh, @Context javax.ws.rs.core.UriInfo ui)
Deprecated.
-
create
@PUT @Path("{type}") public javax.ws.rs.core.Response create(@PathParam("context") java.lang.String persistenceUnit, @PathParam("type") java.lang.String type, @Context javax.ws.rs.core.HttpHeaders hh, @Context javax.ws.rs.core.UriInfo uriInfo, java.io.InputStream in) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
update
@POST @Path("{type}") public javax.ws.rs.core.Response update(@PathParam("context") java.lang.String persistenceUnit, @PathParam("type") java.lang.String type, @Context javax.ws.rs.core.HttpHeaders hh, @Context javax.ws.rs.core.UriInfo uriInfo, java.io.InputStream in)
Deprecated.
-
setOrAddAttribute
@POST @Path("{type}/{id}/{attribute}") public javax.ws.rs.core.Response setOrAddAttribute(@PathParam("context") java.lang.String persistenceUnit, @PathParam("type") java.lang.String type, @PathParam("id") java.lang.String id, @PathParam("attribute") java.lang.String attribute, @Context javax.ws.rs.core.HttpHeaders hh, @Context javax.ws.rs.core.UriInfo ui, java.io.InputStream in)
Deprecated.
-
removeAttribute
@DELETE @Path("{type}/{id}/{attribute}") public javax.ws.rs.core.Response removeAttribute(@PathParam("context") java.lang.String persistenceUnit, @PathParam("type") java.lang.String type, @PathParam("id") java.lang.String id, @PathParam("attribute") java.lang.String attribute, @Context javax.ws.rs.core.HttpHeaders hh, @Context javax.ws.rs.core.UriInfo ui)
Deprecated.
-
delete
@DELETE @Path("{type}/{id}") public javax.ws.rs.core.Response delete(@PathParam("context") java.lang.String persistenceUnit, @PathParam("type") java.lang.String type, @PathParam("id") java.lang.String id, @Context javax.ws.rs.core.HttpHeaders hh, @Context javax.ws.rs.core.UriInfo ui)
Deprecated.
-
-