Class ExecutionTemplateFactory


  • public class ExecutionTemplateFactory
    extends Object
    • Constructor Detail

      • ExecutionTemplateFactory

        public ExecutionTemplateFactory()
    • 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