public interface ODataJPAContext
ODataJPAFactory
,
ODataJPAAccessFactory
Modifier and Type | Method and Description |
---|---|
boolean |
getDefaultNaming()
The method returns whether the library should consider default naming for
EdmProperty
EdmComplexProperty
EdmNavigationProperty
|
EdmProvider |
getEdmProvider()
The method gets the EDM provider for JPA from the context.
|
javax.persistence.EntityManager |
getEntityManager()
The method returns an instance of type entity manager.
|
javax.persistence.EntityManagerFactory |
getEntityManagerFactory()
The method gets the Java Persistence Entity Manager factory from the
context.
|
JPAEdmExtension |
getJPAEdmExtension()
The method returns the JPA Edm Extension instance set into the context.
|
String |
getJPAEdmMappingModel()
The method gets the JPA EDM mapping model name from the context.
|
ODataContext |
getODataContext()
The method gets OData Context into the context.
|
ODataJPATransaction |
getODataJPATransaction()
The method returns the ODataJPATransaction.
|
ODataProcessor |
getODataProcessor()
The method gets the OData Processor for JPA from the context.
|
int |
getPageSize()
The method gets the server side page size to the context
|
JPAPaging |
getPaging()
The method returns the server side paging object
|
String |
getPersistenceUnitName()
The method gets the Java Persistence Unit Name set into the context.
|
boolean |
isContainerManaged()
The method returns
true if the underlying entity manager is container managed. |
void |
setContainerManaged(boolean containerManaged)
Set the state whether the underlying entity manager is container managed (or not).
|
void |
setDefaultNaming(boolean defaultNaming)
The method sets into the context whether the library should consider default naming for
EdmProperty
EdmComplexProperty
EdmNavigationProperty
|
void |
setEdmProvider(EdmProvider edmProvider)
The method sets EDM provider into the context
|
void |
setEntityManager(javax.persistence.EntityManager em)
The method sets the Entity Manager into the Context
|
void |
setEntityManagerFactory(javax.persistence.EntityManagerFactory emf)
The method sets the Java Persistence Entity Manager factory into the
context.
|
void |
setJPAEdmExtension(JPAEdmExtension jpaEdmExtension)
The method sets the JPA Edm Extension instance into the context.
|
void |
setJPAEdmMappingModel(String name)
The method sets the JPA EDM mapping model name into the context.
|
void |
setODataContext(ODataContext ctx)
The method sets OData context into the context.
|
void |
setODataProcessor(ODataProcessor processor)
The method sets the OData Processor for JPA into the context.
|
void |
setPageSize(int size)
The method sets the server side page size to the context
|
void |
setPaging(JPAPaging paging)
The method sets the server side paging object
|
void |
setPersistenceUnitName(String pUnitName)
The method sets the Java Persistence Unit Name into the context.
|
String getPersistenceUnitName()
void setPersistenceUnitName(String pUnitName)
pUnitName
- is the Java Persistence Unit Name.ODataProcessor getODataProcessor()
void setODataProcessor(ODataProcessor processor)
processor
- is the specific implementation of ODataJPAProcessor
for
processing OData service requests.EdmProvider getEdmProvider()
void setEdmProvider(EdmProvider edmProvider)
edmProvider
- is the specific implementation of EdmProvider
for
transforming Java persistence models to Entity Data Modeljavax.persistence.EntityManagerFactory getEntityManagerFactory()
getEntityManager()
void setEntityManagerFactory(javax.persistence.EntityManagerFactory emf)
emf
- is of type EntityManagerFactory
ODataContext getODataContext()
void setODataContext(ODataContext ctx)
ctx
- is an OData context of type ODataContext
void setJPAEdmMappingModel(String name)
name
- is the name of JPA EDM mapping modelString getJPAEdmMappingModel()
void setEntityManager(javax.persistence.EntityManager em)
em
- javax.persistence.EntityManager getEntityManager()
EntityManager
void setJPAEdmExtension(JPAEdmExtension jpaEdmExtension)
jpaEdmExtension
- is an instance of type JPAEdmExtension
JPAEdmExtension getJPAEdmExtension()
JPAEmbeddableTypeMapType
void setDefaultNaming(boolean defaultNaming)
defaultNaming
- is a boolean value that indicates if set to
boolean getDefaultNaming()
int getPageSize()
void setPageSize(int size)
size
- void setPaging(JPAPaging paging)
paging
- an instance of type JPAPaging
JPAPaging getPaging()
JPAPaging
ODataJPATransaction getODataJPATransaction()
void setContainerManaged(boolean containerManaged)
false
)containerManaged
- true
for container managed entity managerboolean isContainerManaged()
true
if the underlying entity manager is container managed.
(Default is false
)true
if the underlying entity manger is container manged.Copyright © 2013-2017 The Apache Software Foundation. All Rights Reserved.