Working with the database connection URL attributes

You specify attributes on the Derby connection URL.

The examples in this section use the syntax of the connection URL for use in an embedded environment. You can also specify these same attributes and values on the client connection URL if you are using Derby as a database server. For more information, see the Derby Server and Administration Guide.

You can also set these attributes by passing a Properties object along with a connection URL to DriverManager.getConnection when obtaining a connection; see Specifying attributes in a properties object. If you specify any attributes both on the connection URL and in a Properties object, the attributes on the connection URL override the attributes in the Properties object.

All attributes are optional.

For more information on working with connection URL attributes, see the following:

For complete information about the attributes, see "Setting attributes for the database connection URL" in the Derby Reference Manual.

For detailed information about the connection URL syntax, see "Syntax of database connection URLs for applications with embedded databases" in the Derby Reference Manual.

Related concepts
Derby JDBC driver
Derby JDBC database connection URL
Derby system
A Derby database
Connecting to databases