DealRepository

@Repository
interface DealRepository : JpaRepository<Deal, String> (source)

Functions

Link copied to clipboard
abstract fun count(): Long
abstract fun <S : Deal> count(example: Example<S>): Long
Link copied to clipboard
abstract fun delete(entity: Deal)
Link copied to clipboard
abstract fun deleteAll()
abstract fun deleteAll(entities: MutableIterable<Deal>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun deleteAllInBatch()
abstract fun deleteAllInBatch(entities: MutableIterable<Deal>)
Link copied to clipboard
abstract fun deleteById(id: String)
Link copied to clipboard
open fun deleteInBatch(entities: MutableIterable<Deal>)
Link copied to clipboard
abstract fun <S : Deal> exists(example: Example<S>): Boolean
Link copied to clipboard
abstract fun existsById(id: String): Boolean
Link copied to clipboard
abstract override fun <S : Deal> findAll(example: Example<S>): MutableList<S>
abstract override fun <S : Deal> findAll(example: Example<S>, sort: Sort): MutableList<S>
abstract override fun findAll(): MutableList<Deal>
abstract override fun findAll(sort: Sort): MutableList<Deal>
abstract fun findAll(pageable: Pageable): Page<Deal>
abstract fun <S : Deal> findAll(example: Example<S>, pageable: Pageable): Page<S>
Link copied to clipboard
abstract override fun findAllById(ids: MutableIterable<String>): MutableList<Deal>
Link copied to clipboard
@Query(value = "SELECT d FROM Deal d WHERE d.stageId IN (SELECT s.id FROM Stage s WHERE s.pipelineId = :pipelineId)")
abstract fun findAllByPipelineId(pipelineId: String): List<Deal>
Link copied to clipboard
abstract fun findAllByStageId(stageId: String): List<Deal>
Link copied to clipboard
abstract fun findAllByTenantId(tenantId: String): List<Deal>
Link copied to clipboard
abstract fun <S : Deal, R : Any> findBy(example: Example<S>, queryFunction: Function<FluentQuery.FetchableFluentQuery<S>, R>): R
Link copied to clipboard
abstract fun findById(id: String): Optional<Deal>
Link copied to clipboard
abstract fun <S : Deal> findOne(example: Example<S>): Optional<S>
Link copied to clipboard
abstract fun flush()
Link copied to clipboard
abstract fun getById(id: String): Deal
Link copied to clipboard
abstract fun getOne(id: String): Deal
Link copied to clipboard
abstract fun getReferenceById(id: String): Deal
Link copied to clipboard
abstract fun <S : Deal> save(entity: S): S
Link copied to clipboard
abstract override fun <S : Deal> saveAll(entities: MutableIterable<S>): MutableList<S>
Link copied to clipboard
abstract fun <S : Deal> saveAllAndFlush(entities: MutableIterable<S>): MutableList<S>
Link copied to clipboard
abstract fun <S : Deal> saveAndFlush(entity: S): S