//MetaPhrase/com.github.diegoberaldin.metaphrase.domain.project.persistence.dao/ProjectDao
ProjectDao
interface ProjectDao
Contract for the project data access object.
Inheritors
DefaultProjectDao |
Functions
Name | Summary |
---|---|
create | [jvm] abstract suspend fun create(model: ProjectModel): Int Create a new project. |
delete | [jvm] abstract suspend fun delete(model: ProjectModel) Delete a project. |
deleteAll | [jvm] abstract suspend fun deleteAll() Delete all projects. |
getAll | [jvm] abstract suspend fun getAll(): List<ProjectModel> Get all projects in the DB. |
getById | [jvm] abstract suspend fun getById(id: Int): ProjectModel? Get a project by ID. |
update | [jvm] abstract suspend fun update(model: ProjectModel) Update a project. |