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.

Related reference
Refined subclasses of SQLException
java.sql.Connection
java.sql.DatabaseMetaData
java.sql.Statement