Interface LanguageRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Language,,String> org.springframework.data.jpa.repository.JpaRepository<Language,,String> org.springframework.data.repository.ListCrudRepository<Language,,String> org.springframework.data.repository.ListPagingAndSortingRepository<Language,,String> org.springframework.data.repository.PagingAndSortingRepository<Language,,String> QlackBaseRepository<Language,,String> org.springframework.data.repository.query.QueryByExampleExecutor<Language>,org.springframework.data.querydsl.QuerydslPredicateExecutor<Language>,org.springframework.data.repository.Repository<Language,String>
A Repository interface for Language object that is used in order to declare
abstract methods for crud operations.
- Author:
- European Dynamics SA
-
Method Summary
Modifier and TypeMethodDescriptionA method that is used to retrieve a list of language with ascending order and active status truefindByLocale(String locale) A declared method that is used to retrieve the language according to its localeMethods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface com.eurodyn.qlack.common.repository.QlackBaseRepository
fetchById, findAll, findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOneMethods inherited from interface org.springframework.data.querydsl.QuerydslPredicateExecutor
count, exists, findAll, findAll, findAll, findBy, findOne
-
Method Details
-
findByLocale
A declared method that is used to retrieve the language according to its locale- Parameters:
locale- the language code- Returns:
- the locale
-
findByActiveTrueOrderByNameAsc
A method that is used to retrieve a list of language with ascending order and active status true- Returns:
- a list of language objects that theirs status is active and the results ordered by ascending
-
findAllByOrderByNameAsc
-