|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.flyway.core.dbsupport.oracle.OracleDbSupport
public class OracleDbSupport
Oracle-specific support.
| Constructor Summary | |
|---|---|
OracleDbSupport(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
columnExists(java.lang.String table,
java.lang.String column)
Checks whether this column is already present in this table in the database. |
SqlScript |
createCleanScript()
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 |
getBooleanFalse()
|
java.lang.String |
getBooleanTrue()
|
java.lang.String |
getCurrentSchema()
Retrieves the current schema. |
java.lang.String |
getCurrentUserFunction()
|
java.lang.String |
getScriptLocation()
Returns the location on the classpath where the scripts for this database reside. |
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. |
boolean |
tableExists(java.lang.String table)
Checks whether this table is already present in the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OracleDbSupport(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
jdbcTemplate - The jdbcTemplate to use.| Method Detail |
|---|
public java.lang.String getScriptLocation()
DbSupport
getScriptLocation in interface DbSupportpublic java.lang.String getCurrentUserFunction()
getCurrentUserFunction in interface DbSupportpublic java.lang.String getCurrentSchema()
DbSupport
getCurrentSchema in interface DbSupportpublic boolean tableExists(java.lang.String table)
DbSupport
tableExists in interface DbSupporttable - The table to look for.
true if the table exists, false if it doesn't.
public boolean columnExists(java.lang.String table,
java.lang.String column)
DbSupport
columnExists in interface DbSupporttable - The table to look for.column - The column 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 java.lang.String getBooleanTrue()
getBooleanTrue in interface DbSupporttrue in a boolean column.public java.lang.String getBooleanFalse()
getBooleanFalse in interface DbSupportfalse in a boolean column.
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()
DbSupport
createCleanScript in interface DbSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||