for (int i = 0; i < jdbcTypes.length; i++) {
String name = columnNames.get(i);
int jdbcType = jdbcTypes[i];
DataTypeDescriptor sqlType = DataTypeDescriptor.getBuiltInDataTypeDescriptor(jdbcType);
TInstance type = context.getTypesTranslator().typeForSQLType(sqlType);
ResultColumn column = new ResultColumn(name, jdbcType, sqlType,
null, type, null);
columns.add(column);
}
return new JDBCResultSetMetaData(context.getTypesTranslator(), columns);
}