org.jasig.portal.rdbm
Interface IJoinQueryString

All Known Implementing Classes:
DatabaseMetaDataImpl.JdbcDb, DatabaseMetaDataImpl.OracleDb, DatabaseMetaDataImpl.PostgreSQLDb, JoinQueryString

public interface IJoinQueryString

The join query interface defines methods for storing and retrieving queries fragments that will be used for performing joins in SQL.

Version:
$Revision: 1.3 $ $Date: 2004/10/17 19:43:50 $
Author:
Eric Dalquist edalquist@unicon.net

Method Summary
 void addQuery(java.lang.String key, java.lang.String value)
          Adds a query for the specified key, overwriting and query that was already associated with the key.
 java.lang.String getQuery(java.lang.String key)
          Gets a query by the specified key.
 

Method Detail

getQuery

java.lang.String getQuery(java.lang.String key)
                          throws java.sql.SQLException
Gets a query by the specified key.

Parameters:
key - The key to find the query for.
Returns:
The query for the key.
Throws:
java.sql.SQLException - Will be thrown if no query exists for the key

addQuery

void addQuery(java.lang.String key,
              java.lang.String value)
              throws java.sql.SQLException
Adds a query for the specified key, overwriting and query that was already associated with the key.

Parameters:
key - The key to store the query under.
value - The query to store under the key.
Throws:
java.sql.SQLException