// Code generated by MockGen. DO NOT EDIT.
// Source: skill_index_build_task.go
//
// Generated by this command:
//
//	mockgen -source=skill_index_build_task.go -destination=../../mocks/model_skill_index_build_task.go -package=mocks
//

// Package mocks is a generated GoMock package.
package mocks

import (
	context "context"
	sql "database/sql"
	reflect "reflect"

	ormhelper "github.com/kweaver-ai/adp/execution-factory/operator-integration/server/infra/common/ormhelper"
	model "github.com/kweaver-ai/adp/execution-factory/operator-integration/server/interfaces/model"
	gomock "go.uber.org/mock/gomock"
)

// MockISkillIndexBuildTaskDB is a mock of ISkillIndexBuildTaskDB interface.
type MockISkillIndexBuildTaskDB struct {
	ctrl     *gomock.Controller
	recorder *MockISkillIndexBuildTaskDBMockRecorder
	isgomock struct{}
}

// MockISkillIndexBuildTaskDBMockRecorder is the mock recorder for MockISkillIndexBuildTaskDB.
type MockISkillIndexBuildTaskDBMockRecorder struct {
	mock *MockISkillIndexBuildTaskDB
}

// NewMockISkillIndexBuildTaskDB creates a new mock instance.
func NewMockISkillIndexBuildTaskDB(ctrl *gomock.Controller) *MockISkillIndexBuildTaskDB {
	mock := &MockISkillIndexBuildTaskDB{ctrl: ctrl}
	mock.recorder = &MockISkillIndexBuildTaskDBMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockISkillIndexBuildTaskDB) EXPECT() *MockISkillIndexBuildTaskDBMockRecorder {
	return m.recorder
}

// CountByWhereClause mocks base method.
func (m *MockISkillIndexBuildTaskDB) CountByWhereClause(ctx context.Context, tx *sql.Tx, filter map[string]any) (int64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "CountByWhereClause", ctx, tx, filter)
	ret0, _ := ret[0].(int64)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// CountByWhereClause indicates an expected call of CountByWhereClause.
func (mr *MockISkillIndexBuildTaskDBMockRecorder) CountByWhereClause(ctx, tx, filter any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CountByWhereClause", reflect.TypeOf((*MockISkillIndexBuildTaskDB)(nil).CountByWhereClause), ctx, tx, filter)
}

// DeleteFinishedTasksBefore mocks base method.
func (m *MockISkillIndexBuildTaskDB) DeleteFinishedTasksBefore(ctx context.Context, tx *sql.Tx, cutoff int64) (int64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "DeleteFinishedTasksBefore", ctx, tx, cutoff)
	ret0, _ := ret[0].(int64)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// DeleteFinishedTasksBefore indicates an expected call of DeleteFinishedTasksBefore.
func (mr *MockISkillIndexBuildTaskDBMockRecorder) DeleteFinishedTasksBefore(ctx, tx, cutoff any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFinishedTasksBefore", reflect.TypeOf((*MockISkillIndexBuildTaskDB)(nil).DeleteFinishedTasksBefore), ctx, tx, cutoff)
}

// Insert mocks base method.
func (m *MockISkillIndexBuildTaskDB) Insert(ctx context.Context, tx *sql.Tx, task *model.SkillIndexBuildTaskDB) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Insert", ctx, tx, task)
	ret0, _ := ret[0].(error)
	return ret0
}

// Insert indicates an expected call of Insert.
func (mr *MockISkillIndexBuildTaskDBMockRecorder) Insert(ctx, tx, task any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockISkillIndexBuildTaskDB)(nil).Insert), ctx, tx, task)
}

// SelectByTaskID mocks base method.
func (m *MockISkillIndexBuildTaskDB) SelectByTaskID(ctx context.Context, tx *sql.Tx, taskID string) (*model.SkillIndexBuildTaskDB, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "SelectByTaskID", ctx, tx, taskID)
	ret0, _ := ret[0].(*model.SkillIndexBuildTaskDB)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// SelectByTaskID indicates an expected call of SelectByTaskID.
