Class DataSourceInfoSQLite
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.storage.sqlite.DataSourceInfoSQLite
- All Implemented Interfaces:
IDataSourceInfo
Represents the data needed to connect to a
SQLite DataSource.-
Nested Class Summary
Nested classes/interfaces inherited from interface IDataSourceInfo
IDataSourceInfo.Type -
Field Summary
Fields inherited from interface IDataSourceInfo
DB_MIGRATION_LOCATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidBacks up the database.voidconfigureFlyway(org.flywaydb.core.api.configuration.FluentConfiguration config) Updates the Flyway configuration with configuration specific to the DataSource.org.sqlite.SQLiteDataSourceGets the DataSource.getType()Gets the type of the DataSource.getUrl()toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IDataSourceInfo
getMigrationFilesLocation
-
Constructor Details
-
DataSourceInfoSQLite
-
-
Method Details
-
configureFlyway
public void configureFlyway(org.flywaydb.core.api.configuration.FluentConfiguration config) Description copied from interface:IDataSourceInfoUpdates 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:
configureFlywayin interfaceIDataSourceInfo- Parameters:
config- The Flyway configuration to update.
-
getType
Description copied from interface:IDataSourceInfoGets the type of the DataSource.- Specified by:
getTypein interfaceIDataSourceInfo- Returns:
- The type of the DataSource.
-
backupDatabase
public void backupDatabase()Description copied from interface:IDataSourceInfoBacks up the database.This method is optional for implementations.
On implementations that do not support this method, this method should do nothing.
- Specified by:
backupDatabasein interfaceIDataSourceInfo
-
toString
-
getDataSource
public org.sqlite.SQLiteDataSource getDataSource()Description copied from interface:IDataSourceInfoGets the DataSource.- Specified by:
getDataSourcein interfaceIDataSourceInfo- Returns:
- The DataSource.
-
getUrl
-