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