net.spy.db
Interface QuerySelector

All Known Implementing Classes:
DatabaseMetaDataQuerySelector

public interface QuerySelector

Select the most appropriate query for the given DBSQL instance.


Field Summary
static String DEFAULT_QUERY
          Name of the default query in the map.
 
Method Summary
 String getQuery(Connection conn, Map<String,String> queryMap)
          Get the query for the given connection.
 

Field Detail

DEFAULT_QUERY

static final String DEFAULT_QUERY
Name of the default query in the map.

See Also:
Constant Field Values
Method Detail

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 query
queryMap - 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.