BerryRepository

interface BerryRepository : KRepository<Berry, Long>

树果仓储接口

定义树果的查询、保存与删除操作

Author

lishangbu

Since

2025/09/14

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val entityType: KClass<Berry>
Link copied to clipboard
abstract val sql: KSqlClient
Link copied to clipboard
abstract val type: ImmutableType

Functions

Link copied to clipboard
abstract fun count(): Long
Link copied to clipboard
open fun delete(entity: Berry)
abstract fun delete(entity: Berry, mode: DeleteMode): Int
Link copied to clipboard
abstract fun deleteAll()
open fun deleteAll(entities: Iterable<Berry>)
abstract fun deleteAll(entities: Iterable<Berry>, mode: DeleteMode): Int
Link copied to clipboard
@AliasFor(value = "deleteByIds")
open fun deleteAllById(ids: Iterable<Long>)
Link copied to clipboard
open fun deleteById(id: Long)
abstract fun deleteById(id: Long, mode: DeleteMode): Int
Link copied to clipboard
@AliasFor(value = "deleteAllById")
open fun deleteByIds(ids: Iterable<Long>)
abstract fun deleteByIds(ids: Iterable<Long>, mode: DeleteMode): Int
Link copied to clipboard
open fun existsById(id: Long): Boolean
Link copied to clipboard
open fun findAll(): List<Berry>
abstract fun findAll(fetcher: Fetcher<Berry>?): List<Berry>
abstract override fun findAll(pageable: Pageable): Page<Berry>
open override fun findAll(sort: Sort): List<Berry>
abstract fun findAll(fetcher: Fetcher<Berry>?, block: SortDsl<Berry>.() -> Unit): List<Berry>
abstract fun findAll(fetcher: Fetcher<Berry>?, sort: Sort): List<Berry>
abstract fun findAll(pageable: Pageable, fetcher: Fetcher<Berry>?): Page<Berry>
abstract fun findAll(pageIndex: Int, pageSize: Int, fetcher: Fetcher<Berry>?, block: SortDsl<Berry>.() -> Unit?): Page<Berry>
abstract fun findAll(pageIndex: Int, pageSize: Int, fetcher: Fetcher<Berry>?, sort: Sort): Page<Berry>
Link copied to clipboard
@AliasFor(value = "findByIds")
open fun findAllById(ids: Iterable<Long>): List<Berry>
Link copied to clipboard
open fun findById(id: Long): Optional<Berry>
open fun findById(id: Long, fetcher: Fetcher<Berry>): Optional<Berry>
Link copied to clipboard
@AliasFor(value = "findAllById")
abstract fun findByIds(ids: Iterable<Long>, fetcher: Fetcher<Berry>?): List<Berry>
Link copied to clipboard
abstract fun findMapByIds(ids: Iterable<Long>, fetcher: Fetcher<Berry>?): Map<Long, Berry>
Link copied to clipboard
abstract fun findNullable(id: Long, fetcher: Fetcher<Berry>?): Berry?
Link copied to clipboard
open fun insert(entity: Berry, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Berry
open fun insert(input: Input<Berry>, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Berry
Link copied to clipboard
open fun insertIfAbsent(entity: Berry, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Berry
open fun insertIfAbsent(input: Input<Berry>, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Berry
Link copied to clipboard
open fun listViews(specification: BerrySpecification?): List<BerryView>

按条件查询树果视图

Link copied to clipboard
open fun loadViewById(id: Long): BerryView?

按 ID 查询单个树果视图

Link copied to clipboard
open fun merge(entity: Berry, block: KSaveCommandPartialDsl.() -> Unit?): Berry
open fun merge(input: Input<Berry>, block: KSaveCommandPartialDsl.() -> Unit?): Berry
Link copied to clipboard
open fun pageViews(specification: BerrySpecification?, pageable: Pageable): Page<BerryView>

按条件分页查询树果视图

Link copied to clipboard
open fun <S : Berry> save(entity: S): S
open fun save(input: Input<Berry>, block: KSaveCommandDsl.() -> Unit?): Berry
open fun <V : View<Berry>> save(entity: Berry, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): V
open fun save(entity: Berry, fetcher: Fetcher<Berry>, block: KSaveCommandDsl.() -> Unit?): Berry
open fun <V : View<Berry>> save(input: Input<Berry>, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): V
open fun save(input: Input<Berry>, fetcher: Fetcher<Berry>, block: KSaveCommandDsl.() -> Unit?): Berry
open fun save(entity: Berry, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Berry
open fun save(input: Input<Berry>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Berry
open fun <V : View<Berry>> save(entity: Berry, mode: SaveMode, associatedMode: AssociatedSaveMode, viewType: KClass<V>, block: KSaveCommandPartialDsl.() -> Unit?): V
open fun save(entity: Berry, mode: SaveMode, associatedMode: AssociatedSaveMode, fetcher: Fetcher<Berry>, block: KSaveCommandPartialDsl.() -> Unit?): Berry
open fun <V : View<Berry>> save(input: Input<Berry>, mode: SaveMode, associatedMode: AssociatedSaveMode, viewType: KClass<V>, block: KSaveCommandPartialDsl.() -> Unit?): V
open fun save(input: Input<Berry>, mode: SaveMode, associatedMode: AssociatedSaveMode, fetcher: Fetcher<Berry>, block: KSaveCommandPartialDsl.() -> Unit?): Berry
Link copied to clipboard
open fun <S : Berry> saveAll(entity: Iterable<S>): List<S>
Link copied to clipboard
open fun saveCommand(entity: Berry, block: KSaveCommandDsl.() -> Unit?): KSimpleEntitySaveCommand<Berry>
open fun saveCommand(input: Input<Berry>, block: KSaveCommandDsl.() -> Unit?): KSimpleEntitySaveCommand<Berry>
open fun saveCommand(entity: Berry, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KSimpleEntitySaveCommand<Berry>
open fun saveCommand(input: Input<Berry>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KSimpleEntitySaveCommand<Berry>
Link copied to clipboard
open fun saveEntities(entities: Iterable<Berry>, block: KSaveCommandDsl.() -> Unit?): List<Berry>
open fun <V : View<Berry>> saveEntities(entities: Iterable<Berry>, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): List<V>
open fun saveEntities(entities: Iterable<Berry>, fetcher: Fetcher<Berry>, block: KSaveCommandDsl.() -> Unit?): List<Berry>
open fun saveEntities(entities: Iterable<Berry>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): List<Berry>
open fun <V : View<Berry>> saveEntities(entities: Iterable<Berry>, mode: SaveMode, associatedMode: AssociatedSaveMode, viewType: KClass<V>, block: KSaveCommandPartialDsl.() -> Unit?): List<V>
open fun saveEntities(entities: Iterable<Berry>, mode: SaveMode, associatedMode: AssociatedSaveMode, fetcher: Fetcher<Berry>, block: KSaveCommandPartialDsl.() -> Unit?): List<Berry>
Link copied to clipboard
open fun saveEntitiesCommand(entities: Iterable<Berry>, block: KSaveCommandDsl.() -> Unit?): KBatchEntitySaveCommand<Berry>
open fun saveEntitiesCommand(entities: Iterable<Berry>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KBatchEntitySaveCommand<Berry>
Link copied to clipboard
open fun saveInputs(inputs: Iterable<Input<Berry>>, block: KSaveCommandDsl.() -> Unit?): List<Berry>
open fun <V : View<Berry>> saveInputs(inputs: Iterable<Input<Berry>>, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): List<V>
open fun saveInputs(inputs: Iterable<Input<Berry>>, fetcher: Fetcher<Berry>, block: KSaveCommandDsl.() -> Unit?): List<Berry>
open fun saveInputs(inputs: Iterable<Input<Berry>>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): List<Berry>
open fun <V : View<Berry>> saveInputs(inputs: Iterable<Input<Berry>>, mode: SaveMode, associatedMode: AssociatedSaveMode, viewType: KClass<V>, block: KSaveCommandPartialDsl.() -> Unit?): List<V>
open fun saveInputs(inputs: Iterable<Input<Berry>>, mode: SaveMode, associatedMode: AssociatedSaveMode, fetcher: Fetcher<Berry>, block: KSaveCommandPartialDsl.() -> Unit?): List<Berry>
Link copied to clipboard
open fun saveInputsCommand(input: Iterable<Input<Berry>>, block: KSaveCommandDsl.() -> Unit?): KBatchEntitySaveCommand<Berry>
open fun saveInputsCommand(inputs: Iterable<Input<Berry>>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KBatchEntitySaveCommand<Berry>
Link copied to clipboard
open fun update(entity: Berry, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Berry
open fun update(input: Input<Berry>, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Berry
Link copied to clipboard
abstract fun <V : View<Berry>> viewer(viewType: KClass<V>): KRepository.Viewer<Berry, Long, V>