MongoCrudUserRepository

@MongoRepository
sealed interface MongoCrudUserRepository : CrudRepository<UserDocument, String>

Micronaut Data Mongo repository contract for low-level CRUD operations on UserDocument.

This interface is used by MongoUserRepository as the infrastructure persistence gateway.

Functions

Link copied to clipboard
abstract fun count(): Long
Link copied to clipboard
abstract fun delete(@NonNull entity: @NonNull UserDocument?)
Link copied to clipboard
abstract fun deleteAll()
abstract fun deleteAll(@NonNull entities: @NonNull Iterable<out UserDocument?>?)
Link copied to clipboard
abstract fun deleteById(@NonNull id: @NonNull String?)
Link copied to clipboard
abstract fun existsById(@NonNull id: @NonNull String?): Boolean
Link copied to clipboard
@NonNull
abstract fun findAll(): @NonNull List<UserDocument?>?
Link copied to clipboard
@NonNull
abstract fun findById(@NonNull id: @NonNull String?): @NonNull Optional<UserDocument?>?
Link copied to clipboard
@NonNull
abstract fun <S : UserDocument?> save(@NonNull entity: @NonNull S?): @NonNull S?
Link copied to clipboard
@NonNull
abstract fun <S : UserDocument?> saveAll(@NonNull entities: @NonNull Iterable<S?>?): @NonNull List<S?>?
Link copied to clipboard
@NonNull
abstract fun <S : UserDocument?> update(@NonNull entity: @NonNull S?): @NonNull S?
Link copied to clipboard
@NonNull
abstract fun <S : UserDocument?> updateAll(@NonNull entities: @NonNull Iterable<S?>?): @NonNull List<S?>?