Column[] cols = vm.getHandler().map(vm, name, io, adapt);
if (cols.length > 0 && cols[0].getTable() == null) {
cols = vinfo.getColumns(vm, name, cols,
vm.getFieldMapping().getTable(), adapt);
ColumnIO mappedIO = vinfo.getColumnIO();
vm.setColumns(cols);
vm.setColumnIO(mappedIO);
if (mappedIO != null) {
for (int i = 0; i < cols.length; i++) {
io.setInsertable(i, mappedIO.isInsertable(i, false));
io.setNullInsertable(i, mappedIO.isInsertable(i, true));
io.setUpdatable(i, mappedIO.isUpdatable(i, false));
io.setNullUpdatable(i, mappedIO.isUpdatable(i, true));
}
}
}
vm.mapConstraints(name, adapt);
return cols;