Пример #1
0
  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;
  }
Пример #2
0
  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;
  }
Пример #3
0
  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;
  }
Пример #4
0
  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;
  }