Package migratedb.v1.core.internal.jdbc
Class ExecutionTemplateFactory
- java.lang.Object
-
- migratedb.v1.core.internal.jdbc.ExecutionTemplateFactory
-
public class ExecutionTemplateFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description ExecutionTemplateFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExecutionTemplatecreateExecutionTemplate(Connection connection, DatabaseTypeRegister databaseTypeRegister)Creates a new execution template for this connection.static ExecutionTemplatecreateExecutionTemplate(Connection connection, Database database)Creates a new execution template for this connection.static ExecutionTemplatecreateTableExclusiveExecutionTemplate(Connection connection, Table table, Database database)Creates a new execution template for this connection, which attempts to get exclusive access to the table
-
-
-
Method Detail
-
createExecutionTemplate
public static ExecutionTemplate createExecutionTemplate(Connection connection, DatabaseTypeRegister databaseTypeRegister)
Creates a new execution template for this connection. If possible, will attempt to roll back when an exception is thrown.- Parameters:
connection- The connection for execution.
-
createExecutionTemplate
public static ExecutionTemplate createExecutionTemplate(Connection connection, Database database)
Creates a new execution template for this connection. If possible, will attempt to roll back when an exception is thrown.- Parameters:
connection- The connection for execution.database- The database
-
createTableExclusiveExecutionTemplate
public static ExecutionTemplate createTableExclusiveExecutionTemplate(Connection connection, Table table, Database database)
Creates a new execution template for this connection, which attempts to get exclusive access to the table- Parameters:
connection- The connection for execution.database- The database
-
-