}
if (set && !canSetAny(io, fromCols.length, false))
return;
ClassMapping toMapping = (ClassMapping) to.getMetaData();
Joinable join;
Object val;
for (int i = 0; i < toCols.length; i++) {
// don't even translate join value if unsettable
if (set) {
if (_action == ACTION_INSERT && fromCols[i].isAutoAssigned())
continue;
if (!canSet(io, i, false))
continue;
}
join = toMapping.assertJoinable(toCols[i]);
if (oid != null)
val = join.getJoinValue(oid, toCols[i], (JDBCStore) to.
getContext().getStoreManager().getInnermostDelegate());
else
val = join.getJoinValue(to, toCols[i], (JDBCStore) to.
getContext().getStoreManager().getInnermostDelegate());
if (set && val == null) {
if (canSet(io, i, true))
setNull(fromCols[i]);