java.sql
Interface QueryObjectGenerator


public interface QueryObjectGenerator

This interface is provided for JDBC driver vendors who choose to provide their own implementation of QueryObjectGenerator to process the standard JDBC annotations and provide the mapping between a DataSet and the underlying data store. A reference implementation of QueryObjectGenerator is provided with J2SE.

Since:
1.6

Method Summary
<T> T
createQueryObject(Class<T> ifc, Connection con)
          Creates a concrete implementation of a Query interface using the JDBC drivers QueryObjectGenerator implementation.
<T> T
createQueryObject(Class<T> ifc, javax.sql.DataSource ds)
          Creates a concrete implementation of a Query interface using the JDBC drivers QueryObjectGenerator implementation.
 

Method Detail

createQueryObject

<T> T createQueryObject(Class<T> ifc,
                        javax.sql.DataSource ds)
                    throws SQLException
Creates a concrete implementation of a Query interface using the JDBC drivers QueryObjectGenerator implementation.

Parameters:
ifc - The Query interface that will be created
ds - The DataSource that will be used when invoking methods that accesss the data source
Returns:
An concrete implementation of a Query interface
Throws:
SQLException - if a database access error occurs.
Since:
1.6

createQueryObject

<T> T createQueryObject(Class<T> ifc,
                        Connection con)
                    throws SQLException
Creates a concrete implementation of a Query interface using the JDBC drivers QueryObjectGenerator implementation.

Parameters:
ifc - The Query interface that will be created
con - The Connection that will be used when invoking methods that accesss the data source
Returns:
An concrete implementation of a Query interface
Throws:
SQLException - if a database access error occurs.
Since:
1.6