setDirectory
Set the canonical path of the directory to store the database in. If the directory doesn't already exist it will be created. If it cannot be created throw an IllegalStateException
Return
this.
Parameters
directory
the directory
Throws
if the directory does not exist anc cannot be created