/** * Write <b>link</b> for key property based on <code>entity data model for an entity set</code> (given as * {@link EdmEntitySet}) * in the specified format (given as <code>contentType</code>). * The necessary key property values must be provided within the <code>data</code> (in the form of <code>property * name</code> * to <code>property value</code> mapping) and <code>properties</code> for this entity provider must be set * (given as {@link EntityProviderWriteProperties}). * * @param contentType format in which the entry should be written * @param entitySet entity data model for given entity data set * @param data which contains all key properties as <code>property name</code> to <code>property value</code> mapping * for the entry * @param properties additional properties necessary for writing of data * @return resulting {@link ODataResponse} with written link content. * @throws EntityProviderException if writing of data (serialization) fails */ public static ODataResponse writeLink(final String contentType, final EdmEntitySet entitySet, final Map<String, Object> data, final EntityProviderWriteProperties properties) throws EntityProviderException { return createEntityProvider().writeLink(contentType, entitySet, data, properties); }
/** * Write <b>link</b> for key property based on <code>entity data model for an entity set</code> (given as * {@link EdmEntitySet}) * in the specified format (given as <code>contentType</code>). * The necessary key property values must be provided within the <code>data</code> (in the form of <code>property * name</code> * to <code>property value</code> mapping) and <code>properties</code> for this entity provider must be set * (given as {@link EntityProviderWriteProperties}). * * @param contentType format in which the entry should be written * @param entitySet entity data model for given entity data set * @param data which contains all key properties as <code>property name</code> to <code>property value</code> mapping * for the entry * @param properties additional properties necessary for writing of data * @return resulting {@link ODataResponse} with written link content. * @throws EntityProviderException if writing of data (serialization) fails */ public static ODataResponse writeLink(final String contentType, final EdmEntitySet entitySet, final Map<String, Object> data, final EntityProviderWriteProperties properties) throws EntityProviderException { return createEntityProvider().writeLink(contentType, entitySet, data, properties); }
/** * Write <b>link</b> for key property based on <code>entity data model for an entity set</code> (given as * {@link EdmEntitySet}) * in the specified format (given as <code>contentType</code>). * The necessary key property values must be provided within the <code>data</code> (in the form of <code>property * name</code> * to <code>property value</code> mapping) and <code>properties</code> for this entity provider must be set * (given as {@link EntityProviderWriteProperties}). * * @param contentType format in which the entry should be written * @param entitySet entity data model for given entity data set * @param data which contains all key properties as <code>property name</code> to <code>property value</code> mapping * for the entry * @param properties additional properties necessary for writing of data * @return resulting {@link ODataResponse} with written link content. * @throws EntityProviderException if writing of data (serialization) fails */ public static ODataResponse writeLink(final String contentType, final EdmEntitySet entitySet, final Map<String, Object> data, final EntityProviderWriteProperties properties) throws EntityProviderException { return createEntityProvider().writeLink(contentType, entitySet, data, properties); }
/** * Write <b>link</b> for key property based on <code>entity data model for an entity set</code> (given as * {@link EdmEntitySet}) * in the specified format (given as <code>contentType</code>). * The necessary key property values must be provided within the <code>data</code> (in the form of <code>property * name</code> * to <code>property value</code> mapping) and <code>properties</code> for this entity provider must be set * (given as {@link EntityProviderWriteProperties}). * * @param contentType format in which the entry should be written * @param entitySet entity data model for given entity data set * @param data which contains all key properties as <code>property name</code> to <code>property value</code> mapping * for the entry * @param properties additional properties necessary for writing of data * @return resulting {@link ODataResponse} with written link content. * @throws EntityProviderException if writing of data (serialization) fails */ public static ODataResponse writeLink(final String contentType, final EdmEntitySet entitySet, final Map<String, Object> data, final EntityProviderWriteProperties properties) throws EntityProviderException { return createEntityProvider().writeLink(contentType, entitySet, data, properties); }