Class DataSourceInfoSQLite

java.lang.Object
nl.pim16aap2.animatedarchitecture.core.storage.sqlite.DataSourceInfoSQLite
All Implemented Interfaces:
IDataSourceInfo

public class DataSourceInfoSQLite extends Object implements IDataSourceInfo
Represents the data needed to connect to a SQLite DataSource.
  • Constructor Details

    • DataSourceInfoSQLite

      @Inject public DataSourceInfoSQLite(@Named("databaseFile") Path databasePath)
  • Method Details

    • configureFlyway

      public void configureFlyway(org.flywaydb.core.api.configuration.FluentConfiguration config)
      Description copied from interface: IDataSourceInfo
      Updates the Flyway configuration with configuration specific to the DataSource.

      By default, this method sets the DataSource and the location of the migration files.

      Specified by:
      configureFlyway in interface IDataSourceInfo
      Parameters:
      config - The Flyway configuration to update.
    • getType

      public IDataSourceInfo.Type getType()
      Description copied from interface: IDataSourceInfo
      Gets the type of the DataSource.
      Specified by:
      getType in interface IDataSourceInfo
      Returns:
      The type of the DataSource.
    • backupDatabase

      public void backupDatabase()
      Description copied from interface: IDataSourceInfo
      Backs up the database.

      This method is optional for implementations.

      On implementations that do not support this method, this method should do nothing.

      Specified by:
      backupDatabase in interface IDataSourceInfo
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDataSource

      public org.sqlite.SQLiteDataSource getDataSource()
      Description copied from interface: IDataSourceInfo
      Gets the DataSource.
      Specified by:
      getDataSource in interface IDataSourceInfo
      Returns:
      The DataSource.
    • getUrl

      public String getUrl()