Class BatchExecutor<E extends BatchExecutor<E,​T>,​T extends BatchCommand<E,​T>>

    • Constructor Detail

      • BatchExecutor

        public BatchExecutor()
    • Method Detail

      • doExec

        public abstract void doExec​(java.util.Collection<BatchCommand<E,​T>> commands,
                                    java.sql.Connection connection)
                             throws java.lang.Exception
        Description copied from interface: BatchExecutorBase
        Executes a batch of commands
        Specified by:
        doExec in interface BatchExecutorBase<E extends BatchExecutor<E,​T>,​T extends BatchCommand<E,​T>>
        Parameters:
        commands - the batch of commands is collected by the batcher and passed in to this method which can then execute them all in one batch.
        connection - the connection to work on
        Throws:
        java.lang.Exception - any kind of uncaught exception with the implementation of the executor