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>
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 TypeMethodDescriptionfindByName
(String name) A method to retrieve the template by its namefindByNameAndLanguageId
(String templateName, String languageId) An abstract method that is used to retrieve the name of the template by its name and the language idfindByNameAndLanguageLocale
(String templateName, String locale) An abstract method declaration to find the name of the template specified by its name and the language localeMethods 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
A method to retrieve the template by its name- Parameters:
name
- the name- Returns:
- a list of template
-
findByNameAndLanguageLocale
An abstract method declaration to find the name of the template specified by its name and the language locale- Parameters:
templateName
- the template namelocale
- the locale of the language- Returns:
- the template filtering by its name and the locale code of the language
-
findByNameAndLanguageId
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 templatelanguageId
- the language id- Returns:
- the template specified by its name and the language id
-