net.spy.db
Interface QuerySelector
- All Known Implementing Classes:
- DatabaseMetaDataQuerySelector
public interface QuerySelector
Select the most appropriate query for the given DBSQL instance.
DEFAULT_QUERY
static final String DEFAULT_QUERY
- Name of the default query in the map.
- See Also:
- Constant Field Values
getQuery
String getQuery(Connection conn,
Map<String,String> queryMap)
throws SQLException
- Get the query for the given connection.
- Parameters:
conn - the connection that wants the queryqueryMap - the Map of queries by name
- Returns:
- the query (as a String), null if a suitable query can't be found
- Throws:
SQLException
Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.