public interface IResourceHistoryTableDao extends org.springframework.data.jpa.repository.JpaRepository<ResourceHistoryTable,Long>
| Modifier and Type | Method and Description |
|---|---|
int |
countForAllResourceTypes() |
int |
countForAllResourceTypes(Date theCutoff) |
int |
countForResourceInstance(Long theId) |
int |
countForResourceInstance(Long theId,
Date theCutoff) |
int |
countForResourceType(String theType) |
int |
countForResourceType(String theType,
Date theCutoff) |
ResourceHistoryTable |
findForIdAndVersion(long theId,
long theVersion) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAll@Query(value="SELECT COUNT(*) FROM ResourceHistoryTable t WHERE t.myUpdated >= :cutoff") int countForAllResourceTypes(@Temporal(value=TIMESTAMP) @Param(value="cutoff") Date theCutoff)
@Query(value="SELECT COUNT(*) FROM ResourceHistoryTable t WHERE t.myResourceId = :id AND t.myUpdated >= :cutoff")
int countForResourceInstance(@Param(value="id")
Long theId,
@Temporal(value=TIMESTAMP) @Param(value="cutoff")
Date theCutoff)
@Query(value="SELECT COUNT(*) FROM ResourceHistoryTable t WHERE t.myResourceType = :type AND t.myUpdated >= :cutoff")
int countForResourceType(@Param(value="type")
String theType,
@Temporal(value=TIMESTAMP) @Param(value="cutoff")
Date theCutoff)
@Query(value="SELECT COUNT(*) FROM ResourceHistoryTable t") int countForAllResourceTypes()
@Query(value="SELECT COUNT(*) FROM ResourceHistoryTable t WHERE t.myResourceId = :id")
int countForResourceInstance(@Param(value="id")
Long theId)
@Query(value="SELECT COUNT(*) FROM ResourceHistoryTable t WHERE t.myResourceType = :type")
int countForResourceType(@Param(value="type")
String theType)
@Query(value="SELECT t FROM ResourceHistoryTable t WHERE t.myResourceId = :id AND t.myResourceVersion = :version") ResourceHistoryTable findForIdAndVersion(@Param(value="id") long theId, @Param(value="version") long theVersion)
Copyright © 2014–2017 University Health Network. All rights reserved.