A B C D E F G H I J L M N O P R S T V

A

allAppliedMigrations() - Method in class com.googlecode.flyway.core.runtime.MetaDataTable
 
assertNotFailed() - Method in class com.googlecode.flyway.core.migration.Migration
Asserts that this migration has not failed.

B

BaseJavaMigration - Class in com.googlecode.flyway.core.migration.java
Base class for java migration classes whose name conforms to the Flyway standard.
BaseJavaMigration() - Constructor for class com.googlecode.flyway.core.migration.java.BaseJavaMigration
Initializes this Migration with this standard Flyway name.
BaseMigration - Class in com.googlecode.flyway.core.migration
Base migration for migrations that use the standard Flyway version + description embedding in their name.
BaseMigration() - Constructor for class com.googlecode.flyway.core.migration.BaseMigration
 

C

CalculateChecksum - Class in com.googlecode.flyway.core.util
Calculates checksum for sql migrations.
calculateChecksum(String) - Static method in class com.googlecode.flyway.core.util.ResourceUtils
 
checkForNewDelimiter(String) - Method in class com.googlecode.flyway.core.dbsupport.mysql.MySQLSqlScript
 
checkForNewDelimiter(String) - Method in class com.googlecode.flyway.core.dbsupport.oracle.OracleSqlScript
 
checkForNewDelimiter(String) - Method in class com.googlecode.flyway.core.migration.sql.SqlScript
Checks whether this line in the sql script indicates that the statement delimiter will be different from the default one.
checksum - Variable in class com.googlecode.flyway.core.migration.Migration
The crc-32 checksum of the script.
checksum(String) - Static method in class com.googlecode.flyway.core.util.CalculateChecksum
Computes the checksum of a classpath resource using.
checksum(String, Checksum) - Static method in class com.googlecode.flyway.core.util.CalculateChecksum
Computes the checksum of a classpath resource using the specified checksum object.
checksum(Resource) - Static method in class com.googlecode.flyway.core.util.ResourceUtils
Computes the checksum of a classpath resource using.
checksum(Resource, Checksum) - Static method in class com.googlecode.flyway.core.util.ResourceUtils
Computes the checksum of a classpath resource using the specified checksum object.
clean() - Method in class com.googlecode.flyway.core.Flyway
Drops all object in the schema.
clean() - Method in class com.googlecode.flyway.core.runtime.DbCleaner
Cleans the schema of all objects.
closeQuietly(InputStream) - Static method in class com.googlecode.flyway.core.util.CalculateChecksum
Unconditionally close an InputStream.
closeQuietly(InputStream) - Static method in class com.googlecode.flyway.core.util.ResourceUtils
Unconditionally close an InputStream.
closeQuietly(Reader) - Static method in class com.googlecode.flyway.core.util.ResourceUtils
Unconditionally close an Reader.
com.googlecode.flyway.core - package com.googlecode.flyway.core
 
com.googlecode.flyway.core.dbsupport - package com.googlecode.flyway.core.dbsupport
 
com.googlecode.flyway.core.dbsupport.h2 - package com.googlecode.flyway.core.dbsupport.h2
 
com.googlecode.flyway.core.dbsupport.hsql - package com.googlecode.flyway.core.dbsupport.hsql
 
com.googlecode.flyway.core.dbsupport.mysql - package com.googlecode.flyway.core.dbsupport.mysql
 
com.googlecode.flyway.core.dbsupport.oracle - package com.googlecode.flyway.core.dbsupport.oracle
 
com.googlecode.flyway.core.migration - package com.googlecode.flyway.core.migration
 
com.googlecode.flyway.core.migration.java - package com.googlecode.flyway.core.migration.java
 
com.googlecode.flyway.core.migration.sql - package com.googlecode.flyway.core.migration.sql
 
com.googlecode.flyway.core.runtime - package com.googlecode.flyway.core.runtime
 
com.googlecode.flyway.core.util - package com.googlecode.flyway.core.util
 
compareTo(Migration) - Method in class com.googlecode.flyway.core.migration.Migration
 
