org.apache.olingo.odata2.jpa.processor.core.access.model
Class JPATypeConvertor
java.lang.Object
org.apache.olingo.odata2.jpa.processor.core.access.model.JPATypeConvertor
public class JPATypeConvertor
- extends Object
This class holds utility methods for Type conversions between JPA and OData Types.
|
Method Summary |
static EdmSimpleTypeKind |
convertToEdmSimpleType(Class<?> jpaType,
javax.persistence.metamodel.Attribute<?,?> currentAttribute)
This utility method converts a given jpa Type to equivalent
EdmSimpleTypeKind for maintaining compatibility between Java and OData
Types. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JPATypeConvertor
public JPATypeConvertor()
convertToEdmSimpleType
public static EdmSimpleTypeKind convertToEdmSimpleType(Class<?> jpaType,
javax.persistence.metamodel.Attribute<?,?> currentAttribute)
throws ODataJPAModelException
- This utility method converts a given jpa Type to equivalent
EdmSimpleTypeKind for maintaining compatibility between Java and OData
Types.
- Parameters:
jpaType - The JPA Type input.
- Returns:
- The corresponding EdmSimpleTypeKind.
- Throws:
ODataJPAModelException
ODataJPARuntimeException- See Also:
EdmSimpleTypeKind
Copyright © 2013-2014 The Apache Software Foundation. All Rights Reserved.