Uses of Interface
com.tccc.kos.commons.db.DatabaseMigrator
Packages that use DatabaseMigrator
Package
Description
Provides classes and interfaces that handle database creation, database access,
and schema upgrading/downgrading.
Provides the abstract KosApplication class, which all kOS apps derive from.
-
Uses of DatabaseMigrator in com.tccc.kos.commons.db
Classes in com.tccc.kos.commons.db that implement DatabaseMigratorMethods in com.tccc.kos.commons.db that return DatabaseMigratorModifier and TypeMethodDescriptionDatabaseFactory.migrate
(DatabaseMigrator migrator, String name, File dir) This is a convenience method that simply callsgetDataSource()
and then returns the migrator.Methods in com.tccc.kos.commons.db with parameters of type DatabaseMigratorModifier and TypeMethodDescriptionDatabaseFactory.getDataSource
(DatabaseMigrator migrator, String name, File dir) Creates aDataSource
for the specified database file in the specified directory.DatabaseFactory.getJdbi
(DatabaseMigrator migrator, String name, File dir) Wrapper forgetDataSource
that returnsJdbi
instance instead.DatabaseFactory.migrate
(DatabaseMigrator migrator, String name, File dir) This is a convenience method that simply callsgetDataSource()
and then returns the migrator. -
Uses of DatabaseMigrator in com.tccc.kos.core.service.app
Methods in com.tccc.kos.core.service.app with parameters of type DatabaseMigratorModifier and TypeMethodDescriptionApplication.openDatabase
(String name, DatabaseMigrator migrator) Opens or creates a database with the specified name in the local storage area of the application.