compareTo(SchemaVersion) - Method in class com.googlecode.flyway.core.migration.SchemaVersion
 
copyLarge(InputStream, OutputStream) - Static method in class com.googlecode.flyway.core.util.CalculateChecksum
Copy bytes from a large (over 2GB) InputStream to an OutputStream.
copyLarge(InputStream, OutputStream) - Static method in class com.googlecode.flyway.core.util.ResourceUtils
Copy bytes from a large (over 2GB) InputStream to an OutputStream.
createCleanScript(JdbcTemplate) - Method in interface com.googlecode.flyway.core.dbsupport.DbSupport
Creates a new sql script which clean the current schema, by dropping all objects.
createCleanScript(JdbcTemplate) - Method in class com.googlecode.flyway.core.dbsupport.h2.H2DbSupport
 
createCleanScript(JdbcTemplate) - Method in class com.googlecode.flyway.core.dbsupport.hsql.HsqlDbSupport
 
createCleanScript(JdbcTemplate) - Method in class com.googlecode.flyway.core.dbsupport.mysql.MySQLDbSupport
 
createCleanScript(JdbcTemplate) - Method in class com.googlecode.flyway.core.dbsupport.oracle.OracleDbSupport
 
createDbSupport(JdbcTemplate) - Static method in class com.googlecode.flyway.core.dbsupport.DbSupportFactory
Initializes the appropriate DbSupport class for the database product used by the data source.
createIfNotExists() - Method in class com.googlecode.flyway.core.runtime.MetaDataTable
Creates the metadata table if it doesn't already exist.
createInitialVersion(String, String) - Static method in class com.googlecode.flyway.core.migration.SchemaVersion
Creates an initial SchemaVersion using this version string.
createSqlScript(String, PlaceholderReplacer) - Method in interface com.googlecode.flyway.core.dbsupport.DbSupport
Creates a new sql script from this resource with these placeholders to replace.
createSqlScript(String, PlaceholderReplacer) - Method in class com.googlecode.flyway.core.dbsupport.h2.H2DbSupport
 
createSqlScript(String, PlaceholderReplacer) - Method in class com.googlecode.flyway.core.dbsupport.hsql.HsqlDbSupport
 
createSqlScript(String, PlaceholderReplacer) - Method in class com.googlecode.flyway.core.dbsupport.mysql.MySQLDbSupport
 
createSqlScript(String, PlaceholderReplacer) - Method in class com.googlecode.flyway.core.dbsupport.oracle.OracleDbSupport
 

D

DbCleaner - Class in com.googlecode.flyway.core.runtime
Main workflow for cleaning the database.
DbCleaner(TransactionTemplate, JdbcTemplate, DbSupport) - Constructor for class com.googlecode.flyway.core.runtime.DbCleaner
Creates a new database cleaner.
DbMigrator - Class in com.googlecode.flyway.core.runtime
Main workflow for migrating the database.
DbMigrator(TransactionTemplate, JdbcTemplate, DbSupport, Collection<MigrationResolver>, MetaDataTable) - Constructor for class com.googlecode.flyway.core.runtime.DbMigrator
Creates a new database migrator.
DbSupport - Interface in com.googlecode.flyway.core.dbsupport
Abstraction for database-specific functionality.
DbSupportFactory - Class in com.googlecode.flyway.core.dbsupport
Factory for obtaining the correct DbSupport instance for the current connection.
doMigrate(TransactionTemplate, JdbcTemplate, DbSupport) - Method in class com.googlecode.flyway.core.migration.java.BaseJavaMigration
Performs the migration.
doMigrate(TransactionTemplate, JdbcTemplate, DbSupport) - Method in class com.googlecode.flyway.core.migration.Migration
Performs the migration.
doMigrate(TransactionTemplate, JdbcTemplate, DbSupport) - Method in class com.googlecode.flyway.core.migration.sql.SqlMigration
 
doMigrateInTransaction(JdbcTemplate) - Method in class com.googlecode.flyway.core.migration.java.BaseJavaMigration
Performs the migration inside a transaction.

E

