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 Type
    Method
    Description
    boolean
    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

      List<ActionEntity> findByEventIdAndCollectionId(long eventId, long collectionId)
      findByEventIdAndCollectionId - To find a list of actions for the given eventId and collectionId.
      Parameters:
      eventId - the event id
      collectionId - 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 specification
      pageRequest - the pageRequest
      Returns:
      page of ActionEntity
    • findByIdAndCollectionId

      ActionEntity findByIdAndCollectionId(Long id, long collectionId)
      findByIdAndCollectionId - To find an action for the given id and collectionId.
      Parameters:
      id - the id
      collectionId - the collectionId
      Returns:
      the object of type ActionEntity
    • existsByIdAndCollectionId

      boolean existsByIdAndCollectionId(Long id, long collectionId)
      existsByIdAndCollectionId - To check if an action exists for the given id and collectionId.
      Parameters:
      id - the id
      collectionId - collectionid
      Returns:
      boolean value