org.apache.olingo.odata2.jpa.processor.core.access.data
Class JPAEntityParser
java.lang.Object
org.apache.olingo.odata2.jpa.processor.core.access.data.JPAEntityParser
public final class JPAEntityParser
- extends Object
|
Method Summary |
Method |
getAccessModifier(Class<?> jpaEntityType,
EdmNavigationProperty navigationProperty,
String accessModifier)
|
static String |
getAccessModifierName(String propertyName,
EdmMapping mapping,
String accessModifier)
|
HashMap<String,Method> |
getAccessModifiers(Object jpaEntity,
EdmStructuralType structuralType,
String accessModifier)
|
Method |
getAccessModifierSet(Object jpaEntity,
String methodName)
|
static byte[] |
getBytes(Blob blob)
|
Object |
getEmbeddablePropertyValue(String methodName,
Object jpaEntity)
|
HashMap<String,String> |
getJPAEmbeddableKeyMap(String jpaEntityName)
|
HashMap<String,Method> |
getJPAEntityAccessMap(String jpaEntityName)
|
static Object |
getPropertyValue(Method method,
Object entity)
|
static String |
getString(Clob clob)
|
List<Map<String,Object>> |
parse2EdmEntityList(Collection<Object> jpaEntityList,
EdmStructuralType structuralType)
|
List<Map<String,Object>> |
parse2EdmEntityList(Collection<Object> jpaEntityList,
List<EdmProperty> properties)
|
HashMap<String,Object> |
parse2EdmNavigationValueMap(Object jpaEntity,
List<EdmNavigationProperty> navigationPropertyList)
|
HashMap<String,Object> |
parse2EdmPropertyValueMap(Object jpaEntity,
EdmStructuralType structuralType)
|
HashMap<String,Object> |
parse2EdmPropertyValueMap(Object jpaEntity,
List<EdmProperty> selectPropertyList)
|
static Character[] |
toCharacterArray(String input)
|
static String |
toString(Character[] input)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACCESS_MODIFIER_GET
public static final String ACCESS_MODIFIER_GET
- See Also:
- Constant Field Values
ACCESS_MODIFIER_SET
public static final String ACCESS_MODIFIER_SET
- See Also:
- Constant Field Values
JPAEntityParser
public JPAEntityParser()
getJPAEntityAccessMap
public HashMap<String,Method> getJPAEntityAccessMap(String jpaEntityName)
getJPAEmbeddableKeyMap
public HashMap<String,String> getJPAEmbeddableKeyMap(String jpaEntityName)
parse2EdmEntityList
public List<Map<String,Object>> parse2EdmEntityList(Collection<Object> jpaEntityList,
List<EdmProperty> properties)
throws ODataJPARuntimeException
- Throws:
ODataJPARuntimeException
parse2EdmPropertyValueMap
public final HashMap<String,Object> parse2EdmPropertyValueMap(Object jpaEntity,
List<EdmProperty> selectPropertyList)
throws ODataJPARuntimeException
- Throws:
ODataJPARuntimeException
parse2EdmEntityList
public final List<Map<String,Object>> parse2EdmEntityList(Collection<Object> jpaEntityList,
EdmStructuralType structuralType)
throws ODataJPARuntimeException
- Throws:
ODataJPARuntimeException
parse2EdmPropertyValueMap
public final HashMap<String,Object> parse2EdmPropertyValueMap(Object jpaEntity,
EdmStructuralType structuralType)
throws ODataJPARuntimeException
- Throws:
ODataJPARuntimeException
parse2EdmNavigationValueMap
public final HashMap<String,Object> parse2EdmNavigationValueMap(Object jpaEntity,
List<EdmNavigationProperty> navigationPropertyList)
throws ODataJPARuntimeException
- Throws:
ODataJPARuntimeException
getAccessModifierSet
public Method getAccessModifierSet(Object jpaEntity,
String methodName)
throws ODataJPARuntimeException
- Throws:
ODataJPARuntimeException
getAccessModifiers
public HashMap<String,Method> getAccessModifiers(Object jpaEntity,
EdmStructuralType structuralType,
String accessModifier)
throws ODataJPARuntimeException
- Throws:
ODataJPARuntimeException
getPropertyValue
public static Object getPropertyValue(Method method,
Object entity)
throws ODataJPARuntimeException
- Throws:
ODataJPARuntimeException
getString
public static String getString(Clob clob)
throws ODataJPARuntimeException
- Throws:
ODataJPARuntimeException
getBytes
public static byte[] getBytes(Blob blob)
throws ODataJPARuntimeException
- Throws:
ODataJPARuntimeException
getEmbeddablePropertyValue
public Object getEmbeddablePropertyValue(String methodName,
Object jpaEntity)
throws ODataJPARuntimeException
- Throws:
ODataJPARuntimeException
toString
public static String toString(Character[] input)
toCharacterArray
public static Character[] toCharacterArray(String input)
getAccessModifierName
public static String getAccessModifierName(String propertyName,
EdmMapping mapping,
String accessModifier)
throws ODataJPARuntimeException
- Throws:
ODataJPARuntimeException
getAccessModifier
public Method getAccessModifier(Class<?> jpaEntityType,
EdmNavigationProperty navigationProperty,
String accessModifier)
throws ODataJPARuntimeException
- Throws:
ODataJPARuntimeException
Copyright © 2013-2014 The Apache Software Foundation. All Rights Reserved.