EMPTY - Static variable in class com.googlecode.flyway.core.migration.SchemaVersion
Schema version for an empty schema.
equals(Object) - Method in class com.googlecode.flyway.core.migration.SchemaVersion
 
execute(TransactionTemplate, JdbcTemplate) - Method in class com.googlecode.flyway.core.migration.sql.SqlScript
Executes this script against the database.
execute(JdbcTemplate) - Method in class com.googlecode.flyway.core.migration.sql.SqlStatement
Executes this statement against the database.
executionTime - Variable in class com.googlecode.flyway.core.migration.Migration
The time (in ms) it took to execute.

F

finishMigration(Migration) - Method in class com.googlecode.flyway.core.runtime.MetaDataTable
Persists the result of this migration.
Flyway - Class in com.googlecode.flyway.core
Central service locator.
Flyway() - Constructor for class com.googlecode.flyway.core.Flyway
 
format(long) - Static method in class com.googlecode.flyway.core.util.TimeFormat
Formats this execution time.

G

getChecksum() - Method in class com.googlecode.flyway.core.migration.Migration
 
getChecksum() - Method in class com.googlecode.flyway.core.migration.sql.SqlScript
 
getCreateMetaDataTableScriptLocation() - Method in interface com.googlecode.flyway.core.dbsupport.DbSupport
 
getCreateMetaDataTableScriptLocation() - Method in class com.googlecode.flyway.core.dbsupport.h2.H2DbSupport
 
getCreateMetaDataTableScriptLocation() - Method in class com.googlecode.flyway.core.dbsupport.hsql.HsqlDbSupport
 
getCreateMetaDataTableScriptLocation() - Method in class com.googlecode.flyway.core.dbsupport.mysql.MySQLDbSupport
 
getCreateMetaDataTableScriptLocation() - Method in class com.googlecode.flyway.core.dbsupport.oracle.OracleDbSupport
 
getCurrentSchema(JdbcTemplate) - Method in interface com.googlecode.flyway.core.dbsupport.DbSupport
Retrieves the current schema.
getCurrentSchema(JdbcTemplate) - Method in class com.googlecode.flyway.core.dbsupport.h2.H2DbSupport
 
getCurrentSchema(JdbcTemplate) - Method in class com.googlecode.flyway.core.dbsupport.hsql.HsqlDbSupport
 
getCurrentSchema(JdbcTemplate) - Method in class com.googlecode.flyway.core.dbsupport.mysql.MySQLDbSupport
 
getCurrentSchema(JdbcTemplate) - Method in class com.googlecode.flyway.core.dbsupport.oracle.OracleDbSupport
 
getDescription() - Method in class com.googlecode.flyway.core.migration.SchemaVersion
 
getExecutionTime() - Method in class com.googlecode.flyway.core.migration.Migration
 
getInstalledOn() - Method in class com.googlecode.flyway.core.migration.Migration
 
getLineNumber() - Method in class com.googlecode.flyway.core.migration.sql.SqlStatement
 
getScriptName() - Method in class com.googlecode.flyway.core.migration.Migration
 
getSql() - Method in class com.googlecode.flyway.core.migration.sql.SqlStatement
 
getSqlStatements() - Method in class com.googlecode.flyway.core.migration.sql.SqlScript
 
getState() - Method in class com.googlecode.flyway.core.migration.Migration
 
getVersion() - Method in class com.googlecode.flyway.core.migration.Migration
 
getVersion() - Method in class com.googlecode.flyway.core.migration.SchemaVersion
 

H

H2DbSupport - Class in com.googlecode.flyway.core.dbsupport.h2
H2 database specific support
H2DbSupport() - Constructor for class com.googlecode.flyway.core.dbsupport.h2.H2DbSupport
 
hashCode() - Method in class com.googlecode.flyway.core.migration.SchemaVersion
 
history() - Method in class com.googlecode.flyway.core.Flyway
Returns the history (all applied migrations) of the database.
HsqlDbSupport - Class in com.googlecode.flyway.core.dbsupport.hsql
HsqlDb-specific support
HsqlDbSupport() - Constructor for class com.googlecode.flyway.core.dbsupport.hsql.HsqlDbSupport
 

