interface job_repository_interface implements repository_interface

internal  
 

Internal persistence contract for the Job aggregate.

Methods

create(job_dto $dto)

Persist a fresh job record.

save(job_interface $job)

Update a previously stored job.

void
add_attempt(int $jobid, job_attempt_interface $attempt)

Append an attempt to the governed job.

job_interface|null
find_by_id(int $id)

No description

job_interface|null
find_by_uuid(string $uuid)

No description

Details

at line 35
job_interface create(job_dto $dto)

Persist a fresh job record.

Parameters

job_dto $dto

Return Value

job_interface

Exceptions

dml_exception

at line 42
job_interface save(job_interface $job)

Update a previously stored job.

Parameters

job_interface $job

Return Value

job_interface

Exceptions

dml_exception

at line 50
void add_attempt(int $jobid, job_attempt_interface $attempt)

Append an attempt to the governed job.

Must keep middag_job.attempts and timing summary consistent.

Parameters

int $jobid
job_attempt_interface $attempt

Return Value

void

Exceptions

dml_exception

at line 55
job_interface|null find_by_id(int $id)

No description

Parameters

int $id

Return Value

job_interface|null

Exceptions

dml_exception

at line 60
job_interface|null find_by_uuid(string $uuid)

No description

Parameters

string $uuid

Return Value

job_interface|null

Exceptions

dml_exception