Package org.openiam.esb.repository
Interface CSVConfigRepository
-
- All Superinterfaces:
AbstractEntityRepository<CSVConfigEntity,String>
,AbstractKeyEntityCustomRepository<CSVConfigEntity,String>
,AbstractKeyEntityRepository<CSVConfigEntity,String>
,AbstractKeyNameEntityCustomRepository<CSVConfigEntity,String>
,AbstractKeyNameEntityRepository<CSVConfigEntity,String>
,org.springframework.data.repository.CrudRepository<CSVConfigEntity,String>
,CSVConfigRepositoryCustom
,FindBeansRepositoryCustom<CSVConfigEntity,CSVConfigSearchBean>
,org.springframework.data.jpa.repository.JpaRepository<CSVConfigEntity,String>
,org.springframework.data.jpa.repository.JpaSpecificationExecutor<CSVConfigEntity>
,org.springframework.data.repository.PagingAndSortingRepository<CSVConfigEntity,String>
,org.springframework.data.repository.query.QueryByExampleExecutor<CSVConfigEntity>
,org.springframework.data.repository.Repository<CSVConfigEntity,String>
@Repository public interface CSVConfigRepository extends AbstractKeyNameEntityRepository<CSVConfigEntity,String>, CSVConfigRepositoryCustom
This is repository for working with CSVConfig- Author:
- Andrey Lezhebokov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Long
countByName(String name)
org.springframework.data.domain.Page<CSVConfigEntity>
findAllByLinesNumber(Long number, org.springframework.data.domain.Pageable page)
List<CSVConfigEntity>
findAllConfigNames()
List<CSVConfigEntity>
findOldCSV(Date from)
Optional<CSVConfigEntity>
getPreview(String id)
-
Methods inherited from interface org.openiam.esb.repository.AbstractEntityRepository
getPageable
-
Methods inherited from interface org.openiam.esb.repository.custom.AbstractKeyEntityCustomRepository
findByIdIn
-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
-
Methods inherited from interface org.openiam.esb.repository.custom.FindBeansRepositoryCustom
count, find, find, find, getByExample, getByExample, isValidSearchBean
-
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.jpa.repository.JpaSpecificationExecutor
count, exists, findAll, findAll, findAll, findOne
-
-
-
-
Method Detail
-
findAllConfigNames
@Query("SELECT new org.openiam.idm.srvc.synch.domain.CSVConfigEntity(x.id, x.name, x.linesNumber,x.createDatetime,x.createdBy) FROM CSVConfigEntity x") List<CSVConfigEntity> findAllConfigNames()
-
getPreview
@Query("SELECT new org.openiam.idm.srvc.synch.domain.CSVConfigEntity(x.id, x.preview) FROM CSVConfigEntity x WHERE x.id = :id") Optional<CSVConfigEntity> getPreview(@Param("id") String id)
-
findAllByLinesNumber
@Query("SELECT x FROM CSVConfigEntity x WHERE x.linesNumber=:number") org.springframework.data.domain.Page<CSVConfigEntity> findAllByLinesNumber(@Param("number") Long number, org.springframework.data.domain.Pageable page)
-
findOldCSV
@Query("SELECT new org.openiam.idm.srvc.synch.domain.CSVConfigEntity(x.id, x.name, x.linesNumber,x.createDatetime,x.createdBy) FROM CSVConfigEntity x WHERE x.createDatetime < :from") List<CSVConfigEntity> findOldCSV(@Param("from") Date from)
-
-