Package africa.absa.inception.reference
Interface MeasurementSystemRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<MeasurementSystem,,MeasurementSystemId> org.springframework.data.jpa.repository.JpaRepository<MeasurementSystem,,MeasurementSystemId> org.springframework.data.repository.PagingAndSortingRepository<MeasurementSystem,,MeasurementSystemId> org.springframework.data.repository.query.QueryByExampleExecutor<MeasurementSystem>,org.springframework.data.repository.Repository<MeasurementSystem,MeasurementSystemId>
public interface MeasurementSystemRepository
extends org.springframework.data.jpa.repository.JpaRepository<MeasurementSystem,MeasurementSystemId>
The MeasurementSystemRepository interface declares the repository for the
MeasurementSystem domain type.
- Author:
- Marcus Portmann
-
Method Summary
Modifier and TypeMethodDescriptionfindAll()Retrieve all the measurement systems sorted by locale ID, sort index, and name.findByLocaleIdIgnoreCase(String localeId) Retrieve the measurement systems for the specified locale sorted by locale ID, sort index, and name.Methods 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, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findOne
-
Method Details
-
findAll
@Query("select ms from MeasurementSystem ms order by ms.localeId, -ms.sortIndex DESC, ms.name") List<MeasurementSystem> findAll()Retrieve all the measurement systems sorted by locale ID, sort index, and name.- Specified by:
findAllin interfaceorg.springframework.data.repository.CrudRepository<MeasurementSystem,MeasurementSystemId> - Specified by:
findAllin interfaceorg.springframework.data.jpa.repository.JpaRepository<MeasurementSystem,MeasurementSystemId> - Returns:
- all the measurement systems sorted by locale ID, sort index, and name.
-
findByLocaleIdIgnoreCase
@Query("select ms from MeasurementSystem ms where upper(ms.localeId) = upper(:localeId) order by ms.localeId, -ms.sortIndex DESC, ms.name") List<MeasurementSystem> findByLocaleIdIgnoreCase(String localeId) Retrieve the measurement systems for the specified locale sorted by locale ID, sort index, and name.- Parameters:
localeId- the Unicode locale identifier for the locale to retrieve the measurement systems for- Returns:
- the measurement systems for the specified locale sorted by locale ID, sort index, and name
-