public interface DeviceRepository extends org.springframework.data.jpa.repository.JpaRepository<Device,Long>
| Modifier and Type | Method and Description |
|---|---|
int |
countFilteredByMac(long adminSiteId,
String mac) |
int |
countFilteredByUser(long adminSiteId,
boolean voucher,
String ownerName) |
int |
countFilteredByUserAndMac(long adminSiteId,
boolean voucher,
String ownerName,
String mac) |
List<Device> |
findAllByPrincipalSiteId(long siteId) |
List<Device> |
findFilteredByMac(Long adminSiteId,
String mac,
org.springframework.data.domain.Pageable pageable) |
List<Device> |
findFilteredByUser(Long adminSiteId,
boolean voucher,
String ownerName,
org.springframework.data.domain.Pageable pageable) |
List<Device> |
findFilteredByUserAndMac(Long adminSiteId,
boolean voucher,
String ownerName,
String mac,
org.springframework.data.domain.Pageable pageable) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAll@Query(value="select count(d) from Device d where d.principal.site.id = ?1 and d.principal.voucher = ?2 and d.principal.loginName = ?3")
int countFilteredByUser(long adminSiteId,
boolean voucher,
String ownerName)
@Query(value="select count(d) from Device d where d.principal.site.id = ?1 and d.macAddress = ?2")
int countFilteredByMac(long adminSiteId,
String mac)
@Query(value="select count(d) from Device d where d.principal.site.id = ?1 and d.macAddress = ?4 and d.principal.voucher = ?2 and d.principal.loginName = ?3")
int countFilteredByUserAndMac(long adminSiteId,
boolean voucher,
String ownerName,
String mac)
@Query(value="select d from Device d where d.principal.site.id = ?1 and d.principal.voucher = ?2 and d.principal.loginName = ?3") List<Device> findFilteredByUser(Long adminSiteId, boolean voucher, String ownerName, org.springframework.data.domain.Pageable pageable)
@Query(value="select d from Device d where d.principal.site.id = ?1 and d.macAddress = ?2") List<Device> findFilteredByMac(Long adminSiteId, String mac, org.springframework.data.domain.Pageable pageable)
@Query(value="select d from Device d where d.principal.site.id = ?1 and d.macAddress = ?4 and d.principal.voucher = ?2 and d.principal.loginName = ?3") List<Device> findFilteredByUserAndMac(Long adminSiteId, boolean voucher, String ownerName, String mac, org.springframework.data.domain.Pageable pageable)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.