public abstract class ODataJPADefaultProcessor extends ODataJPAProcessor
jpaProcessor, oDataJPAContext, responseBuilder| Constructor and Description |
|---|
ODataJPADefaultProcessor(ODataJPAContext oDataJPAContext) |
| Modifier and Type | Method and Description |
|---|---|
ODataResponse |
countEntitySet(GetEntitySetCountUriInfo uriParserResultView,
String contentType)
Counts the number of requested entities.
|
ODataResponse |
createEntity(PostUriInfo uriParserResultView,
InputStream content,
String requestContentType,
String contentType)
Creates an entity.
|
ODataResponse |
createEntityLink(PostUriInfo uriParserResultView,
InputStream content,
String requestContentType,
String contentType)
Creates a new link to a target entity of a navigation property.
|
ODataResponse |
deleteEntity(DeleteUriInfo uriParserResultView,
String contentType)
Deletes an entity.
|
ODataResponse |
deleteEntityLink(DeleteUriInfo uriParserResultView,
String contentType)
Deletes the link to the target entity of a navigation property.
|
ODataResponse |
executeBatch(BatchHandler handler,
String contentType,
InputStream content)
Executes a OData batch request and provide Batch Response as
ODataResponse |
BatchResponsePart |
executeChangeSet(BatchHandler handler,
List<ODataRequest> requests)
Executes a Change Set and provide BatchResponsePart as
BatchResponsePart that contains the responses to
change requests. |
ODataResponse |
executeFunctionImport(GetFunctionImportUriInfo uriParserResultView,
String contentType)
Executes a function import and returns the result.
|
ODataResponse |
executeFunctionImportValue(GetFunctionImportUriInfo uriParserResultView,
String contentType)
Returns the unformatted value of a function import.
|
ODataResponse |
existsEntity(GetEntityCountUriInfo uriInfo,
String contentType)
Checks whether an entity exists.
|
ODataResponse |
readEntity(GetEntityUriInfo uriParserResultView,
String contentType)
Reads an entity.
|
ODataResponse |
readEntityLink(GetEntityLinkUriInfo uriParserResultView,
String contentType)
Reads the URI of the target entity of a navigation property.
|
ODataResponse |
readEntityLinks(GetEntitySetLinksUriInfo uriParserResultView,
String contentType)
Reads the URIs of the target entities of a navigation property.
|
ODataResponse |
readEntitySet(GetEntitySetUriInfo uriParserResultView,
String contentType)
Reads entities.
|
ODataResponse |
updateEntity(PutMergePatchUriInfo uriParserResultView,
InputStream content,
String requestContentType,
boolean merge,
String contentType)
Updates an entity.
|
ODataResponse |
updateEntityLink(PutMergePatchUriInfo uriParserResultView,
InputStream content,
String requestContentType,
String contentType)
Updates the link to the target entity of a navigation property.
|
close, close, getOdataJPAContext, setOdataJPAContextcountEntityLinks, deleteEntityMedia, deleteEntitySimplePropertyValue, existsEntityLink, getContext, getCustomContentTypes, readEntityComplexProperty, readEntityMedia, readEntitySimpleProperty, readEntitySimplePropertyValue, readMetadata, readServiceDocument, setContext, updateEntityComplexProperty, updateEntityMedia, updateEntitySimpleProperty, updateEntitySimplePropertyValuepublic ODataJPADefaultProcessor(ODataJPAContext oDataJPAContext)
public ODataResponse readEntitySet(GetEntitySetUriInfo uriParserResultView, String contentType) throws ODataException
EntitySetProcessorreadEntitySet in interface EntitySetProcessorreadEntitySet in class ODataSingleProcessoruriParserResultView - information about the request URIcontentType - the content type of the responseODataResponse objectODataExceptionEntitySetProcessorpublic ODataResponse readEntity(GetEntityUriInfo uriParserResultView, String contentType) throws ODataException
EntityProcessorreadEntity in interface EntityProcessorreadEntity in class ODataSingleProcessorcontentType - the content type of the responseODataResponse objectODataExceptionEntityProcessorpublic ODataResponse countEntitySet(GetEntitySetCountUriInfo uriParserResultView, String contentType) throws ODataException
EntitySetProcessorcountEntitySet in interface EntitySetProcessorcountEntitySet in class ODataSingleProcessoruriParserResultView - information about the request URIcontentType - the content type of the responseODataResponse objectODataExceptionEntitySetProcessorpublic ODataResponse existsEntity(GetEntityCountUriInfo uriInfo, String contentType) throws ODataException
EntityProcessorexistsEntity in interface EntityProcessorexistsEntity in class ODataSingleProcessorcontentType - the content type of the responseODataResponse objectODataExceptionEntityProcessorpublic ODataResponse createEntity(PostUriInfo uriParserResultView, InputStream content, String requestContentType, String contentType) throws ODataException
EntitySetProcessorcreateEntity in interface EntitySetProcessorcreateEntity in class ODataSingleProcessoruriParserResultView - information about the request URIcontent - the content of the request, containing the data of the new entityrequestContentType - the content type of the request bodycontentType - the content type of the responseODataResponse objectODataExceptionEntitySetProcessorpublic ODataResponse updateEntity(PutMergePatchUriInfo uriParserResultView, InputStream content, String requestContentType, boolean merge, String contentType) throws ODataException
EntityProcessorupdateEntity in interface EntityProcessorupdateEntity in class ODataSingleProcessoruriParserResultView - information about the request URIcontent - the content of the request, containing the updated entity datarequestContentType - the content type of the request bodymerge - if true, properties not present in the data are left unchanged;
if false, they are resetcontentType - the content type of the responseODataResponse objectODataExceptionEntityProcessorpublic ODataResponse deleteEntity(DeleteUriInfo uriParserResultView, String contentType) throws ODataException
EntityProcessordeleteEntity in interface EntityProcessordeleteEntity in class ODataSingleProcessoruriParserResultView - a DeleteUriInfo object with information from the URI parsercontentType - the content type of the responseODataResponse objectODataExceptionEntityProcessorpublic ODataResponse executeFunctionImport(GetFunctionImportUriInfo uriParserResultView, String contentType) throws ODataException
FunctionImportProcessorexecuteFunctionImport in interface FunctionImportProcessorexecuteFunctionImport in class ODataSingleProcessoruriParserResultView - information about the request URIcontentType - the content type of the responseODataResponse objectODataExceptionFunctionImportProcessorpublic ODataResponse executeFunctionImportValue(GetFunctionImportUriInfo uriParserResultView, String contentType) throws ODataException
FunctionImportValueProcessorexecuteFunctionImportValue in interface FunctionImportValueProcessorexecuteFunctionImportValue in class ODataSingleProcessoruriParserResultView - information about the request URIcontentType - the content type of the responseODataResponse objectODataExceptionFunctionImportValueProcessorpublic ODataResponse readEntityLink(GetEntityLinkUriInfo uriParserResultView, String contentType) throws ODataException
EntityLinkProcessorreadEntityLink in interface EntityLinkProcessorreadEntityLink in class ODataSingleProcessoruriParserResultView - information about the request URIcontentType - the content type of the responseODataResponse objectODataExceptionEntityLinkProcessorpublic ODataResponse readEntityLinks(GetEntitySetLinksUriInfo uriParserResultView, String contentType) throws ODataException
EntityLinksProcessorreadEntityLinks in interface EntityLinksProcessorreadEntityLinks in class ODataSingleProcessoruriParserResultView - information about the request URIcontentType - the content type of the responseODataExceptionEntityLinksProcessorpublic ODataResponse createEntityLink(PostUriInfo uriParserResultView, InputStream content, String requestContentType, String contentType) throws ODataException
EntityLinksProcessorcreateEntityLink in interface EntityLinksProcessorcreateEntityLink in class ODataSingleProcessoruriParserResultView - information about the request URIcontent - the content of the request, containing the link datarequestContentType - the content type of the request bodycontentType - the content type of the responseODataExceptionEntityLinkProcessorpublic ODataResponse updateEntityLink(PutMergePatchUriInfo uriParserResultView, InputStream content, String requestContentType, String contentType) throws ODataException
EntityLinkProcessorupdateEntityLink in interface EntityLinkProcessorupdateEntityLink in class ODataSingleProcessoruriParserResultView - information about the request URIcontent - the content of the request, containing the new URIrequestContentType - the content type of the request bodycontentType - the content type of the responseODataResponse objectODataExceptionEntityLinkProcessorpublic ODataResponse deleteEntityLink(DeleteUriInfo uriParserResultView, String contentType) throws ODataException
EntityLinkProcessordeleteEntityLink in interface EntityLinkProcessordeleteEntityLink in class ODataSingleProcessoruriParserResultView - information about the request URIcontentType - the content type of the responseODataResponse objectODataExceptionEntityLinkProcessorpublic ODataResponse executeBatch(BatchHandler handler, String contentType, InputStream content) throws ODataException
BatchProcessorODataResponseexecuteBatch in interface BatchProcessorexecuteBatch in class ODataSingleProcessorhandler - batch handlercontentType - the content type of the requestcontent - Batch Request bodyODataResponse objectODataExceptionBatchProcessorpublic BatchResponsePart executeChangeSet(BatchHandler handler, List<ODataRequest> requests) throws ODataException
BatchProcessorBatchResponsePart that contains the responses to
change requests.
The method has to define a rollback semantic that may be applied when a request within a Change Set fails
(all-or-nothing requirement).
If a request within a Change Set fails, instead of Change Set Response should be returned the error responseexecuteChangeSet in interface BatchProcessorexecuteChangeSet in class ODataSingleProcessorhandler - batch handlerrequests - list of single change requestsBatchResponsePart objectODataExceptionBatchProcessorCopyright © 2013-2022 The Apache Software Foundation. All Rights Reserved.