Class ResponseProcessor
- java.lang.Object
-
- com.github.silent.samurai.response.ResponseProcessor
-
public class ResponseProcessor extends Object
-
-
Constructor Summary
Constructors Constructor Description ResponseProcessor(JpaMetaModel jpaMetaModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.persistence.metamodel.Attribute<?,?>getJpaAttribute(ResourceMetadata entityMetadata, String fieldName)ObjectgetPrimaryKeyObject(RequestInfo requestInfo, ResourceMetadata entityMetadata)com.google.gson.JsonElementprocess(RequestInfo requestInfo, javax.persistence.EntityManager entityManager)
-
-
-
Constructor Detail
-
ResponseProcessor
public ResponseProcessor(JpaMetaModel jpaMetaModel)
-
-
Method Detail
-
getJpaAttribute
public javax.persistence.metamodel.Attribute<?,?> getJpaAttribute(ResourceMetadata entityMetadata, String fieldName)
-
getPrimaryKeyObject
public Object getPrimaryKeyObject(RequestInfo requestInfo, ResourceMetadata entityMetadata)
-
process
public com.google.gson.JsonElement process(RequestInfo requestInfo, javax.persistence.EntityManager entityManager) throws InvocationTargetException, IllegalAccessException
-
-