Package energy.eddie.aiida.repositories
Interface DataSourceRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<DataSource,,UUID> org.springframework.data.jpa.repository.JpaRepository<DataSource,,UUID> org.springframework.data.repository.ListCrudRepository<DataSource,,UUID> org.springframework.data.repository.ListPagingAndSortingRepository<DataSource,,UUID> org.springframework.data.repository.PagingAndSortingRepository<DataSource,,UUID> org.springframework.data.repository.query.QueryByExampleExecutor<DataSource>,org.springframework.data.repository.Repository<DataSource,UUID>
public interface DataSourceRepository
extends org.springframework.data.jpa.repository.JpaRepository<DataSource,UUID>
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByType(DataSourceType type) findByIdAndUserId(UUID id, UUID userId) findOutboundByUserId(UUID userId) findOutboundByUserIdAndMeterId(UUID userId, String meterId) 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.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
-
findByIdAndUserId
-
findOutboundByUserId
@Query("select d from DataSource d where d.userId = :userId and not d.type = DataSourceType.INBOUND") List<DataSource> findOutboundByUserId(UUID userId) -
findOutboundByUserIdAndMeterId
@Query("select d from DataSource d where d.userId = :userId and not d.type = DataSourceType.INBOUND and d.meterId = :meterId") List<DataSource> findOutboundByUserIdAndMeterId(UUID userId, String meterId) -
findAllByType
-