Is there a way to update a field in a row, without to mention the field name?
I have a list of items, that each item has properties. From each property I can get the property name and the property value. The table's columns are named by the properties.
I'm looking for a method that will help me to do something like this:
Code:
for(Item currentItem : itemsArray)
{
tableName row = new tableName();
Property [] itemProperties = currentItem.getPropertiesArray();
for(Property prop : itemProperties)
{
row.updateField(prop.getName(), prop.getValue()); // I'm looking for a method like this. that gets a filed name and a value.
}
}
Thanks.