//MetaPhrase/com.github.diegoberaldin.metaphrase.domain.language.persistence.dao/LanguageDao
LanguageDao
interface LanguageDao
Contract for the language dao.
Inheritors
DefaultLanguageDao |
Functions
Name | Summary |
---|---|
create | [jvm] abstract suspend fun create(model: LanguageModel, projectId: Int): Int Create a language within a given project. |
delete | [jvm] abstract suspend fun delete(model: LanguageModel) Delete a language. |
getAll | [jvm] abstract suspend fun getAll(projectId: Int): List<LanguageModel> Get all the languages for a project. |
getBase | [jvm] abstract suspend fun getBase(projectId: Int): LanguageModel? Get the source language for a given project. |
getByCode | [jvm] abstract suspend fun getByCode(code: String, projectId: Int): LanguageModel? Get a language by code within a given project. |
getById | [jvm] abstract suspend fun getById(id: Int): LanguageModel? Get a language given its ID. |
update | [jvm] abstract suspend fun update(model: LanguageModel) Update a language. |