Package com.bytedesk.core.settings
Interface SettingsRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<SettingsEntity,,Long> org.springframework.data.jpa.repository.JpaRepository<SettingsEntity,,Long> org.springframework.data.jpa.repository.JpaSpecificationExecutor<SettingsEntity>,org.springframework.data.repository.ListCrudRepository<SettingsEntity,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<SettingsEntity,,Long> org.springframework.data.repository.PagingAndSortingRepository<SettingsEntity,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<SettingsEntity>,org.springframework.data.repository.Repository<SettingsEntity,Long>
public interface SettingsRepository
extends org.springframework.data.jpa.repository.JpaRepository<SettingsEntity,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<SettingsEntity>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
org.springframework.data.jpa.repository.JpaSpecificationExecutor.SpecificationFluentQuery<T extends Object> -
Method Summary
Modifier and TypeMethodDescriptionexistsByTypeAndLevelAndDeletedFalse(String type, String level) 检查平台级别设置是否存在existsByUid(String uid) findByNameAndOrgUidAndTypeAndDeletedFalse(String name, String orgUid, String type) findByTypeAndLevelAndDeletedFalse(String type, String level) 查询平台级别的设置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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, delete, exists, findAll, findAll, findAll, findAll, findBy, findOneMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByUid
-
existsByUid
-
findByNameAndOrgUidAndTypeAndDeletedFalse
Optional<SettingsEntity> findByNameAndOrgUidAndTypeAndDeletedFalse(String name, String orgUid, String type) -
findByTypeAndLevelAndDeletedFalse
查询平台级别的设置- Parameters:
type- 设置类型level- 级别(PLATFORM)- Returns:
- 设置实体
-
existsByTypeAndLevelAndDeletedFalse
检查平台级别设置是否存在- Parameters:
type- 设置类型level- 级别- Returns:
- 是否存在
-