public List<AccessLevel> GenerateObjectList(ResultSet resultSet) { List<AccessLevel> AccessLevelList = new ArrayList<AccessLevel>(); try { while (resultSet.next()) { AccessLevel AccessLevelObj = new AccessLevel(resultSet.getInt("CodAccessLevel"), resultSet.getString("Description")); AccessLevelList.add(AccessLevelObj); } } catch (SQLException ex) { exception.manageException(ex); } return AccessLevelList; }
public AccessLevel GenerateObject(ResultSet resultSet) { AccessLevel AccessLevelObj = null; try { while (resultSet.next()) { AccessLevelObj = new AccessLevel(resultSet.getInt("CodAccessLevel"), resultSet.getString("Description")); } } catch (SQLException ex) { exception.manageException(ex); } return AccessLevelObj; }
public List<Tag> GenerateObjectList(ResultSet resultSet) { List<Tag> tagList = new ArrayList<Tag>(); try { while (resultSet.next()) { Tag tagObj = new Tag( resultSet.getInt("CodTag"), resultSet.getString("Name"), resultSet.getBoolean("IsGoogleTag"), resultSet.getInt("CodParentTag")); tagList.add(tagObj); } } catch (SQLException ex) { exception.manageException(ex); } return tagList; }
public Tag GenerateObject(ResultSet resultSet) { Tag tagObj = null; try { while (resultSet.next()) { tagObj = new Tag( resultSet.getInt("CodTag"), resultSet.getString("Name"), resultSet.getBoolean("IsGoogleTag"), resultSet.getInt("CodParentTag")); } } catch (SQLException ex) { exception.manageException(ex); } return tagObj; }