com.silverpeas.notification.repository
Interface NotificationResourceRepository

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

public interface NotificationResourceRepository
extends org.springframework.data.jpa.repository.JpaRepository<NotificationResourceData,Long>, NotificationResourceRepositoryCustom

Author:
Yohann Chastagnier

Method Summary
 int deleteResources()
           
 
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
 
Methods inherited from interface com.silverpeas.notification.repository.NotificationResourceRepositoryCustom
getExistingResource
 

Method Detail

deleteResources

@Modifying
@Query(value="delete from NotificationResourceData r where not exists (from DelayedNotificationData d where d.resource.id = r.id)")
int deleteResources()


Copyright © 2016 Silverpeas. All Rights Reserved.