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 java.lang.String DEFAULT_QUERY
          Name of the default query in the map.
 
Method Summary
 java.lang.String getQuery(java.sql.Connection conn, java.util.Map<java.lang.String,java.lang.String> queryMap)
          Get the query for the given connection.
 

Field Detail

DEFAULT_QUERY

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

See Also:
Constant Field Values
Method Detail

getQuery

java.lang.String getQuery(java.sql.Connection conn,
                          java.util.Map<java.lang.String,java.lang.String> queryMap)
                          throws java.sql.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:
java.sql.SQLException


Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.