switch (type) {
case java.sql.Types.NULL:
record.setField(pos, NullValue.getInstance());
break;
case java.sql.Types.BOOLEAN:
record.setField(pos, new BooleanValue(resultSet.getBoolean(pos + 1)));
break;
case java.sql.Types.BIT:
record.setField(pos, new BooleanValue(resultSet.getBoolean(pos + 1)));
break;
case java.sql.Types.CHAR:
record.setField(pos, new StringValue(resultSet.getString(pos + 1)));
break;
case java.sql.Types.NCHAR: