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.
| Method Summary | ||
|---|---|---|
|
createQueryObject(Class<T> ifc,
Connection con)
Creates a concrete implementation of a Query interface using the JDBC drivers QueryObjectGenerator
implementation. |
|
|
createQueryObject(Class<T> ifc,
javax.sql.DataSource ds)
Creates a concrete implementation of a Query interface using the JDBC drivers QueryObjectGenerator
implementation. |
|
| Method Detail |
|---|
<T> T createQueryObject(Class<T> ifc,
javax.sql.DataSource ds)
throws SQLException
QueryObjectGenerator
implementation.
ifc - The Query interface that will be createdds - The DataSource that will be used when invoking methods that accesss
the data source
SQLException - if a database access error occurs.
<T> T createQueryObject(Class<T> ifc,
Connection con)
throws SQLException
QueryObjectGenerator
implementation.
ifc - The Query interface that will be createdcon - The Connection that will be used when invoking methods that accesss
the data source
SQLException - if a database access error occurs.