/** * Write given <code>data</code> (which is given in form of a {@link List} with a {@link Map} for each entity. Such a * {@link Map} contains all properties [as <code>property name</code> to <code>property value</code> mapping] for the * entry) in the specified * format (given as <code>contentType</code>) based on given <code>entity data model for an entity set</code> (given * as {@link EdmEntitySet}) * and <code>properties</code> for this entity provider (given as {@link EntityProviderWriteProperties}). * * @param contentType format in which the feed should be written * @param entitySet entity data model for given entity data set * @param data set of entries in form of a {@link List} with a {@link Map} for each entity (such a {@link Map} * contains all properties [as <code>property name</code> to <code>property value</code> mapping). * @param properties additional properties necessary for writing of data * @return resulting {@link ODataResponse} with written feed content. * @throws EntityProviderException if writing of data (serialization) fails */ public static ODataResponse writeFeed(final String contentType, final EdmEntitySet entitySet, final List<Map<String, Object>> data, final EntityProviderWriteProperties properties) throws EntityProviderException { return createEntityProvider().writeFeed(contentType, entitySet, data, properties); }
/** * Write given <code>data</code> (which is given in form of a {@link List} with a {@link Map} for each entity. Such a * {@link Map} contains all properties [as <code>property name</code> to <code>property value</code> mapping] for the * entry) in the specified * format (given as <code>contentType</code>) based on given <code>entity data model for an entity set</code> (given * as {@link EdmEntitySet}) * and <code>properties</code> for this entity provider (given as {@link EntityProviderWriteProperties}). * * @param contentType format in which the feed should be written * @param entitySet entity data model for given entity data set * @param data set of entries in form of a {@link List} with a {@link Map} for each entity (such a {@link Map} * contains all properties [as <code>property name</code> to <code>property value</code> mapping). * @param properties additional properties necessary for writing of data * @return resulting {@link ODataResponse} with written feed content. * @throws EntityProviderException if writing of data (serialization) fails */ public static ODataResponse writeFeed(final String contentType, final EdmEntitySet entitySet, final List<Map<String, Object>> data, final EntityProviderWriteProperties properties) throws EntityProviderException { return createEntityProvider().writeFeed(contentType, entitySet, data, properties); }
/** * Write given <code>data</code> (which is given in form of a {@link List} with a {@link Map} for each entity. Such a * {@link Map} contains all properties [as <code>property name</code> to <code>property value</code> mapping] for the * entry) in the specified * format (given as <code>contentType</code>) based on given <code>entity data model for an entity set</code> (given * as {@link EdmEntitySet}) * and <code>properties</code> for this entity provider (given as {@link EntityProviderWriteProperties}). * * @param contentType format in which the feed should be written * @param entitySet entity data model for given entity data set * @param data set of entries in form of a {@link List} with a {@link Map} for each entity (such a {@link Map} * contains all properties [as <code>property name</code> to <code>property value</code> mapping). * @param properties additional properties necessary for writing of data * @return resulting {@link ODataResponse} with written feed content. * @throws EntityProviderException if writing of data (serialization) fails */ public static ODataResponse writeFeed(final String contentType, final EdmEntitySet entitySet, final List<Map<String, Object>> data, final EntityProviderWriteProperties properties) throws EntityProviderException { return createEntityProvider().writeFeed(contentType, entitySet, data, properties); }
/** * Write given <code>data</code> (which is given in form of a {@link List} with a {@link Map} for each entity. Such a * {@link Map} contains all properties [as <code>property name</code> to <code>property value</code> mapping] for the * entry) in the specified * format (given as <code>contentType</code>) based on given <code>entity data model for an entity set</code> (given * as {@link EdmEntitySet}) * and <code>properties</code> for this entity provider (given as {@link EntityProviderWriteProperties}). * * @param contentType format in which the feed should be written * @param entitySet entity data model for given entity data set * @param data set of entries in form of a {@link List} with a {@link Map} for each entity (such a {@link Map} * contains all properties [as <code>property name</code> to <code>property value</code> mapping). * @param properties additional properties necessary for writing of data * @return resulting {@link ODataResponse} with written feed content. * @throws EntityProviderException if writing of data (serialization) fails */ public static ODataResponse writeFeed(final String contentType, final EdmEntitySet entitySet, final List<Map<String, Object>> data, final EntityProviderWriteProperties properties) throws EntityProviderException { return createEntityProvider().writeFeed(contentType, entitySet, data, properties); }