Opening Derby database from a Path (not a File, not a String)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Opening Derby database from a Path (not a File, not a String)

Hi all.

A while ago I opened this ticket to allow opening a database from an NIO2 Path.


I want to be able to open from a Path because everything other file we
modify is done via a Path, allowing more universal abstraction of
where the data actually goes.

Does anyone else on the mailing list have any creative workarounds
which might work well enough until the improvement itself is

To re-summarise the problems:

* Path cannot be reversibly converted to String.

* BasicEmbeddedDataSource40 forces me to provide the databaseName
  as a String.

* Even if I somehow found a way to pack the Path into the additional
  options for the connection,
  StorageFactory#init(String, String, String, String) only passes through
  basic information, not giving me access to the additional options.