Interface BasketInvoiceItemsRepository
- All Superinterfaces:
- org.springframework.data.repository.CrudRepository<BasketInvoiceItemEntity,,- Long> - DomainIdRepository<BasketInvoiceItemEntity,,- Long> - org.springframework.data.jpa.repository.JpaRepository<BasketInvoiceItemEntity,,- Long> - org.springframework.data.jpa.repository.JpaSpecificationExecutor<BasketInvoiceItemEntity>,- org.springframework.data.repository.PagingAndSortingRepository<BasketInvoiceItemEntity,,- Long> - org.springframework.data.repository.query.QueryByExampleExecutor<BasketInvoiceItemEntity>,- org.springframework.data.repository.Repository<BasketInvoiceItemEntity,- Long> 
@Repository
public interface BasketInvoiceItemsRepository
extends DomainIdRepository<BasketInvoiceItemEntity,Long> 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddeleteByInvoiceId(Long invoiceId, Integer domainId) findAllByBrowserIdAndDomainId(Long browserId, Integer domainId) findAllByBrowserIdAndItemsBasketInvoiceNullAndDomainId(Long browserId, Integer domainId) findAllByInvoiceIdAndDomainId(Long invoiceId, Integer domainId) org.springframework.data.domain.Page<BasketInvoiceItemEntity>findAllByInvoiceIdAndDomainId(Long invoiceId, Integer domainId, org.springframework.data.domain.Pageable pageable) findBasketItem(Long itemId, Long browserId, Integer domainId, Integer invoiceId) findBasketItemInvoiceNull(Long itemId, Long browserId, Integer domainId) findBasketItemInvoiceNull(Long itemId, Long browserId, Integer domainId, String itemNote) findByInvoiceIdAndItemIdAndDomainId(Long invoiceId, Long itemId, Integer domainId) getBrowserIdByInvoiceId(Long invoiceId, Integer domainId) voidupdateInvoiceId(Long invoiceId, Long browserId, Integer domainId) Methods inherited from interface org.springframework.data.repository.CrudRepositorycount, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface sk.iway.iwcm.system.datatable.spring.DomainIdRepositoryfindAllByDomainId, findAllByDomainId, findFirstByIdAndDomainIdMethods inherited from interface org.springframework.data.jpa.repository.JpaRepositorydeleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutorcount, findAll, findAll, findAll, findOneMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepositoryfindAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutorcount, exists, findAll, findBy, findOne
- 
Method Details- 
findAllByInvoiceIdAndDomainIdorg.springframework.data.domain.Page<BasketInvoiceItemEntity> findAllByInvoiceIdAndDomainId(Long invoiceId, Integer domainId, org.springframework.data.domain.Pageable pageable) 
- 
findAllByInvoiceIdAndDomainId
- 
findAllByBrowserIdAndDomainId
- 
findAllByBrowserIdAndItemsBasketInvoiceNullAndDomainIdList<BasketInvoiceItemEntity> findAllByBrowserIdAndItemsBasketInvoiceNullAndDomainId(Long browserId, Integer domainId) 
- 
findBasketItemInvoiceNull@Query("SELECT biie FROM BasketInvoiceItemEntity biie WHERE biie.itemId = :itemId AND biie.browserId = :browserId AND biie.domainId = :domainId AND biie.itemsBasketInvoice IS NULL") List<BasketInvoiceItemEntity> findBasketItemInvoiceNull(@Param("itemId") Long itemId, @Param("browserId") Long browserId, @Param("domainId") Integer domainId) 
- 
findBasketItem@Query("SELECT biie FROM BasketInvoiceItemEntity biie WHERE biie.itemId = :itemId AND biie.browserId = :browserId AND biie.domainId = :domainId AND biie.invoiceId = :invoiceId") List<BasketInvoiceItemEntity> findBasketItem(@Param("itemId") Long itemId, @Param("browserId") Long browserId, @Param("domainId") Integer domainId, @Param("invoiceId") Integer invoiceId) 
- 
findBasketItemInvoiceNull@Query("SELECT biie FROM BasketInvoiceItemEntity biie WHERE biie.itemId = :itemId AND biie.browserId = :browserId AND biie.domainId = :domainId AND biie.itemNote = :itemNote AND biie.itemsBasketInvoice IS NULL") List<BasketInvoiceItemEntity> findBasketItemInvoiceNull(@Param("itemId") Long itemId, @Param("browserId") Long browserId, @Param("domainId") Integer domainId, @Param("itemNote") String itemNote) 
- 
findBasketItem@Query("SELECT biie FROM BasketInvoiceItemEntity biie WHERE biie.itemId = :itemId AND biie.browserId = :browserId AND biie.domainId = :domainId AND biie.invoiceId = :invoiceId AND biie.itemNote = :itemNote") List<BasketInvoiceItemEntity> findBasketItem(@Param("itemId") Long itemId, @Param("browserId") Long browserId, @Param("domainId") Integer domainId, @Param("invoiceId") Integer invoiceId, @Param("itemNote") String itemNote) 
- 
updateInvoiceId@Transactional @Modifying @Query("UPDATE BasketInvoiceItemEntity biie SET biie.invoiceId = :invoiceId WHERE biie.browserId = :browserId AND biie.invoiceId IS NULL AND biie.domainId = :domainId") void updateInvoiceId(@Param("invoiceId") Long invoiceId, @Param("browserId") Long browserId, @Param("domainId") Integer domainId) 
- 
getBrowserIdByInvoiceId
- 
findByInvoiceIdAndItemIdAndDomainIdOptional<BasketInvoiceItemEntity> findByInvoiceIdAndItemIdAndDomainId(Long invoiceId, Long itemId, Integer domainId) 
- 
deleteByInvoiceId
 
-