I

init(SchemaVersion) - Method in class com.googlecode.flyway.core.Flyway
Creates and initializes the Flyway metadata table.
init(SchemaVersion) - Method in class com.googlecode.flyway.core.runtime.MetaDataTable
Creates and initializes the Flyway metadata table.
initVersion(String) - Method in class com.googlecode.flyway.core.migration.BaseMigration
Initializes the version of this Migration based on this standard Flyway name.
installedOn - Variable in class com.googlecode.flyway.core.migration.Migration
The timestamp when this migration was applied to the database.
isDelimiterChangeExplicit() - Method in class com.googlecode.flyway.core.dbsupport.mysql.MySQLSqlScript
 
isDelimiterChangeExplicit() - Method in class com.googlecode.flyway.core.migration.sql.SqlScript
 
isNumeric(String) - Static method in class com.googlecode.flyway.core.util.StringUtils
Checks if the String contains only unicode digits.

J

JavaMigrationResolver - Class in com.googlecode.flyway.core.migration.java
Migration resolver for java class based migrations.
JavaMigrationResolver(String) - Constructor for class com.googlecode.flyway.core.migration.java.JavaMigrationResolver
Creates a new instance.

L

LATEST - Static variable in class com.googlecode.flyway.core.migration.SchemaVersion
Latest schema version.
latestAppliedMigration() - Method in class com.googlecode.flyway.core.runtime.MetaDataTable
 
loadResourceAsString(String) - Static method in class com.googlecode.flyway.core.util.ResourceUtils
Loads the resource at this location within the classpath in a string using UTF-8 encoding.
loadResourceAsString(Resource, String) - Static method in class com.googlecode.flyway.core.util.ResourceUtils
Loads this resource in a string using this encoding.
loadResourceAsString(Resource, String, Checksum) - Static method in class com.googlecode.flyway.core.util.ResourceUtils
Loads this resource in a string using this encoding and optionally calculates a CRC-32 checksum
lock() - Method in class com.googlecode.flyway.core.runtime.MetaDataTable
Acquires an exclusive read-write lock on the metadata table.

M

MetaDataTable - Class in com.googlecode.flyway.core.runtime
Supports reading and writing to the metadata table.
MetaDataTable(TransactionTemplate, JdbcTemplate, DbSupport, String) - Constructor for class com.googlecode.flyway.core.runtime.MetaDataTable
Creates a new instance of the metadata table support.
metaDataTableExists(JdbcTemplate, String) - Method in interface com.googlecode.flyway.core.dbsupport.DbSupport
Checks whether Flyway's metadata table is already present in the database.
metaDataTableExists(JdbcTemplate, String) - Method in class com.googlecode.flyway.core.dbsupport.h2.H2DbSupport
 
metaDataTableExists(JdbcTemplate, String) - Method in class com.googlecode.flyway.core.dbsupport.hsql.HsqlDbSupport
 
metaDataTableExists(JdbcTemplate, String) - Method in class com.googlecode.flyway.core.dbsupport.mysql.MySQLDbSupport
 
metaDataTableExists(JdbcTemplate, String) - Method in class com.googlecode.flyway.core.dbsupport.oracle.OracleDbSupport
 
migrate() - Method in class com.googlecode.flyway.core.Flyway
Starts the database migration.
migrate(TransactionTemplate, JdbcTemplate, DbSupport) - Method in class com.googlecode.flyway.core.migration.Migration
Performs the migration.
migrate() - Method in class com.googlecode.flyway.core.runtime.DbMigrator
Starts the actual migration.
Migration - Class in com.googlecode.flyway.core.migration
A migration of a single version of the schema.
Migration() - Constructor for class com.googlecode.flyway.core.migration.Migration
 
MigrationResolver - Interface in com.googlecode.flyway.core.migration
Facility for resolving available migrations.
migrationState - Variable in class com.googlecode.flyway.core.migration.Migration
The state of this migration.
MigrationState - Enum in com.googlecode.flyway.core.migration
The state of a migration.
MySQLDbSupport - Class in com.googlecode.flyway.core.dbsupport.mysql
Mysql-specific support.
MySQLDbSupport() - Constructor for class com.googlecode.flyway.core.dbsupport.mysql.MySQLDbSupport
 
