For applications with embedded databases, the syntax of the database connection URL is
jdbc:derby:[subsubprotocol:][databaseName][;attributes]*
In JDBC terminology, derby is the subprotocol for connecting to a Derby database. The subprotocol is always derby and does not vary.
subsubprotocol specifies where Derby looks for a database: in a directory, in memory, in a classpath, or in a jar file. subsubprotocol is one of the following:
jar requires an additional element immediately before the database name:
(pathToArchive)
pathToArchive is the path to the jar or zip file that holds the database.
Specify the databaseName to connect to an existing database or a new one.
You can specify the database name alone, or with a relative or absolute path. See "Connecting to databases" and its subsections in the Derby Developer's Guide.
Specify zero or more database connection URL attributes as detailed in Attributes of the Derby database connection URL.