Interface PreferenceRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<PreferenceEO,
,Long> org.springframework.data.jpa.repository.JpaRepository<PreferenceEO,
,Long> org.springframework.data.repository.PagingAndSortingRepository<PreferenceEO,
,Long> PreferenceRepositoryCustom
,org.springframework.data.repository.query.QueryByExampleExecutor<PreferenceEO>
,org.springframework.data.repository.Repository<PreferenceEO,
Long>
interface PreferenceRepository
extends org.springframework.data.jpa.repository.JpaRepository<PreferenceEO,Long>, PreferenceRepositoryCustom
A PreferenceRepository is a Spring Data JPA repository that deals with
PreferenceEO
s.- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescriptionfindByOwnerAndScope
(String owner, PropertyScope scope) findByOwnerAndScopeAndGroupName
(String owner, PropertyScope scope, String groupName) findByOwnerAndScopeAndKey
(String owner, PropertyScope scope, String key) findBypKey
(String pKey) 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, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
Methods inherited from interface org.openwms.core.preferences.impl.jpa.PreferenceRepositoryCustom
findByType
Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findBypKey
-
findByOwnerAndScope
@Query("select p\n from PreferenceEO p\nwhere (:owner is null or p.owner = :owner)\n and p.scope = :scope\n") List<PreferenceEO> findByOwnerAndScope(@Param("owner") String owner, @Param("scope") PropertyScope scope) -
findByOwnerAndScopeAndKey
@Query("select p\n from PreferenceEO p\nwhere (:owner is null or p.owner = :owner)\n and p.scope = :scope\n and p.key = :key\n") Optional<PreferenceEO> findByOwnerAndScopeAndKey(@Param("owner") String owner, @Param("scope") PropertyScope scope, @Param("key") String key) -
findByOwnerAndScopeAndGroupName
@Query("select p\n from PreferenceEO p\nwhere (:owner is null or p.owner = :owner)\n and p.scope = :scope\n and p.groupName = :groupName\n") List<PreferenceEO> findByOwnerAndScopeAndGroupName(@Param("owner") String owner, @Param("scope") PropertyScope scope, @Param("groupName") String groupName)
-