Interface LocalBootable

  • All Known Implementing Classes:
    DefaultLocalBootable

    public interface LocalBootable
    An interface that is implemented by an object that boots up the database. This is provided as an interface so that we aren't dependant on the entire database when compiling the JDBC code.
    Author:
    Tobias Downer
    • Method Detail

      • create

        DatabaseInterface create​(java.lang.String username,
                                 java.lang.String password,
                                 DBConfig config)
                          throws java.sql.SQLException
        Attempts to create a new database system with the given name, and the given username/password as the admin user for the system. Once created, the newly created database will be booted up.
        Parameters:
        config - the configuration variables.
        Throws:
        java.sql.SQLException
      • boot

        DatabaseInterface boot​(DBConfig config)
                        throws java.sql.SQLException
        Boots the database with the given configuration.
        Parameters:
        config - the configuration variables.
        Throws:
        java.sql.SQLException
      • checkExists

        boolean checkExists​(DBConfig config)
                     throws java.sql.SQLException
        Attempts to test if the database exists or not. Returns true if the database exists.
        Parameters:
        config - the configuration variables.
        Throws:
        java.sql.SQLException
      • isBooted

        boolean isBooted()
                  throws java.sql.SQLException
        Returns true if there is a database currently booted in the current JVM. Otherwise returns false.
        Throws:
        java.sql.SQLException
      • connectToJVM

        DatabaseInterface connectToJVM()
                                throws java.sql.SQLException
        Connects this interface to the database currently running in this JVM.
        Throws:
        java.sql.SQLException