git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/jackcess-2@698
f203690c-595d-4dc9-a70b-
905162fa7fd2
protected ComplexValueIdImpl getValueId(Object[] row) {
int idVal = (Integer)getPrimaryKeyColumn().getRowValue(row);
- return new ComplexValueIdImpl(idVal, (RowId)row[row.length - 1]);
+ return new ComplexValueIdImpl(idVal,
+ ((TableImpl)_flatTable).getRowId(row));
}
protected Object[] asRow(Object[] row, V value) {
return asRow(rowMap, Column.KEEP_VALUE, false);
}
+ /**
+ * @return the generated RowId added to a row of values created via {@link
+ * #asRowWithRowId}
+ * @usage _intermediate_method_
+ */
+ public RowId getRowId(Object[] row) {
+ return (RowId)row[_columns.size()];
+ }
+
/**
* Converts a map of columnName -> columnValue to an array of row values.
*/