Project

General

Profile

« Previous | Next » 

Revision 7428

look up the archived value when retrieving SystemMetadata record.
https://redmine.dataone.org/issues/3405

View differences:

src/edu/ucsb/nceas/metacat/IdentifierManager.java
249 249
        SystemMetadata sysMeta = new SystemMetadata();
250 250
        String sql = "select guid, date_uploaded, rights_holder, checksum, checksum_algorithm, " +
251 251
          "origin_member_node, authoritive_member_node, date_modified, submitter, object_format, size, " +
252
          "replication_allowed, number_replicas, obsoletes, obsoleted_by, serial_version " +
252
          "replication_allowed, number_replicas, obsoletes, obsoleted_by, serial_version, archived " +
253 253
          "from systemmetadata where guid = ?";
254 254
        DBConnection dbConn = null;
255 255
        int serialNumber = -1;
256 256
        Boolean replicationAllowed = new Boolean(false);
257 257
        BigInteger numberOfReplicas = new BigInteger("-1");
258 258
        BigInteger serialVersion = new BigInteger("-1");
259
        Boolean archived = new Boolean(false);
259 260

  
260 261
        try 
261 262
        {
......
284 285
                String obsoletes = rs.getString(14);
285 286
                String obsoletedBy = rs.getString(15);
286 287
                serialVersion = new BigInteger(rs.getString(16));
288
                archived = new Boolean(rs.getBoolean(17));
287 289

  
288

  
289 290
                Identifier sysMetaId = new Identifier();
290 291
                sysMetaId.setValue(guid);
291 292
                sysMeta.setIdentifier(sysMetaId);
......
326 327
		            obsoletedById.setValue(obsoletedBy);
327 328
		            sysMeta.setObsoletedBy(obsoletedById);
328 329
                }
330
                sysMeta.setArchived(archived);
329 331
                stmt.close();
330 332
            } 
331 333
            else

Also available in: Unified diff