Interface CommissionRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<Commission,​Long>, org.springframework.data.jpa.repository.JpaRepository<Commission,​Long>, org.springframework.data.repository.PagingAndSortingRepository<Commission,​Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Commission>, org.springframework.data.repository.Repository<Commission,​Long>

    public interface CommissionRepository
    extends org.springframework.data.jpa.repository.JpaRepository<Commission,​Long>
    The CommissionRepository contains a list of methods used to query the database for items in the Commission table.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      List<Commission> findByCommissionerOrderByTimestamp​(Profile commissioner)
      Method to get a list of Commission submitted by a specific user, ordered by timestamp.
      List<Commission> findBySellerAndWaitlistPositionGreaterThanOrderByWaitlistPosition​(Profile seller, int position)
      Method to get a list of Commission for a specific seller, where the waitlist position is greater than a specific position and ordered by their position in the waitlist.
      List<Commission> getAllBySellerOrderByTimestamp​(Profile seller)
      Method to get a list of Commission for a specific seller, ordered by timestamp.
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findOne
    • Method Detail

      • getAllBySellerOrderByTimestamp

        List<Commission> getAllBySellerOrderByTimestamp​(Profile seller)
        Method to get a list of Commission for a specific seller, ordered by timestamp.
        Parameters:
        seller - An instance of Profile representing the commissioned party.
      • findBySellerAndWaitlistPositionGreaterThanOrderByWaitlistPosition

        List<Commission> findBySellerAndWaitlistPositionGreaterThanOrderByWaitlistPosition​(Profile seller,
                                                                                           int position)
        Method to get a list of Commission for a specific seller, where the waitlist position is greater than a specific position and ordered by their position in the waitlist.
        Parameters:
        seller - An instance of Profile representing the commissioned party.
        position - The int value to search for elements greater than.
      • findByCommissionerOrderByTimestamp

        List<Commission> findByCommissionerOrderByTimestamp​(Profile commissioner)
        Method to get a list of Commission submitted by a specific user, ordered by timestamp.
        Parameters:
        commissioner - An instance of Profile representing the commissioning party.