/// <summary> /// Initializes batching. /// </summary> protected override void InitializeBatching() { m_commandSet = new HsqlCommandSet(); HsqlCommand command = SelectCommand; if (command == null) { command = InsertCommand; if (command == null) { command = UpdateCommand; if (command == null) { command = DeleteCommand; } } } if (command != null) { m_commandSet.Connection = command.Connection; m_commandSet.Transaction = command.Transaction; m_commandSet.CommandTimeout = command.CommandTimeout; } }
/// <summary> /// Ends batching. /// </summary> protected override void TerminateBatching() { HsqlCommandSet commandSet = m_commandSet; if (commandSet != null) { commandSet.Dispose(); m_commandSet = null; } }