|
||||||||||
| 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 | |
|---|---|
java.lang.String[] |
createSchemaMetaDataTableSql(java.lang.String tableName)
Generates the sql statements for creating the schema meta-data table. |
SqlScript |
createSqlScript(org.springframework.core.io.Resource resource,
java.util.Map<java.lang.String,java.lang.String> placeholders)
Creates a new sql script from this resource with these placeholders to replace. |
java.lang.String |
getCurrentSchema(org.springframework.jdbc.core.simple.SimpleJdbcTemplate jdbcTemplate)
Retrieves the current schema. |
boolean |
metaDataTableExists(org.springframework.jdbc.core.simple.SimpleJdbcTemplate 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. |
| Method Detail |
|---|
java.lang.String[] createSchemaMetaDataTableSql(java.lang.String tableName)
tableName - The name to give to this table.
java.lang.String getCurrentSchema(org.springframework.jdbc.core.simple.SimpleJdbcTemplate 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 metaDataTableExists(org.springframework.jdbc.core.simple.SimpleJdbcTemplate 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.boolean supportsDdlTransactions()
true if ddl transactions are supported, false if not.
SqlScript createSqlScript(org.springframework.core.io.Resource resource,
java.util.Map<java.lang.String,java.lang.String> placeholders)
resource - The resource containing the sql script.placeholders - A map of java.lang.IllegalStateException - Thrown when the script could not be read from this resource.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||