MySQLSqlScript - Class in com.googlecode.flyway.core.dbsupport.mysql
SqlScript supporting MySQL-specific delimiter changes.
MySQLSqlScript(String, PlaceholderReplacer) - Constructor for class com.googlecode.flyway.core.dbsupport.mysql.MySQLSqlScript
Creates a new sql script from this source with these placeholders to replace.

N

NO_PLACEHOLDERS - Static variable in class com.googlecode.flyway.core.migration.sql.PlaceholderReplacer
PlaceholderReplacer that doesn't replace any placeholders.

O

OracleDbSupport - Class in com.googlecode.flyway.core.dbsupport.oracle
Oracle-specific support.
OracleDbSupport() - Constructor for class com.googlecode.flyway.core.dbsupport.oracle.OracleDbSupport
 
OracleSqlScript - Class in com.googlecode.flyway.core.dbsupport.oracle
SqlScript supporting Oracle-specific PL/SQL constructs.
OracleSqlScript(String, PlaceholderReplacer) - Constructor for class com.googlecode.flyway.core.dbsupport.oracle.OracleSqlScript
Creates a new sql script from this source with these placeholders to replace.

P

PlaceholderReplacer - Class in com.googlecode.flyway.core.migration.sql
Tool for replacing placeholders.
PlaceholderReplacer(Map<String, String>, String, String) - Constructor for class com.googlecode.flyway.core.migration.sql.PlaceholderReplacer
Creates a new PlaceholderReplacer.

R

replacePlaceholders(String) - Method in class com.googlecode.flyway.core.migration.sql.PlaceholderReplacer
Replaces the placeholders in this input string with their corresponding values.
resolvesMigrations() - Method in class com.googlecode.flyway.core.migration.java.JavaMigrationResolver
 
resolvesMigrations() - Method in interface com.googlecode.flyway.core.migration.MigrationResolver
Resolves the available migrations.
resolvesMigrations() - Method in class com.googlecode.flyway.core.migration.sql.SqlMigrationResolver
 
ResourceUtils - Class in com.googlecode.flyway.core.util
Utility class for dealing with classpath resources.

S

schemaVersion - Variable in class com.googlecode.flyway.core.migration.Migration
The target schema version of this migration.
SchemaVersion - Class in com.googlecode.flyway.core.migration
A version of a database schema.
SchemaVersion(String, String) - Constructor for class com.googlecode.flyway.core.migration.SchemaVersion
Creates a SchemaVersion using this version string.
scriptName - Variable in class com.googlecode.flyway.core.migration.Migration
The script name for the migration history.
setBaseDir(String) - Method in class com.googlecode.flyway.core.Flyway
 
setBasePackage(String) - Method in class com.googlecode.flyway.core.Flyway
 
setDataSource(DataSource) - Method in class com.googlecode.flyway.core.Flyway
 
setEncoding(String) - Method in class com.googlecode.flyway.core.Flyway
 
setPlaceholderPrefix(String) - Method in class com.googlecode.flyway.core.Flyway
 
setPlaceholders(Map<String, String>) - Method in class com.googlecode.flyway.core.Flyway
 
setPlaceholderSuffix(String) - Method in class com.googlecode.flyway.core.Flyway
 
setSchemaMetaDataTable(String) - Method in class com.googlecode.flyway.core.Flyway
Deprecated. 
setSqlMigrationPrefix(String) - Method in class com.googlecode.flyway.core.Flyway
 
setSqlMigrationSuffix(String) - Method in class com.googlecode.flyway.core.Flyway
 
setTable(String) - Method in class com.googlecode.flyway.core.Flyway
 
