//MetaPhrase/com.github.diegoberaldin.metaphrase.domain.glossary.persistence.dao/DefaultGlossaryTermDao
DefaultGlossaryTermDao
[jvm]
class DefaultGlossaryTermDao : GlossaryTermDao
Constructors
DefaultGlossaryTermDao | [jvm] constructor() |
Functions
Name | Summary |
---|---|
areAssociated | [jvm] open suspend override fun areAssociated(sourceId: Int, targetId: Int): Boolean Determine whether two terms are associated. |
associate | [jvm] open suspend override fun associate(sourceId: Int, targetId: Int) Create an association between two terms. |
create | [jvm] open suspend override fun create(model: GlossaryTermModel): Int Create a new glossary term. |
delete | [jvm] open suspend override fun delete(model: GlossaryTermModel) Delete a glossary term. |
deleteAll | [jvm] open suspend override fun deleteAll() Delete all the terms in the glossary. |
disassociate | [jvm] open suspend override fun disassociate(sourceId: Int, targetId: Int) Remove the association between two terms. |
getAll | [jvm] open suspend override fun getAll(): List<GlossaryTermModel> Get all the terms in the glossary. |
getAllAssociated | [jvm] open suspend override fun getAllAssociated(model: GlossaryTermModel): List<GlossaryTermModel> Get all terms associated with a given term no matter the language. |
getAssociated | [jvm] open suspend override fun getAssociated(model: GlossaryTermModel, otherLang: String): List<GlossaryTermModel> Get the terms associated with a given term. |
getBy | [jvm] open suspend override fun getBy(lemma: String, lang: String): GlossaryTermModel? Get a term given its lemma and language. |
getById | [jvm] open suspend override fun getById(id: Int): GlossaryTermModel? Get a tern given its id. |
isStillReferenced | [jvm] open suspend override fun isStillReferenced(id: Int): Boolean Determine whether a term is still referenced by any other term in the glossary. |
update | [jvm] open suspend override fun update(model: GlossaryTermModel) Update a glossary term. |