MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.domain.tm.persistence.dao/MemoryEntryDao

MemoryEntryDao

interface MemoryEntryDao

Memory entry Data Access Object.

Inheritors

 
DefaultMemoryEntryDao

Functions

Name Summary
create [jvm]
abstract suspend fun create(model: TranslationMemoryEntryModel): Int
Create a new translation memory entry.
delete [jvm]
abstract suspend fun delete(model: TranslationMemoryEntryModel)
Delete a translation memory entry.
deleteAll [jvm]
abstract suspend fun deleteAll(origin: String?)
Delete all the entries with a given origin.
getByIdentifier [jvm]
abstract suspend fun getByIdentifier(identifier: String, origin: String, sourceLang: String, targetLang: String): TranslationMemoryEntryModel?
Get a TM entry by identifier.
getEntries [jvm]
abstract suspend fun getEntries(sourceLang: String): List<TranslationMemoryEntryModel>
abstract suspend fun getEntries(sourceLang: String, targetLang: String, search: String): List<TranslationMemoryEntryModel>
Get TM entries.
getLanguageCodes [jvm]
abstract suspend fun getLanguageCodes(): List<String>
Get the list of distinct language codes in the TM.
getTargetMessage [jvm]
abstract suspend fun getTargetMessage(lang: String, key: String): TranslationMemoryEntryModel?
Get the target message for a given TM entry key.
update [jvm]
abstract suspend fun update(model: TranslationMemoryEntryModel)
Update a translation memory entry.