|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.flyway.core.dbsupport.mysql.MySQLDbSupport
public class MySQLDbSupport
Mysql-specific support.
| Constructor Summary | |
|---|---|
MySQLDbSupport()
|
|
| Method Summary | |
|---|---|
SqlScript |
createCleanScript(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
Creates a new sql script which clean the current schema, by dropping all objects. |
SqlScript |
createSqlScript(java.lang.String sqlScriptSource,
PlaceholderReplacer placeholderReplacer)
Creates a new sql script from this resource with these placeholders to replace. |
java.lang.String |
getCreateMetaDataTableScriptLocation()
|
java.lang.String |
getCurrentSchema(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
Retrieves the current schema. |
boolean |
metaDataTableExists(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
java.lang.String schemaMetaDataTable)
Checks whether Flyway's metadata table is already present in the database. |
boolean |
supportsDatabase(java.lang.String databaseProductName)
Checks whether this DbSupport class supports the database with this product name. |
boolean |
supportsDdlTransactions()
Checks whether ddl transactions are supported for this database. |
boolean |
supportsLocking()
Checks whether locking using select ... for update is supported for this database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MySQLDbSupport()
| Method Detail |
|---|
public java.lang.String getCreateMetaDataTableScriptLocation()
getCreateMetaDataTableScriptLocation in interface DbSupportpublic java.lang.String getCurrentSchema(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
DbSupport
getCurrentSchema in interface DbSupportjdbcTemplate - The jdbc template used for querying the database.
public boolean supportsDatabase(java.lang.String databaseProductName)
DbSupport
supportsDatabase in interface DbSupportdatabaseProductName - The name of the database.
true if the database is supported, false if not.
public boolean metaDataTableExists(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
java.lang.String schemaMetaDataTable)
DbSupport
metaDataTableExists in interface DbSupportjdbcTemplate - The jdbc template used for querying the database.schemaMetaDataTable - The table to look for.
true if the table exists, false if it doesn't.public boolean supportsDdlTransactions()
DbSupport
supportsDdlTransactions in interface DbSupporttrue if ddl transactions are supported, false if
not.public boolean supportsLocking()
DbSupport
supportsLocking in interface DbSupporttrue if locking is supported, false if not.
public SqlScript createSqlScript(java.lang.String sqlScriptSource,
PlaceholderReplacer placeholderReplacer)
DbSupport
createSqlScript in interface DbSupportsqlScriptSource - The sql script as a text block with all placeholders still present.placeholderReplacer - The placeholder replacer to apply to sql migration scripts.
public SqlScript createCleanScript(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
DbSupport
createCleanScript in interface DbSupportjdbcTemplate - The jdbc template used for querying the database.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||