split(String, String) - Static method in class com.googlecode.flyway.core.util.StringUtils
Splits the provided text into an array, separators specified.
SqlMigration - Class in com.googlecode.flyway.core.migration.sql
Database migration based on a sql file.
SqlMigration(Resource, PlaceholderReplacer, String, String) - Constructor for class com.googlecode.flyway.core.migration.sql.SqlMigration
Creates a new sql script migration based on this sql script.
SqlMigrationResolver - Class in com.googlecode.flyway.core.migration.sql
Migration resolver for sql files on the classpath.
SqlMigrationResolver(String, PlaceholderReplacer, String, String, String) - Constructor for class com.googlecode.flyway.core.migration.sql.SqlMigrationResolver
Creates a new instance.
SqlScript - Class in com.googlecode.flyway.core.migration.sql
Sql script containing a series of statements terminated by semi-columns (;).
SqlScript(String, PlaceholderReplacer) - Constructor for class com.googlecode.flyway.core.migration.sql.SqlScript
Creates a new sql script from this source with these placeholders to replace.
SqlScript(List<SqlStatement>) - Constructor for class com.googlecode.flyway.core.migration.sql.SqlScript
Creates a new SqlScript with these statements and this name.
SqlScript() - Constructor for class com.googlecode.flyway.core.migration.sql.SqlScript
Dummy constructor to increase testability.
SqlStatement - Class in com.googlecode.flyway.core.migration.sql
A sql statement from a script that can be executed at once against a database.
SqlStatement(int, String) - Constructor for class com.googlecode.flyway.core.migration.sql.SqlStatement
Creates a new sql statement.
status() - Method in class com.googlecode.flyway.core.Flyway
Returns the status (current version) of the database.
StringUtils - Class in com.googlecode.flyway.core.util
Various string-related utilities.
supportsDatabase(String) - Method in interface com.googlecode.flyway.core.dbsupport.DbSupport
Checks whether this DbSupport class supports the database with this product name.
supportsDatabase(String) - Method in class com.googlecode.flyway.core.dbsupport.h2.H2DbSupport
 
supportsDatabase(String) - Method in class com.googlecode.flyway.core.dbsupport.hsql.HsqlDbSupport
 
supportsDatabase(String) - Method in class com.googlecode.flyway.core.dbsupport.mysql.MySQLDbSupport
 
supportsDatabase(String) - Method in class com.googlecode.flyway.core.dbsupport.oracle.OracleDbSupport
 
supportsDdlTransactions() - Method in interface com.googlecode.flyway.core.dbsupport.DbSupport
Checks whether ddl transactions are supported for this database.
supportsDdlTransactions() - Method in class com.googlecode.flyway.core.dbsupport.h2.H2DbSupport
 
supportsDdlTransactions() - Method in class com.googlecode.flyway.core.dbsupport.hsql.HsqlDbSupport
 
supportsDdlTransactions() - Method in class com.googlecode.flyway.core.dbsupport.mysql.MySQLDbSupport
 
supportsDdlTransactions() - Method in class com.googlecode.flyway.core.dbsupport.oracle.OracleDbSupport
 
supportsLocking() - Method in interface com.googlecode.flyway.core.dbsupport.DbSupport
Checks whether locking using select ... for update is supported for this database.
supportsLocking() - Method in class com.googlecode.flyway.core.dbsupport.h2.H2DbSupport
 
supportsLocking() - Method in class com.googlecode.flyway.core.dbsupport.hsql.HsqlDbSupport
 
supportsLocking() - Method in class com.googlecode.flyway.core.dbsupport.mysql.MySQLDbSupport
 
supportsLocking() - Method in class com.googlecode.flyway.core.dbsupport.oracle.OracleDbSupport
 

T

TimeFormat - Class in com.googlecode.flyway.core.util
Formats execution times.
toString() - Method in class com.googlecode.flyway.core.migration.SchemaVersion
 
trimOrPad(String, int) - Static method in class com.googlecode.flyway.core.util.StringUtils
Trims or pads (with spaces) this string, so it has this exact length.

V

valueOf(String) - Static method in enum com.googlecode.flyway.core.migration.MigrationState
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.googlecode.flyway.core.migration.MigrationState
Returns an array containing the constants of this enum type, in the order they are declared.

A B C D E F G H I J L M N O P R S T V

Copyright © 2010. All Rights Reserved.