func (mr *MockISkillIndexBuildTaskDBMockRecorder) SelectByTaskID(ctx, tx, taskID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelectByTaskID", reflect.TypeOf((*MockISkillIndexBuildTaskDB)(nil).SelectByTaskID), ctx, tx, taskID)
}

// SelectLatestCompletedFullTask mocks base method.
func (m *MockISkillIndexBuildTaskDB) SelectLatestCompletedFullTask(ctx context.Context, tx *sql.Tx) (*model.SkillIndexBuildTaskDB, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "SelectLatestCompletedFullTask", ctx, tx)
	ret0, _ := ret[0].(*model.SkillIndexBuildTaskDB)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// SelectLatestCompletedFullTask indicates an expected call of SelectLatestCompletedFullTask.
func (mr *MockISkillIndexBuildTaskDBMockRecorder) SelectLatestCompletedFullTask(ctx, tx any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelectLatestCompletedFullTask", reflect.TypeOf((*MockISkillIndexBuildTaskDB)(nil).SelectLatestCompletedFullTask), ctx, tx)
}

// SelectLatestCompletedIncrementalTask mocks base method.
func (m *MockISkillIndexBuildTaskDB) SelectLatestCompletedIncrementalTask(ctx context.Context, tx *sql.Tx) (*model.SkillIndexBuildTaskDB, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "SelectLatestCompletedIncrementalTask", ctx, tx)
	ret0, _ := ret[0].(*model.SkillIndexBuildTaskDB)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// SelectLatestCompletedIncrementalTask indicates an expected call of SelectLatestCompletedIncrementalTask.
func (mr *MockISkillIndexBuildTaskDBMockRecorder) SelectLatestCompletedIncrementalTask(ctx, tx any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelectLatestCompletedIncrementalTask", reflect.TypeOf((*MockISkillIndexBuildTaskDB)(nil).SelectLatestCompletedIncrementalTask), ctx, tx)
}

// SelectListPage mocks base method.
func (m *MockISkillIndexBuildTaskDB) SelectListPage(ctx context.Context, tx *sql.Tx, filter map[string]any, sort *ormhelper.SortParams, cursor *ormhelper.CursorParams) ([]*model.SkillIndexBuildTaskDB, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "SelectListPage", ctx, tx, filter, sort, cursor)
	ret0, _ := ret[0].([]*model.SkillIndexBuildTaskDB)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// SelectListPage indicates an expected call of SelectListPage.
func (mr *MockISkillIndexBuildTaskDBMockRecorder) SelectListPage(ctx, tx, filter, sort, cursor any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelectListPage", reflect.TypeOf((*MockISkillIndexBuildTaskDB)(nil).SelectListPage), ctx, tx, filter, sort, cursor)
}

// SelectRunningTask mocks base method.
func (m *MockISkillIndexBuildTaskDB) SelectRunningTask(ctx context.Context, tx *sql.Tx) (*model.SkillIndexBuildTaskDB, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "SelectRunningTask", ctx, tx)
	ret0, _ := ret[0].(*model.SkillIndexBuildTaskDB)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// SelectRunningTask indicates an expected call of SelectRunningTask.
func (mr *MockISkillIndexBuildTaskDBMockRecorder) SelectRunningTask(ctx, tx any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelectRunningTask", reflect.TypeOf((*MockISkillIndexBuildTaskDB)(nil).SelectRunningTask), ctx, tx)
}

// UpdateByTaskID mocks base method.
func (m *MockISkillIndexBuildTaskDB) UpdateByTaskID(ctx context.Context, tx *sql.Tx, task *model.SkillIndexBuildTaskDB) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "UpdateByTaskID", ctx, tx, task)
	ret0, _ := ret[0].(error)
	return ret0
}

// UpdateByTaskID indicates an expected call of UpdateByTaskID.
func (mr *MockISkillIndexBuildTaskDBMockRecorder) UpdateByTaskID(ctx, tx, task any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateByTaskID", reflect.TypeOf((*MockISkillIndexBuildTaskDB)(nil).UpdateByTaskID), ctx, tx, task)
}
