for (Map.Entry<String, DBOutputTypeDesc> entry : outputTypes.entrySet())
{
String columnName = entry.getKey();
Object value;
DatabaseTypeBinding binding = entry.getValue().getOptionalBinding();
if (binding != null)
{
value = binding.getValue(resultSet, columnName);
}
else
{
value = resultSet.getObject(columnName);
}