org.apache.olingo.odata2.jpa.processor.core.access.data
Class JPALink

java.lang.Object
  extended by org.apache.olingo.odata2.jpa.processor.core.access.data.JPALink

public class JPALink
extends Object


Constructor Summary
JPALink(ODataJPAContext context)
           
 
Method Summary
 void create(EdmEntitySet entitySet, ODataEntry oDataEntry, List<String> navigationPropertyNames)
           
 void create(PostUriInfo uriInfo)
           
 void create(PostUriInfo uriInfo, InputStream content, String requestContentType, String contentType)
           
 void delete(DeleteUriInfo uriInfo)
           
 Object getSourceJPAEntity()
           
 Object getTargetJPAEntity()
           
static void linkJPAEntities(Collection<Object> targetJPAEntities, Object sourceJPAEntity, EdmNavigationProperty navigationProperty)
           
 void save()
           
 void setSourceJPAEntity(Object jpaEntity)
           
 void setTargetJPAEntity(Object jpaEntity)
           
 void update(PutMergePatchUriInfo putUriInfo, InputStream content, String requestContentType, String contentType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPALink

public JPALink(ODataJPAContext context)
Method Detail

setSourceJPAEntity

public void setSourceJPAEntity(Object jpaEntity)

setTargetJPAEntity

public void setTargetJPAEntity(Object jpaEntity)

getTargetJPAEntity

public Object getTargetJPAEntity()

getSourceJPAEntity

public Object getSourceJPAEntity()

create

public void create(PostUriInfo uriInfo,
                   InputStream content,
                   String requestContentType,
                   String contentType)
            throws ODataJPARuntimeException,
                   ODataJPAModelException
Throws:
ODataJPARuntimeException
ODataJPAModelException

update

public void update(PutMergePatchUriInfo putUriInfo,
                   InputStream content,
                   String requestContentType,
                   String contentType)
            throws ODataJPARuntimeException,
                   ODataJPAModelException
Throws:
ODataJPARuntimeException
ODataJPAModelException

delete

public void delete(DeleteUriInfo uriInfo)
            throws ODataJPARuntimeException
Throws:
ODataJPARuntimeException

save

public void save()

create

public void create(EdmEntitySet entitySet,
                   ODataEntry oDataEntry,
                   List<String> navigationPropertyNames)
            throws ODataJPARuntimeException,
                   ODataJPAModelException
Throws:
ODataJPARuntimeException
ODataJPAModelException

create

public void create(PostUriInfo uriInfo)
            throws ODataJPARuntimeException,
                   ODataJPAModelException
Throws:
ODataJPARuntimeException
ODataJPAModelException

linkJPAEntities

public static void linkJPAEntities(Collection<Object> targetJPAEntities,
                                   Object sourceJPAEntity,
                                   EdmNavigationProperty navigationProperty)
                            throws ODataJPARuntimeException
Throws:
ODataJPARuntimeException


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