public interface ODataJPAResponseBuilder
| Modifier and Type | Method and Description |
|---|---|
ODataResponse |
build(DeleteUriInfo deleteUriInfo,
Object deletedObject)
The method builds an OData response for an OData Delete Request from a deleted JPA Entity
|
ODataResponse |
build(GetEntityLinkUriInfo readLinkUriInfo,
Object jpaEntity,
String contentType)
The method builds an OData response for an OData Read Link Request from a read JPA Entity and its related JPA
Entities.
|
ODataResponse |
build(GetEntitySetLinksUriInfo queryLinkUriInfo,
List<Object> jpaEntity,
String contentType)
The method builds an OData response for an OData Query Link Request from a queried JPA Entity and its related JPA
Entities.
|
ODataResponse |
build(GetEntitySetUriInfo queryUriInfo,
List<Object> jpaEntities,
String contentType)
The method builds an OData response for an OData Query Request from a queried list of JPA Entities.
|
ODataResponse |
build(GetEntityUriInfo readUriInfo,
Object jpaEntity,
String contentType)
The method builds an OData response for an OData Read Request from a read JPA Entity
|
ODataResponse |
build(GetFunctionImportUriInfo functionImportUriInfo,
List<Object> resultList,
String contentType)
The method builds an OData response for an OData function Import Request from a registered processor method's
return parameter.
|
ODataResponse |
build(GetFunctionImportUriInfo functionImportUriInfo,
Object result)
The method builds an OData response for an OData function Import Request from a registered processor method's
return parameter.
|
ODataResponse |
build(long jpaEntityCount)
The method builds an OData response from a count representing total number of JPA Entities
|
ODataResponse |
build(PostUriInfo postUriInfo,
Object createdObject,
String contentType)
The method builds an OData response for an OData Create Request from a created JPA entity.
|
ODataResponse |
build(PutMergePatchUriInfo putUriInfo,
Object updatedObject)
The method builds an OData response for an OData Update Request from an updated JPA Entity
|
ODataResponse build(GetEntitySetUriInfo queryUriInfo, List<Object> jpaEntities, String contentType) throws ODataJPARuntimeException
queryUriInfo - is an information about the request URIjpaEntities - is an empty or non empty list of queried instances of JPA EntitiescontentType - of the responseODataResponseODataJPARuntimeExceptionODataResponse build(GetEntityUriInfo readUriInfo, Object jpaEntity, String contentType) throws ODataJPARuntimeException, ODataNotFoundException
readUriInfo - is an information about the request URIjpaEntity - is a null or non null instances of read JPA EntitycontentType - of the responseODataResponseODataJPARuntimeExceptionODataNotFoundExceptionODataResponse build(PostUriInfo postUriInfo, Object createdObject, String contentType) throws ODataJPARuntimeException, ODataNotFoundException
postUriInfo - is an information about the request URIcreatedObject - is a null or non null instances of JPA EntitycontentType - of the responseODataResponseODataJPARuntimeExceptionODataNotFoundExceptionODataResponse build(PutMergePatchUriInfo putUriInfo, Object updatedObject) throws ODataJPARuntimeException, ODataNotFoundException
putUriInfo - is an information about the request URIupdatedObject - is an updated instance of JPA EntityODataResponseODataJPARuntimeExceptionODataNotFoundExceptionODataResponse build(DeleteUriInfo deleteUriInfo, Object deletedObject) throws ODataJPARuntimeException, ODataNotFoundException
deleteUriInfo - is an information about the request URIdeletedObject - is an null or non null instance of deleted JPA Entity. Null implies Entity not found.ODataResponseODataJPARuntimeExceptionODataNotFoundExceptionODataResponse build(GetFunctionImportUriInfo functionImportUriInfo, Object result) throws ODataJPARuntimeException
functionImportUriInfo - is an information about the request URIresult - is a method's return parameterODataResponseODataJPARuntimeExceptionODataResponse build(GetFunctionImportUriInfo functionImportUriInfo, List<Object> resultList, String contentType) throws ODataJPARuntimeException, ODataNotFoundException
functionImportUriInfo - is an information about the request URIresult - is a method's return parameter is a collection of objects.ODataResponseODataJPARuntimeExceptionODataNotFoundExceptionODataResponse build(GetEntityLinkUriInfo readLinkUriInfo, Object jpaEntity, String contentType) throws ODataNotFoundException, ODataJPARuntimeException
readLinkUriInfo - is an information about the request URIjpaEntity - is a null or non null read JPA Entity and its related JPA Entities.contentType - of the responseODataResponseODataNotFoundExceptionODataJPARuntimeExceptionODataResponse build(GetEntitySetLinksUriInfo queryLinkUriInfo, List<Object> jpaEntity, String contentType) throws ODataJPARuntimeException
queryLinkUriInfo - is an information about the request URIjpaEntity - is an empty or non empty list of queried JPA EntitiescontentType - of the responseODataResponseODataJPARuntimeExceptionODataResponse build(long jpaEntityCount) throws ODataJPARuntimeException
jpaEntityCount - is the count valueODataResponseODataJPARuntimeExceptionCopyright © 2013-2023 The Apache Software Foundation. All Rights Reserved.