use of com.liferay.portlet.dynamicdatamapping.storage.Field in project liferay-ide by liferay.
the class StorageAdapterCreateUpdateMethodsTest method updateFieldValues.
protected void updateFieldValues(long storageId, Map<String, String> fieldValues) throws Exception {
Fields fields = new Fields();
for (Map.Entry<String, String> entry : fieldValues.entrySet()) {
Field field = new Field(storageId, entry.getKey(), entry.getValue());
fields.put(field);
}
ServiceContext serviceContext = new ServiceContext();
StorageEngineUtil.update(storageId, fields, true, serviceContext);
}
Aggregations