JavaMigrator constructor.
JavaMigrator constructor.
the JDBC URL to connect to the database
the username to log into the database
the password associated with the database username
a concrete DatabaseAdapter that the migrator uses to handle database specific features
JavaMigrator constructor.
JavaMigrator constructor.
the JDBC URL to connect to the database
a concrete DatabaseAdapter that the migrator uses to handle database specific features
JavaMigrator constructor.
JavaMigrator constructor.
a builder of connections to the database
a concrete DatabaseAdapter that the migrator uses to handle database specific features
Get a list of table names.
Get a list of table names. If the database adapter was given a schema name then only the tables in that schema are returned.
a set of table names; no modifications of the case of table names is done
Install all available migrations into the database.
Install all available migrations into the database.
the package name that the Migration subclasses should be searched for
true if sub-packages of packageName should be searched
Migrate the database to the given version.
Migrate the database to the given version.
the version number the database should be migrated to
the package name that the Migration subclasses should be searched for
true if sub-packages of packageName should be searched
Remove all installed migrations from the database.
Remove all installed migrations from the database.
the package name that the Migration subclasses should be searched for
true if sub-packages of packageName should be searched
Rollback a given number of migrations in the database.
Rollback a given number of migrations in the database.
the number of migrations to rollback to
the package name that the Migration subclasses should be searched for
true if sub-packages of packageName should be searched
Determine if the database has all available migrations installed in it and no migrations installed that do not have a corresponding concrete Migration subclass; that is, the database must have only those migrations installed that are found by searching the package name for concrete Migration subclasses.
Determine if the database has all available migrations installed in it and no migrations installed that do not have a corresponding concrete Migration subclass; that is, the database must have only those migrations installed that are found by searching the package name for concrete Migration subclasses.
Running this method does not modify the database in any way. The schema migrations table is not created.
the Java package name to search for Migration subclasses
true if sub-packages of packageName should be searched
null if all available migrations are installed and all installed migrations have a corresponding Migration subclass; a non-null message suitable for logging with the not-installed migrations and the installed migrations that do not have a matching Migration subclass
The Scala Migrator class uses Scala case classes in its public constructors and public methods which makes it difficult to use from a pure Java environment. This class exposes a Java-style interface and delegates to the Scala Migrator class.