Package ca.phon.query.db
Class QueryManager
java.lang.Object
ca.phon.query.db.QueryManager
- Direct Known Subclasses:
XMLQueryManager
A factory class that returns
QueryFactory
and
ResultSetManager
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract QueryFactory
Create an instance of QueryFactoryabstract ResultSetManager
Create an instance of ResultSetManagerstatic QueryManager
Gets an instance of aQueryManager
.static QueryManager
Return the sharedinvalid @link
{@link QueryManager) instance
abstract Query
loadQuery
(InputStream stream) Load query from given streamabstract Query
Load query from given path.abstract void
Save a query description to the given path.
-
Constructor Details
-
QueryManager
public QueryManager()
-
-
Method Details
-
getInstance
Gets an instance of aQueryManager
.- Returns:
- a newly created
QueryManager
, ornull
if one could not be found
-
createQueryFactory
Create an instance of QueryFactory- Returns:
- a QueryFactory instance
-
saveQuery
Save a query description to the given path.- Parameters:
query
-path
-- Throws:
IOException
-
loadQuery
Load query from given path.- Parameters:
path
-- Returns:
- the loaded Query
- Throws:
IOException
-
loadQuery
Load query from given stream- Parameters:
stream
-- Returns:
- the loaded Query
- Throws:
IOException
-
createResultSetManager
Create an instance of ResultSetManager- Returns:
- a ResultSetManager instance