copy Database
Duplicates the database into a new database with the supplied name and directory. Assumes that the source database has no active connections and performs a file system copy
Parameters
the path to the database that needs duplicating
the name of the duplicate database
the directory to place the database in
Uses an active database connection and derby system commands to freeze the database, uses system OS commands to copy the database, and then unfreezes the database. The duplicate name and directory path must not already exist
Parameters
a DataSource to the embedded derby database, obviously it must point to the derby database
the path to the source database
the name of the duplicate database, obviously it must reference the same database that is referenced by the DataSource
the directory to place the database in
Throws
thrown if the derby commands fail
thrown if the system file copy commands fail