com.google.code.flyway.core.sql
Class SqlMigrationResolver

java.lang.Object
  extended by com.google.code.flyway.core.sql.SqlMigrationResolver
All Implemented Interfaces:
MigrationResolver

public class SqlMigrationResolver
extends java.lang.Object
implements MigrationResolver

Migration resolver for sql files on the classpath. The sql files must have names like V1.sql or V1_1.sql or V1__Description.sql or V1_1__Description.sql.


Constructor Summary
SqlMigrationResolver(java.lang.String baseDir, java.util.Map<java.lang.String,java.lang.String> placeholders)
          Creates a new instance.
 
Method Summary
 java.util.Collection<Migration> resolvesMigrations()
          Resolves the available migrations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlMigrationResolver

public SqlMigrationResolver(java.lang.String baseDir,
                            java.util.Map<java.lang.String,java.lang.String> placeholders)
Creates a new instance.

Parameters:
baseDir - The base directory on the classpath where to migrations are located.
placeholders - A map of to apply to sql migration scripts.
Method Detail

resolvesMigrations

public java.util.Collection<Migration> resolvesMigrations()
Description copied from interface: MigrationResolver
Resolves the available migrations.

Specified by:
resolvesMigrations in interface MigrationResolver
Returns:
The available migrations.


Copyright © 2010. All Rights Reserved.