|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DbSupport
Abstraction for database-specific functionality.
| 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. |
| Method Detail |
|---|
SqlScript createSqlScript(java.lang.String sqlScriptSource,
PlaceholderReplacer placeholderReplacer)
sqlScriptSource - The sql script as a text block with all placeholders still present.placeholderReplacer - The placeholder replacer to apply to sql migration scripts.
java.lang.IllegalStateException - Thrown when the script could not be read from this resource.SqlScript createCleanScript(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
jdbcTemplate - The jdbc template used for querying the database.
java.lang.String getCreateMetaDataTableScriptLocation()
boolean metaDataTableExists(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
java.lang.String schemaMetaDataTable)
jdbcTemplate - The jdbc template used for querying the database.schemaMetaDataTable - The table to look for.
true if the table exists, false if it doesn't.java.lang.String getCurrentSchema(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
jdbcTemplate - The jdbc template used for querying the database.
boolean supportsDatabase(java.lang.String databaseProductName)
databaseProductName - The name of the database.
true if the database is supported, false if not.boolean supportsDdlTransactions()
true if ddl transactions are supported, false if
not.boolean supportsLocking()
true if locking is supported, false if not.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||