Class DatabaseConfiguration


  • public final class DatabaseConfiguration
    extends java.lang.Object
    Configuration for opening a database.
    • Constructor Detail

      • DatabaseConfiguration

        public DatabaseConfiguration()
    • Method Detail

      • setDirectory

        @NonNull
        public DatabaseConfiguration setDirectory​(@NonNull
                                                  java.lang.String directory)
        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
        Parameters:
        directory - the directory
        Returns:
        this.
        Throws:
        java.lang.IllegalStateException - if the directory does not exist anc cannot be created
      • getDirectory

        @NonNull
        public java.lang.String getDirectory()
        Returns the path to the directory that contains the database. If this path has not been set explicitly (see: setDirectory below), then it is the system default.
        Returns:
        the database directory