org.odata4j.producer.jpa
Class JPAContext

java.lang.Object
  extended by org.odata4j.producer.jpa.JPAContext
All Implemented Interfaces:
Context

public class JPAContext
extends Object
implements Context


Nested Class Summary
 class JPAContext.ContextEntity
           
static class JPAContext.EntityAccessor
           
 
Constructor Summary
protected JPAContext(EdmDataServices metadata, String entitySetName, OEntityKey oEntityKey, OEntity oEntity)
           
  JPAContext(EdmDataServices metadata, String entitySetName, OEntityKey oEntityKey, String navProperty, OEntity oEntity)
           
  JPAContext(EdmDataServices metadata, String entitySetName, OEntityKey oEntityKey, String navProperty, QueryInfo queryInfo)
           
  JPAContext(EdmDataServices metadata, String entitySetName, QueryInfo queryInfo)
           
 
Method Summary
 EdmPropertyBase getEdmPropertyBase()
           
 JPAContext.ContextEntity getEntity()
           
 EntityManager getEntityManager()
           
 EntityTransaction getEntityTransaction()
           
 String getJPQLQuery()
           
 EdmDataServices getMetadata()
           
 String getNavProperty()
           
 JPAContext.ContextEntity getOtherEntity()
           
 QueryInfo getQueryInfo()
           
 BaseResponse getResponse()
           
 JPAResult getResult()
           
 void setEdmPropertyBase(EdmPropertyBase edmPropertyBase)
           
 void setEntityManager(EntityManager em)
           
 void setEntityTransaction(EntityTransaction tx)
           
 void setJPQLQuery(String jpqlQuery)
           
 void setResponse(BaseResponse response)
           
 void setResult(JPAResult result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPAContext

protected JPAContext(EdmDataServices metadata,
                     String entitySetName,
                     OEntityKey oEntityKey,
                     OEntity oEntity)

JPAContext

public JPAContext(EdmDataServices metadata,
                  String entitySetName,
                  OEntityKey oEntityKey,
                  String navProperty,
                  OEntity oEntity)

JPAContext

public JPAContext(EdmDataServices metadata,
                  String entitySetName,
                  OEntityKey oEntityKey,
                  String navProperty,
                  QueryInfo queryInfo)

JPAContext

public JPAContext(EdmDataServices metadata,
                  String entitySetName,
                  QueryInfo queryInfo)
Method Detail

getEdmPropertyBase

public EdmPropertyBase getEdmPropertyBase()

getEntity

public JPAContext.ContextEntity getEntity()

getEntityManager

public EntityManager getEntityManager()

getEntityTransaction

public EntityTransaction getEntityTransaction()

getJPQLQuery

public String getJPQLQuery()

getMetadata

public EdmDataServices getMetadata()

getNavProperty

public String getNavProperty()

getOtherEntity

public JPAContext.ContextEntity getOtherEntity()

getQueryInfo

public QueryInfo getQueryInfo()

getResponse

public BaseResponse getResponse()

getResult

public JPAResult getResult()

setEdmPropertyBase

public void setEdmPropertyBase(EdmPropertyBase edmPropertyBase)

setEntityManager

public void setEntityManager(EntityManager em)

setEntityTransaction

public void setEntityTransaction(EntityTransaction tx)

setJPQLQuery

public void setJPQLQuery(String jpqlQuery)

setResponse

public void setResponse(BaseResponse response)

setResult

public void setResult(JPAResult result)


http://odata4j.org