org.silverpeas.quota.repository
Interface QuotaRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Quota,Long>, org.springframework.data.jpa.repository.JpaRepository<Quota,Long>, org.springframework.data.repository.PagingAndSortingRepository<Quota,Long>, org.springframework.data.repository.Repository<Quota,Long>

public interface QuotaRepository
extends org.springframework.data.jpa.repository.JpaRepository<Quota,Long>

Author:
Yohann Chastagnier

Method Summary
 Quota getByTypeAndResourceId(String type, String resourceId)
           
 
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, flush, save, saveAndFlush
 
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
 
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, delete, delete, deleteAll, exists, findAll, findOne, save
 

Method Detail

getByTypeAndResourceId

@Query(value="from Quota where type = :type and resourceId = :resourceId")
Quota getByTypeAndResourceId(@Param(value="type")
                                   String type,
                                   @Param(value="resourceId")
                                   String resourceId)


Copyright © 2016 Silverpeas. All Rights Reserved.