| public class java.sql QueryObjectFactory
|
Java SE 6 |
QueryObjectGenerator
that is provided with Java SE.
This class can also be used with JDBC drivers which do not provide QueryObjectGenerator
implementations.
| since | 1.6 |
| Constructors | |
|---|---|
| public | QueryObjectFactory() |
| Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public static BaseQuery<T> | createDefaultQueryObject(Class ifc, DataSource ds) throws SQLException Details
Creates a concrete implementation of a Query interface using the Java SE QueryObjectGenerator
implementation.
| ||||||||||
| public static BaseQuery<T> | createDefaultQueryObject(Class ifc, Connection con) throws SQLException Details
Creates a concrete implementation of a Query interface using the Java SE QueryObjectGenerator
implementation.
| ||||||||||
| public static BaseQuery<T> | createQueryObject(Class ifc, DataSource ds) throws SQLException Details
Creates a concrete implementation of a Query interface using the JDBC driver's QueryObjectGenerator
implementation. This method will attempt to invoke DataSource.createQueryObject() and if the
method does not exist on the DataSource, createDefaultQueryObject will be invoked
to create the concrete implementation of a Query interface.
| ||||||||||
| public static BaseQuery<T> | createQueryObject(Class ifc, Connection con) throws SQLException Details
Creates a concrete implementation of a Query interface using the JDBC driver's QueryObjectGenerator
implementation. This method will attempt to invoke Connection.createQueryObject() and if the
method does not exist on the Connection, createDefaultQueryObject will be invoked
to create the concrete implementation of a Query interface.
| ||||||||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2009 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|