void loadDescription(ResultSet resultSet) throws SQLException, PlatformException { int descriptionID = resultSet.getInt("attributeset_item_id"); String type = resultSet.getString("attribute_type"); String name = resultSet.getString("attribute_name"); String tableName = resultSet.getString("table_name"); String columnName = resultSet.getString("column_name"); boolean isOutput = resultSet.getString("is_output").equals("Y"); AttributeDescription description = (AttributeDescription) _attributeManager.createAttributeDescription( name, tableName, columnName, type, isOutput); description.setOutput(isOutput); // FIXME: if attribute type is enum, reading the value additionally if (AttributeType.ENUM.equals(type) && description instanceof EnumAttributeDescription) { String stringValue = resultSet.getString("attribute_value"); ((EnumAttributeDescription) description).parseValues(stringValue); } ((AttributeDescription) description).setDescriptionID(descriptionID); _descriptions.add(description); }