Package org.damap.base.repo
Class InternalStorageTranslationRepo
java.lang.Object
org.damap.base.repo.InternalStorageTranslationRepo
- All Implemented Interfaces:
io.quarkus.hibernate.orm.panache.PanacheRepository<InternalStorageTranslation>,io.quarkus.hibernate.orm.panache.PanacheRepositoryBase<InternalStorageTranslation,Long>
@ApplicationScoped
public class InternalStorageTranslationRepo
extends Object
implements io.quarkus.hibernate.orm.panache.PanacheRepository<InternalStorageTranslation>
InternalStorageTranslationRepo class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteAllTranslationsForInternalStorage(Long storageId) booleanexistsTranslationForStorageIdAndLanguageCode(Long storageId, String languageCode) booleanexistsTranslationForStorageIdAndLanguageCodeExceptId(Long storageId, String languageCode, Long id) getAllInternalStorageByLanguage(String languageCode) getAllInternalStorageByLanguage.getAllInternalStorageTranslationsByStorageId(Long storageId) getInternalStorageById(Long storageId, String languageCode) getInternalStorageById.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.hibernate.orm.panache.PanacheRepositoryBase
count, count, count, count, delete, delete, delete, delete, deleteAll, deleteById, find, find, find, find, find, find, findAll, findAll, findById, findById, findByIdOptional, findByIdOptional, flush, getEntityManager, isPersistent, list, list, list, list, list, list, listAll, listAll, persist, persist, persist, persist, persistAndFlush, stream, stream, stream, stream, stream, stream, streamAll, streamAll, update, update, update
-
Constructor Details
-
InternalStorageTranslationRepo
public InternalStorageTranslationRepo()
-
-
Method Details
-
getAllInternalStorageByLanguage
getAllInternalStorageByLanguage. -
getInternalStorageById
getInternalStorageById.- Parameters:
storageId- aLongobjectlanguageCode- aStringobject- Returns:
- a
InternalStorageTranslationobject
-
getAllInternalStorageTranslationsByStorageId
public List<InternalStorageTranslation> getAllInternalStorageTranslationsByStorageId(Long storageId) -
existsTranslationForStorageIdAndLanguageCode
-
existsTranslationForStorageIdAndLanguageCodeExceptId
-
deleteAllTranslationsForInternalStorage
-