Class ExecutionTemplateFactory

java.lang.Object
migratedb.v1.core.internal.jdbc.ExecutionTemplateFactory

public class ExecutionTemplateFactory extends Object
  • 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