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>

@Repository public interface LanguageRepository extends QlackBaseRepository<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 Type
    Method
    Description
     
    A method that is used to retrieve a list of language with ascending order and active status true
    A declared method that is used to retrieve the language according to its locale

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface com.eurodyn.qlack.common.repository.QlackBaseRepository

    fetchById, findAll, findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne

    Methods inherited from interface org.springframework.data.querydsl.QuerydslPredicateExecutor

    count, exists, findAll, findAll, findAll, findBy, findOne
  • Method Details

    • findByLocale

      Language findByLocale(String locale)
      A declared method that is used to retrieve the language according to its locale
      Parameters:
      locale - the language code
      Returns:
      the locale
    • findByActiveTrueOrderByNameAsc

      List<Language> 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

      List<Language> findAllByOrderByNameAsc()