code: public Set<String> getLockedNodesIds() throws SQLException
     {
        Set<String> lockedNodesIds = new HashSet<String>();
  
        ResultSet resultSet = null;
        PreparedStatement preparedStatement = null;
  
        Connection jdbcConnection = openConnection();
        try
        {
           InspectionQuery query = getSelectQuery();
  
           preparedStatement = jdbcConnection.prepareStatement(query.getStatement());
           resultSet = preparedStatement.executeQuery();
  
           while (resultSet.next())
           {
              String idColumn = query.getFieldNames()[0];
              String idValue = resultSet.getString(idColumn);
  
              lockedNodesIds.add(extractNodeId(idValue));
           }
        }
        finally
        {
           JDBCUtils.freeResources(resultSet, preparedStatement, jdbcConnection);
        }
  
        return lockedNodesIds;
     }
docs: {@inheritDoc}