org.odata4j.producer.jpa
Class JPAEdmGenerator

java.lang.Object
  extended by org.odata4j.producer.jpa.JPAEdmGenerator
Direct Known Subclasses:
EclipseLinkJPAEdmGenerator

public class JPAEdmGenerator
extends Object


Constructor Summary
JPAEdmGenerator()
           
 
Method Summary
 EdmDataServices buildEdm(EntityManagerFactory emf, String namespace)
           
protected static String getAssociationName(List<EdmAssociation> associations, EdmEntityType fromEntityType, EdmEntityType toEntityType)
           
static
<X> String
getEntitySetName(EntityType<X> et)
           
static
<X> SingularAttribute<? super X,?>
getIdAttribute(EntityType<X> et)
           
protected  List<EdmProperty> getProperties(String modelNamespace, ManagedType<?> et)
           
protected  TemporalType getTemporalType(SingularAttribute<?,?> sa)
           
protected  EdmProperty toEdmProperty(String modelNamespace, SingularAttribute<?,?> sa)
           
protected  EdmType toEdmType(SingularAttribute<?,?> sa)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPAEdmGenerator

public JPAEdmGenerator()
Method Detail

buildEdm

public EdmDataServices buildEdm(EntityManagerFactory emf,
                                String namespace)

getAssociationName

protected static String getAssociationName(List<EdmAssociation> associations,
                                           EdmEntityType fromEntityType,
                                           EdmEntityType toEntityType)

getEntitySetName

public static <X> String getEntitySetName(EntityType<X> et)

getIdAttribute

public static <X> SingularAttribute<? super X,?> getIdAttribute(EntityType<X> et)

getProperties

protected List<EdmProperty> getProperties(String modelNamespace,
                                          ManagedType<?> et)

getTemporalType

protected TemporalType getTemporalType(SingularAttribute<?,?> sa)

toEdmProperty

protected EdmProperty toEdmProperty(String modelNamespace,
                                    SingularAttribute<?,?> sa)

toEdmType

protected EdmType toEdmType(SingularAttribute<?,?> sa)


http://odata4j.org