Class JPAODataServiceContext
java.lang.Object
com.sap.olingo.jpa.processor.core.api.JPAODataServiceContext
- All Implemented Interfaces:
JPAODataCRUDContext,JPAODataCRUDContextAccess,JPAODataGetContext
public final class JPAODataServiceContext
extends Object
implements JPAODataCRUDContext, JPAODataCRUDContextAccess
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.olingo.server.api.debug.DebugSupportcom.sap.olingo.jpa.metadata.api.JPAEdmProvidercom.sap.olingo.jpa.metadata.api.JPAEdmProvidergetEdmProvider(javax.persistence.EntityManager em)Optional<javax.persistence.EntityManagerFactory>org.apache.olingo.server.api.processor.ErrorProcessorString[]Returns a list of packages that may contain Enumerations of Java implemented OData operationsIf server side paging shall be supportedgetPagingProviderreturns an implementation of a paging provider.List<org.apache.olingo.commons.api.edmx.EdmxReference>voidinitDebugger(String debugFormat)Deprecated.will be removed with 1.0.0;voidsetCUDRequestHandler(JPACUDRequestHandler jpaCUDRequestHandler)Deprecated.will be removed with 1.0.0; use newly created builder (JPAODataServiceContext.with()) insteadvoidsetDatabaseProcessor(JPAODataDatabaseProcessor databaseProcessor)Deprecated.will be removed with 1.0.0; use newly created builder (JPAODataServiceContext.with()) insteadvoidsetDebugSupport(org.apache.olingo.server.api.debug.DebugSupport jpaDebugSupport)Deprecated.will be removed with 1.0.0; use newly created builder (JPAODataServiceContext.with()) insteadvoidsetErrorProcessor(org.apache.olingo.server.api.processor.ErrorProcessor errorProcessor)Deprecated.will be removed with 1.0.0; use newly created builder (JPAODataServiceContext.with()) insteadvoidsetMetadataPostProcessor(com.sap.olingo.jpa.metadata.api.JPAEdmMetadataPostProcessor postProcessor)Deprecated.will be removed with 1.0.0; use newly created builder (JPAODataServiceContext.with()) insteadvoidsetOperationConverter(JPAODataDatabaseOperations jpaOperationConverter)Deprecated.will be removed with 1.0.0; use newly created builder (JPAODataServiceContext.with()) insteadvoidsetPagingProvider(JPAODataPagingProvider provider)Deprecated.will be removed with 1.0.0; use newly created builder (JPAODataServiceContext.with()) insteadvoidsetReferences(List<org.apache.olingo.commons.api.edmx.EdmxReference> references)Deprecated.will be removed with 1.0.0; use newly created builder (JPAODataServiceContext.with()) insteadvoidsetTypePackage(String... packageName)Deprecated.will be removed with 1.0.0; use newly created builder (JPAODataServiceContext.with()) insteadbooleanwith()
-
Method Details
-
with
-
getCUDRequestHandler
- Specified by:
getCUDRequestHandlerin interfaceJPAODataCRUDContextAccess- Returns:
-
getDatabaseProcessor
- Specified by:
getDatabaseProcessorin interfaceJPAODataCRUDContextAccess
-
getDebugSupport
public org.apache.olingo.server.api.debug.DebugSupport getDebugSupport()- Specified by:
getDebugSupportin interfaceJPAODataCRUDContextAccess- Returns:
-
getEdmProvider
public com.sap.olingo.jpa.metadata.api.JPAEdmProvider getEdmProvider() throws org.apache.olingo.commons.api.ex.ODataException- Specified by:
getEdmProviderin interfaceJPAODataCRUDContextAccess- Throws:
org.apache.olingo.commons.api.ex.ODataException
-
getEdmProvider
public com.sap.olingo.jpa.metadata.api.JPAEdmProvider getEdmProvider(@Nonnull javax.persistence.EntityManager em) throws org.apache.olingo.commons.api.ex.ODataException- Throws:
org.apache.olingo.commons.api.ex.ODataException
-
getEntityManagerFactory
- Specified by:
getEntityManagerFactoryin interfaceJPAODataCRUDContextAccess
-
getErrorProcessor
public org.apache.olingo.server.api.processor.ErrorProcessor getErrorProcessor()- Specified by:
getErrorProcessorin interfaceJPAODataCRUDContextAccess
-
getOperationConverter
- Specified by:
getOperationConverterin interfaceJPAODataCRUDContextAccess
-
getPackageName
Description copied from interface:JPAODataCRUDContextAccessReturns a list of packages that may contain Enumerations of Java implemented OData operations- Specified by:
getPackageNamein interfaceJPAODataCRUDContextAccess- Returns:
-
getPagingProvider
Description copied from interface:JPAODataCRUDContextAccessIf server side paging shall be supportedgetPagingProviderreturns an implementation of a paging provider. Details about the OData specification can be found under OData Version 4.0 Part 1 - 11.2.5.7 Server-Driven Paging- Specified by:
getPagingProviderin interfaceJPAODataCRUDContextAccess- Returns:
-
getReferences
- Specified by:
getReferencesin interfaceJPAODataCRUDContextAccess
-
getMappingPath
- Specified by:
getMappingPathin interfaceJPAODataCRUDContextAccess
-
useAbsoluteContextURL
public boolean useAbsoluteContextURL()- Specified by:
useAbsoluteContextURLin interfaceJPAODataCRUDContextAccess
-
initDebugger
Deprecated.will be removed with 1.0.0;- Specified by:
initDebuggerin interfaceJPAODataGetContext
-
setCUDRequestHandler
Deprecated.will be removed with 1.0.0; use newly created builder (JPAODataServiceContext.with()) instead- Specified by:
setCUDRequestHandlerin interfaceJPAODataCRUDContext
-
setDatabaseProcessor
Deprecated.will be removed with 1.0.0; use newly created builder (JPAODataServiceContext.with()) instead- Specified by:
setDatabaseProcessorin interfaceJPAODataGetContext
-
setDebugSupport
@Deprecated public void setDebugSupport(org.apache.olingo.server.api.debug.DebugSupport jpaDebugSupport)Deprecated.will be removed with 1.0.0; use newly created builder (JPAODataServiceContext.with()) instead- Specified by:
setDebugSupportin interfaceJPAODataGetContext
-
setErrorProcessor
@Deprecated public void setErrorProcessor(org.apache.olingo.server.api.processor.ErrorProcessor errorProcessor)Deprecated.will be removed with 1.0.0; use newly created builder (JPAODataServiceContext.with()) insteadDescription copied from interface:JPAODataGetContextAllows to provide an Olingo error processor. The error processor allows to enrich an error response. See JSON Error Response or Atom Error Response.- Specified by:
setErrorProcessorin interfaceJPAODataGetContext
-
setMetadataPostProcessor
@Deprecated public void setMetadataPostProcessor(com.sap.olingo.jpa.metadata.api.JPAEdmMetadataPostProcessor postProcessor) throws org.apache.olingo.commons.api.ex.ODataExceptionDeprecated.will be removed with 1.0.0; use newly created builder (JPAODataServiceContext.with()) instead- Specified by:
setMetadataPostProcessorin interfaceJPAODataGetContext- Throws:
org.apache.olingo.commons.api.ex.ODataException
-
setOperationConverter
Deprecated.will be removed with 1.0.0; use newly created builder (JPAODataServiceContext.with()) instead- Specified by:
setOperationConverterin interfaceJPAODataGetContext
-
setPagingProvider
Deprecated.will be removed with 1.0.0; use newly created builder (JPAODataServiceContext.with()) insteadDescription copied from interface:JPAODataGetContextRegister a provider that is able to decides based on a given query if the server like to return only a sub set of the requested results as well as a $skiptoken.- Specified by:
setPagingProviderin interfaceJPAODataGetContext
-
setReferences
@Deprecated public void setReferences(List<org.apache.olingo.commons.api.edmx.EdmxReference> references)Deprecated.will be removed with 1.0.0; use newly created builder (JPAODataServiceContext.with()) insteadDescription copied from interface:JPAODataGetContextRegisters the debug support handler.- Specified by:
setReferencesin interfaceJPAODataGetContext
-
setTypePackage
Deprecated.will be removed with 1.0.0; use newly created builder (JPAODataServiceContext.with()) insteadDescription copied from interface:JPAODataGetContextName of the top level package to look for- Enumeration Types
- Java class based Functions
- Specified by:
setTypePackagein interfaceJPAODataGetContext
-