Changeset 9851 for branches/ant-install-branch/gsdl3/src/java/org/greenstone/gsdl3/gs3build/metadata/METSStructureSet.java
- Timestamp:
- 2005-05-10T15:54:21+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ant-install-branch/gsdl3/src/java/org/greenstone/gsdl3/gs3build/metadata/METSStructureSet.java
r8742 r9851 158 158 select.setWhere(new GS3SQLWhere(whereItem)); 159 159 connection.execute(select.toString()); 160 // clone the connection cos we are still usign the old result set 161 GS3SQLConnection cloned_connection = connection.cloneConnection(); 160 162 161 163 // start going through the matching metadata blocks … … 164 166 resultSet.first(); 165 167 do { 166 METSStructure structure = METSStructure.readSQL(document, c onnection, resultSet);168 METSStructure structure = METSStructure.readSQL(document, cloned_connection, resultSet); 167 169 if (structure != null) { 168 170 set.addStructure(structure); 169 171 } 170 172 } while (resultSet.next()); 173 cloned_connection.close(); 174 cloned_connection = null; 171 175 } 172 176 catch (SQLException sqlEx) { 173 177 System.out.println(sqlEx); 178 sqlEx.printStackTrace(); 174 179 System.exit(1); 175 180 }
Note:
See TracChangeset
for help on using the changeset viewer.