* @param row expected row for this embedded value
*/
public void update(OpenJPAStateManager owner, OpenJPAStateManager sm,
JDBCStore store, RowManager rm, Row row)
throws SQLException {
OpenJPAStateManager em = sm;
if (em == null)
em = new NullEmbeddedStateManager(owner, field);
rm = new EmbeddedRowManager(rm, row);
FieldMapping[] fields = field.getEmbeddedMapping().getFieldMappings();
for (int i = 0; i < fields.length; i++)
if (em.getDirty().get(i)
&& !em.getFlushed().get(i)
&& !Boolean.TRUE.equals(fields[i].isCustomUpdate(em, store)))
fields[i].update(em, store, rm);
if (field.getColumnIO().isUpdatable(0, true))
setNullIndicatorColumn(sm, row);