//MetaPhrase/com.github.diegoberaldin.metaphrase.domain.tm.repository/MemoryEntryRepository
MemoryEntryRepository
[jvm]
interface MemoryEntryRepository
Contrast of the memory entry repository.
Functions
Name | Summary |
---|---|
create | [jvm] abstract suspend fun create(model: TranslationMemoryEntryModel): Int Create a new translation memory. |
delete | [jvm] abstract suspend fun delete(model: TranslationMemoryEntryModel) Delete a translation memory entry. |
deleteAll | [jvm] abstract suspend fun deleteAll(origin: String? = null) Delete all the translation memory entries having a given origin. |
getByIdentifier | [jvm] abstract suspend fun getByIdentifier(identifier: String, origin: String, sourceLang: String, targetLang: String): TranslationMemoryEntryModel? Get translation memory entries by identifier. |
getEntries | [jvm] abstract suspend fun getEntries(sourceLang: String): List<TranslationMemoryEntryModel> Get translation memory entries. [jvm] 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 that are found in the TM. |
getTranslation | [jvm] abstract suspend fun getTranslation(lang: String, key: String): TranslationMemoryEntryModel? Get an entry with a given target message for a source message. |
update | [jvm] abstract suspend fun update(model: TranslationMemoryEntryModel) Update a translation memory entry. |