Exemplo n.º 1
0
  /**
   * initFromResultSet initializes the data members from NewDBTable. This code was separated from
   * the ResultSet constructor so that createExisting(ResultSet) could handle VIEWs.
   */
  private void initFromResultSet(ResultSet rs)
      throws SQLException, ObjectIdException, DataObjectException, DatabaseManagerException {
    // Constructing a DO from a ResultSet means we definitely need the
    // DataStruct ready for the setXxx methods invoked below.
    data = new TreeLeafDataStruct();

    // writeMemberStuff uses the ResultSetExtraction.template
    // to build up the value for this tag:
    // the value is a series of calls to the DO set methods.

    setLeafNumber(rs.getInt("LeafNumber"));

    setProfile(jobmatch.data.ProfileDO.createExisting(rs.getBigDecimal("Profile", 0)));

    setMandatory(rs.getBoolean("Mandatory"));

    markClean();
  }