Package migratedb.v1.core.internal.jdbc
Class ExecutionTemplateFactory
java.lang.Object
migratedb.v1.core.internal.jdbc.ExecutionTemplateFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
-
Constructor Details
-
ExecutionTemplateFactory
public ExecutionTemplateFactory()
-
-
Method Details
-
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
-