Interface TemplateRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Template,String>, org.springframework.data.jpa.repository.JpaRepository<Template,String>, org.springframework.data.repository.ListCrudRepository<Template,String>, org.springframework.data.repository.ListPagingAndSortingRepository<Template,String>, org.springframework.data.repository.PagingAndSortingRepository<Template,String>, QlackBaseRepository<Template,String>, org.springframework.data.repository.query.QueryByExampleExecutor<Template>, org.springframework.data.querydsl.QuerydslPredicateExecutor<Template>, org.springframework.data.repository.Repository<Template,String>

@Repository public interface TemplateRepository extends QlackBaseRepository<Template,String>
A Template Repository interface that is used to define abstract methods for crud operations for the Template entity.
Author:
European Dynamics SA
  • Method Summary

    Modifier and Type
    Method
    Description
    A method to retrieve the template by its name
    findByNameAndLanguageId(String templateName, String languageId)
    An abstract method that is used to retrieve the name of the template by its name and the language id
    findByNameAndLanguageLocale(String templateName, String locale)
    An abstract method declaration to find the name of the template specified by its name and the language 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

    • findByName

      List<Template> findByName(String name)
      A method to retrieve the template by its name
      Parameters:
      name - the name
      Returns:
      a list of template
    • findByNameAndLanguageLocale

      Template findByNameAndLanguageLocale(String templateName, String locale)
      An abstract method declaration to find the name of the template specified by its name and the language locale
      Parameters:
      templateName - the template name
      locale - the locale of the language
      Returns:
      the template filtering by its name and the locale code of the language
    • findByNameAndLanguageId

      Template findByNameAndLanguageId(String templateName, String languageId)
      An abstract method that is used to retrieve the name of the template by its name and the language id
      Parameters:
      templateName - the name of the template
      languageId - the language id
      Returns:
      the template specified by its name and the language id