org.apache.olingo.odata2.jpa.processor.core
Class ODataJPAResponseBuilderDefault

java.lang.Object
  extended by org.apache.olingo.odata2.jpa.processor.core.ODataJPAResponseBuilderDefault
All Implemented Interfaces:
ODataJPAResponseBuilder

public final class ODataJPAResponseBuilderDefault
extends Object
implements ODataJPAResponseBuilder


Constructor Summary
ODataJPAResponseBuilderDefault(ODataJPAContext context)
           
 
Method Summary
 ODataResponse build(DeleteUriInfo deleteUriInfo, Object deletedObject)
           
 ODataResponse build(GetEntityLinkUriInfo resultsView, Object jpaEntity, String contentType)
           
 ODataResponse build(GetEntitySetLinksUriInfo resultsView, List<Object> jpaEntities, String contentType)
           
 ODataResponse build(GetEntitySetUriInfo resultsView, List<Object> jpaEntities, String contentType)
           
 ODataResponse build(GetEntityUriInfo resultsView, Object jpaEntity, String contentType)
           
 ODataResponse build(GetFunctionImportUriInfo resultsView, List<Object> resultList, String contentType)
           
 ODataResponse build(GetFunctionImportUriInfo resultsView, Object result)
           
 ODataResponse build(long jpaEntityCount)
           
 ODataResponse build(PostUriInfo uriInfo, Object createdObject, String contentType)
           
 ODataResponse build(PutMergePatchUriInfo putUriInfo, Object updatedObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ODataJPAResponseBuilderDefault

public ODataJPAResponseBuilderDefault(ODataJPAContext context)
Method Detail

build

public ODataResponse build(GetEntitySetUriInfo resultsView,
                           List<Object> jpaEntities,
                           String contentType)
                    throws ODataJPARuntimeException
Specified by:
build in interface ODataJPAResponseBuilder
Throws:
ODataJPARuntimeException

build

public ODataResponse build(GetEntityUriInfo resultsView,
                           Object jpaEntity,
                           String contentType)
                    throws ODataJPARuntimeException,
                           ODataNotFoundException
Specified by:
build in interface ODataJPAResponseBuilder
Throws:
ODataJPARuntimeException
ODataNotFoundException

build

public ODataResponse build(long jpaEntityCount)
                    throws ODataJPARuntimeException
Specified by:
build in interface ODataJPAResponseBuilder
Throws:
ODataJPARuntimeException

build

public ODataResponse build(PostUriInfo uriInfo,
                           Object createdObject,
                           String contentType)
                    throws ODataJPARuntimeException,
                           ODataNotFoundException
Specified by:
build in interface ODataJPAResponseBuilder
Throws:
ODataJPARuntimeException
ODataNotFoundException

build

public ODataResponse build(PutMergePatchUriInfo putUriInfo,
                           Object updatedObject)
                    throws ODataJPARuntimeException,
                           ODataNotFoundException
Specified by:
build in interface ODataJPAResponseBuilder
Throws:
ODataJPARuntimeException
ODataNotFoundException

build

public ODataResponse build(DeleteUriInfo deleteUriInfo,
                           Object deletedObject)
                    throws ODataJPARuntimeException,
                           ODataNotFoundException
Specified by:
build in interface ODataJPAResponseBuilder
Throws:
ODataJPARuntimeException
ODataNotFoundException

build

public ODataResponse build(GetFunctionImportUriInfo resultsView,
                           Object result)
                    throws ODataJPARuntimeException
Specified by:
build in interface ODataJPAResponseBuilder
Throws:
ODataJPARuntimeException

build

public ODataResponse build(GetFunctionImportUriInfo resultsView,
                           List<Object> resultList,
                           String contentType)
                    throws ODataJPARuntimeException,
                           ODataNotFoundException
Specified by:
build in interface ODataJPAResponseBuilder
Throws:
ODataJPARuntimeException
ODataNotFoundException

build

public ODataResponse build(GetEntityLinkUriInfo resultsView,
                           Object jpaEntity,
                           String contentType)
                    throws ODataNotFoundException,
                           ODataJPARuntimeException
Specified by:
build in interface ODataJPAResponseBuilder
Throws:
ODataNotFoundException
ODataJPARuntimeException

build

public ODataResponse build(GetEntitySetLinksUriInfo resultsView,
                           List<Object> jpaEntities,
                           String contentType)
                    throws ODataJPARuntimeException
Specified by:
build in interface ODataJPAResponseBuilder
Throws:
ODataJPARuntimeException


Copyright © 2013-2014 The Apache Software Foundation. All Rights Reserved.