Interface ResultSetManager

All Known Implementing Classes:
XMLResultSetManager

public interface ResultSetManager
An interface used for anything that manages the retrieval and storage of queries and result sets from a project.
  • Method Details

    • getQueries

      List<Query> getQueries(Project project)
      Gets a list of queries for a specified project.
      Parameters:
      project - the project
      Returns:
      a list of queries for the given project
    • getResultSetsForQuery

      List<ResultSet> getResultSetsForQuery(Project project, Query query)
      Gets a list of result sets for a specified query and project.
      Parameters:
      project - the project
      query - the query
      Returns:
      the list of result sets for a given query of the given project
    • saveQuery

      void saveQuery(Project project, Query query) throws IOException
      Saves a query in the specified project.
      Parameters:
      project - the project
      query - the query
      Throws:
      IOException - if the query could not be saved
    • loadQuery

      Query loadQuery(Project project, String queryName) throws IOException
      Loads a given query from the specified project.
      Parameters:
      project - the project
      queryName - the query name
      Returns:
      the query, if successfully loaded
      Throws:
      IOException - if the query could not be loaded
    • saveResultSet

      void saveResultSet(Project project, Query query, ResultSet resultSet) throws IOException
      Saves a query's result set in the specified project.
      Parameters:
      project - the project
      query - the query
      resultSet - the result set
      Throws:
      IOException - if the result set could not be saved
    • loadResultSet

      ResultSet loadResultSet(Project project, Query query, String sessionName) throws IOException
      Loads a given result set for a query from the specified project.
      Parameters:
      project - the project
      query - the query
      sessionName - the session name
      Returns:
      the result set, if successfully loaded
      Throws:
      IOException - if the result set could not be loaded
    • deleteQuery

      void deleteQuery(Project project, Query query) throws IOException
      Delete the given query from the specified project. This will also delete all associated result sets.
      Parameters:
      project -
      query -
      Throws:
      IOException - if the query is not found or could not be removed from the storage device.
    • deleteResultSet

      void deleteResultSet(Project project, Query query, ResultSet resultset) throws IOException
      Delete the specified result set from the given project and query.
      Parameters:
      project -
      query -
      resultset -
      Throws:
      IOException - if the resultset/query is not found or could not be removed from the storage device.
    • renameQuery

      void renameQuery(Project project, Query query, String newName) throws IOException
      Re-name the specified query. query.setName() should not be called before using the method!
      Parameters:
      project -
      query -
      newName -
      Throws:
      IOException - if the query folder could not be re-named.