# JDBC support for Java SE 8 Compact Profiles

Derby provides support for Compact Profiles on the Java SE 8 platform by means of a group of JDBC DataSource classes.

These DataSource classes cannot be used in applications that use the Java Naming and Directory Interface (JNDI) API. Otherwise, they are just like the versions for the full Java SE platform.

Applications using Java SE 8 Compact Profile 2 must use these classes. Applications using Java SE 8 Compact Profile 3 can use the ordinary DataSource classes. (Compact Profile 1 does not provide any JDBC support, so Derby does not support it.)

The following DataSource classes are required for use with Java SE 8 Compact Profile 2:

- org.apache.derby.jdbc.BasicEmbeddedDataSource40
- org.apache.derby.jdbc.BasicEmbeddedConnectionPoolDataSource40
- org.apache.derby.jdbc.BasicEmbeddedXADataSource40

- org.apache.derby.jdbc.BasicClientDataSource40
- org.apache.derby.jdbc.BasicClientConnectionPoolDataSource40
- org.apache.derby.jdbc.BasicClientXADataSource40

Parent topic: JDBC 4.2-only features
Related reference
java.sql.DatabaseMetaData interface: JDBC 4.2 features
java.sql.SQLType interface