GenerationResultLocalDataSource

Coordinates GenerationResultLocalDataSource behavior in the SDAI data layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(dao: GenerationResultDao)

Properties

Link copied to clipboard

Exposes the dao value used by the SDAI data layer.

Functions

Link copied to clipboard
open suspend override fun deleteAll()

Performs the SDAI side effect handled by deleteAll.

Link copied to clipboard
open suspend override fun deleteById(id: Long)

Performs the SDAI side effect handled by deleteById.

Link copied to clipboard
open suspend override fun deleteByIdList(idList: List<Long>)

Performs the SDAI side effect handled by deleteByIdList.

Link copied to clipboard
open suspend override fun insert(result: AiGenerationResult): Long

Performs the SDAI side effect handled by insert.

Link copied to clipboard
open override fun observeCount(): Flow<Int>

Loads SDAI data through observeCount.

Link copied to clipboard
open override fun observePage(limit: Int, offset: Int): Flow<List<AiGenerationResult>>

Loads SDAI data through observePage.

Link copied to clipboard
open suspend override fun queryAll(): List<AiGenerationResult>

Executes the queryAll step in the SDAI data layer.

Link copied to clipboard
open suspend override fun queryById(id: Long): AiGenerationResult

Executes the queryById step in the SDAI data layer.

Link copied to clipboard
open suspend override fun queryByIdList(idList: List<Long>): List<AiGenerationResult>

Executes the queryByIdList step in the SDAI data layer.

Link copied to clipboard
open suspend override fun queryPage(limit: Int, offset: Int): List<AiGenerationResult>

Executes the queryPage step in the SDAI data layer.