# javax.sql.DataSource

JDBC 4.0 introduces a simpler mechanism for iterating through a table. You use this mechanism by passing an annotated query to your DataSource's createQueryObject method. To expose this createQueryObject method, Derby adds new JDBC 4.0-specific DataSources. Use these DataSources if your application runs on JDK 1.6 or higher.

- org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource40
- org.apache.derby.jdbc.EmbeddedDataSource40
- org.apache.derby.jdbc.EmbeddedDriver
- org.apache.derby.jdbc.EmbeddedXADataSource40
- org.apache.derby.jdbc.ClientConnectionPoolDataSource40
- org.apache.derby.jdbc.ClientDataSource40
- org.apache.derby.jdbc.ClientDriver
- org.apache.derby.jdbc.ClientXADataSource40

Parent topic: JDBC 4.0-only features
Related reference
Refined subclasses of SQLException
java.sql.Connection
java.sql.DatabaseMetaData
java.sql.Statement