Class QueryManager

java.lang.Object
ca.phon.query.db.QueryManager
Direct Known Subclasses:
XMLQueryManager

public abstract class QueryManager extends Object
A factory class that returns QueryFactory and ResultSetManager instances.
  • Constructor Details

    • QueryManager

      public QueryManager()
  • Method Details

    • getSharedInstance

      public static QueryManager getSharedInstance()
      Return the shared
      invalid @link
      {@link QueryManager) instance
      Returns:
      the shared instance
    • getInstance

      public static QueryManager getInstance()
      Gets an instance of a QueryManager.
      Returns:
      a newly created QueryManager, or null if one could not be found
    • createQueryFactory

      public abstract QueryFactory createQueryFactory()
      Create an instance of QueryFactory
      Returns:
      a QueryFactory instance
    • saveQuery

      public abstract void saveQuery(Query query, String path) throws IOException
      Save a query description to the given path.
      Parameters:
      query -
      path -
      Throws:
      IOException
    • loadQuery

      public abstract Query loadQuery(String path) throws IOException
      Load query from given path.
      Parameters:
      path -
      Returns:
      the loaded Query
      Throws:
      IOException
    • loadQuery

      public abstract Query loadQuery(InputStream stream) throws IOException
      Load query from given stream
      Parameters:
      stream -
      Returns:
      the loaded Query
      Throws:
      IOException
    • createResultSetManager

      public abstract ResultSetManager createResultSetManager()
      Create an instance of ResultSetManager
      Returns:
      a ResultSetManager instance