Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Unused method removed

  • Loading branch information...
commit 73ffda057fec82d6220d3fda437ed2934c2c757a 1 parent 4750007
@carlasouza carlasouza authored
View
58 service/service/java/source/src/org/globus/workspace/persistence/PersistenceAdapterImpl.java
@@ -870,64 +870,6 @@ private void removeGroupOrEnsemble(String id)
}
}
- public List<ResourceEntry> findWorkspacesBasicInformation() throws WorkspaceDatabaseException, SQLException {
-
- if (this.dbTrace) {
- logger.trace("findActiveWorkspacesIDs()");
- }
-
- Connection c = null;
- PreparedStatement pstmt = null;
- ResultSet rs = null;
- try {
- c = getConnection();
- pstmt = c.prepareStatement(SQL_SELECT_RESOURCE_BASIC_INFORMATION);
- rs = pstmt.executeQuery();
-
-
- if (rs == null || !rs.next())
- return null;
-
- final ArrayList<ResourceEntry> results = new ArrayList<ResourceEntry>();
- do {
-
- Integer id = new Integer(rs.getInt(1));
- String name = rs.getString(2);
- Integer state = new Integer(rs.getInt(3));
-
- ResourceEntry res = new ResourceEntry(id);
- res.setName(id);
- res.setState(state);
-
- results.add(res);
- if (this.dbTrace) {
- logger.trace("found id: " + id);
- }
- } while (rs.next());
-
-
- return results;
-
- } catch (SQLException e) {
- logger.error("",e);
- throw new WorkspaceDatabaseException(e);
- } finally {
- try {
- if (rs != null) {
- rs.close();
- }
- if (pstmt != null) {
- pstmt.close();
- }
- if (c != null) {
- returnConnection(c);
- }
- } catch (SQLException sql) {
- logger.error("SQLException in finally cleanup", sql);
- }
- }
- }
-
public boolean isActiveWorkspaceID(int id)
throws WorkspaceDatabaseException {
Please sign in to comment.
Something went wrong with that request. Please try again.