Package com.skava.repository
Interface ActionRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ActionEntity,
,Long> org.springframework.data.jpa.repository.JpaRepository<ActionEntity,
,Long> org.springframework.data.repository.ListCrudRepository<ActionEntity,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<ActionEntity,
,Long> org.springframework.data.repository.PagingAndSortingRepository<ActionEntity,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<ActionEntity>
,org.springframework.data.repository.Repository<ActionEntity,
Long>
public interface ActionRepository
extends org.springframework.data.jpa.repository.JpaRepository<ActionEntity,Long>
The Interface CollectionRepository provides generic CRUD operations for the ActionEntity.
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionboolean
existsByIdAndCollectionId
(Long id, long collectionId) existsByIdAndCollectionId - To check if an action exists for the given id and collectionId.org.springframework.data.domain.Page<ActionEntity>
findAll
(org.springframework.data.jpa.domain.Specification<ActionEntity> specification, org.springframework.data.domain.Pageable pageRequest) findAll - To find all the action according to the given specification.findByEventIdAndCollectionId
(long eventId, long collectionId) findByEventIdAndCollectionId - To find a list of actions for the given eventId and collectionId.findByIdAndCollectionId
(Long id, long collectionId) findByIdAndCollectionId - To find an action for the given id and collectionId.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush
Methods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAll
Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByEventIdAndCollectionId
findByEventIdAndCollectionId - To find a list of actions for the given eventId and collectionId.- Parameters:
eventId
- the event idcollectionId
- the collection id- Returns:
- the list
-
findAll
org.springframework.data.domain.Page<ActionEntity> findAll(org.springframework.data.jpa.domain.Specification<ActionEntity> specification, org.springframework.data.domain.Pageable pageRequest) findAll - To find all the action according to the given specification.- Parameters:
specification
- the specificationpageRequest
- the pageRequest- Returns:
- page of ActionEntity
-
findByIdAndCollectionId
findByIdAndCollectionId - To find an action for the given id and collectionId.- Parameters:
id
- the idcollectionId
- the collectionId- Returns:
- the object of type
ActionEntity
-
existsByIdAndCollectionId
existsByIdAndCollectionId - To check if an action exists for the given id and collectionId.- Parameters:
id
- the idcollectionId
- collectionid- Returns:
- boolean value
-