BaseSagaStepRepository

@NoRepositoryBean
interface BaseSagaStepRepository<T : BaseSagaStep<T>> : JpaRepository<T, Long> , SagaStepRepositoryPort<T> (source)

JPA flavor of SagaStepRepositoryPort. See BaseSagaRepository for the port/adapter rationale.

Functions

Link copied to clipboard
abstract fun count(): Long
abstract fun <S : T?> count(example: Example<S?>?): Long
Link copied to clipboard
abstract fun delete(entity: T?)
Link copied to clipboard
abstract fun deleteAll()
abstract fun deleteAll(entities: Iterable<out T?>?)
Link copied to clipboard
abstract fun deleteAllById(ids: Iterable<out Long?>?)
Link copied to clipboard
abstract fun deleteAllByIdInBatch(ids: Iterable<Long?>?)
Link copied to clipboard
abstract fun deleteAllInBatch()
abstract fun deleteAllInBatch(entities: Iterable<T?>?)
Link copied to clipboard
abstract fun deleteById(id: Long?)
Link copied to clipboard
open fun deleteInBatch(entities: Iterable<T?>?)
Link copied to clipboard
abstract fun <S : T?> exists(example: Example<S?>?): Boolean
Link copied to clipboard
abstract fun existsById(id: Long?): Boolean
Link copied to clipboard
abstract fun findAll(): List<T?>?
abstract fun findAll(pageable: Pageable?): Page<T?>?
abstract fun findAll(sort: Sort?): List<T?>?
abstract fun <S : T?> findAll(example: Example<S?>?): List<S?>?
abstract fun <S : T?> findAll(example: Example<S?>?, pageable: Pageable?): Page<S?>?
abstract fun <S : T?> findAll(example: Example<S?>?, sort: Sort?): List<S?>?
Link copied to clipboard
abstract fun findAllById(ids: Iterable<Long?>?): List<T?>?
Link copied to clipboard
abstract fun <S : T?, R> findBy(example: Example<S?>?, queryFunction: Function<FluentQuery.FetchableFluentQuery<S?>?, R?>?): R?
Link copied to clipboard
abstract override fun findByCompensationStepId(compensationStepId: Long): T?

Returns the compensation step that reverted the original step with id compensationStepId; null if not yet compensated.

Link copied to clipboard
abstract fun findById(id: Long?): Optional<T?>?
Link copied to clipboard
abstract override fun findBySagaId(sagaId: String): List<T>

Returns every step recorded for the given saga, in insertion order.

Link copied to clipboard
abstract override fun findBySagaIdAndStatus(sagaId: String, status: SagaStepStatus): List<T>

Returns the steps for sagaId currently in the given status.

Link copied to clipboard
abstract override fun findBySagaIdAndStepName(sagaId: String, stepName: String): List<T>

Returns the steps for sagaId whose SagaStep.stepName equals stepName (typically zero or one).

Link copied to clipboard
abstract override fun findByStepNameAndStatus(stepName: String, status: SagaStepStatus): List<T>

Returns steps with the given stepName in the given status across all sagas.

Link copied to clipboard
abstract fun <S : T?> findOne(example: Example<S?>?): Optional<S?>?
Link copied to clipboard
open override fun findOneById(id: Long): T?

Looks up a step by its surrogate id; null if absent.

Link copied to clipboard
abstract fun flush()
Link copied to clipboard
abstract fun getById(id: Long?): T?
Link copied to clipboard
abstract fun getOne(id: Long?): T?
Link copied to clipboard
abstract fun getReferenceById(id: Long?): T?
Link copied to clipboard
abstract fun save(step: T): T

Persists step (insert or update) and returns the stored instance.

abstract fun <S : T?> save(entity: S?): S?
Link copied to clipboard
abstract fun <S : T?> saveAll(entities: Iterable<S?>?): List<S?>?
Link copied to clipboard
abstract fun <S : T?> saveAllAndFlush(entities: Iterable<S?>?): List<S?>?
Link copied to clipboard
abstract fun <S : T?> saveAndFlush(entity: S?): S?