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