CreatureRepository

@Repository
interface CreatureRepository : KRepository<Creature, Long>

生物仓储接口

定义生物数据的查询与持久化操作

Author

lishangbu

Since

2025/09/14

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val entityType: KClass<Creature>
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: Creature)
abstract fun delete(entity: Creature, mode: DeleteMode): Int
Link copied to clipboard
abstract fun deleteAll()
open fun deleteAll(entities: Iterable<Creature>)
abstract fun deleteAll(entities: Iterable<Creature>, 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<Creature>
abstract fun findAll(fetcher: Fetcher<Creature>?): List<Creature>
abstract override fun findAll(pageable: Pageable): Page<Creature>
open override fun findAll(sort: Sort): List<Creature>
abstract fun findAll(fetcher: Fetcher<Creature>?, block: SortDsl<Creature>.() -> Unit): List<Creature>
abstract fun findAll(fetcher: Fetcher<Creature>?, sort: Sort): List<Creature>
abstract fun findAll(pageable: Pageable, fetcher: Fetcher<Creature>?): Page<Creature>
abstract fun findAll(pageIndex: Int, pageSize: Int, fetcher: Fetcher<Creature>?, block: SortDsl<Creature>.() -> Unit?): Page<Creature>
abstract fun findAll(pageIndex: Int, pageSize: Int, fetcher: Fetcher<Creature>?, sort: Sort): Page<Creature>
Link copied to clipboard
@AliasFor(value = "findByIds")
open fun findAllById(ids: Iterable<Long>): List<Creature>
Link copied to clipboard
open fun findById(id: Long): Optional<Creature>
open fun findById(id: Long, fetcher: Fetcher<Creature>): Optional<Creature>
Link copied to clipboard
@AliasFor(value = "findAllById")
abstract fun findByIds(ids: Iterable<Long>, fetcher: Fetcher<Creature>?): List<Creature>
Link copied to clipboard
abstract fun findMapByIds(ids: Iterable<Long>, fetcher: Fetcher<Creature>?): Map<Long, Creature>
Link copied to clipboard
abstract fun findNullable(id: Long, fetcher: Fetcher<Creature>?): Creature?
Link copied to clipboard
open fun insert(entity: Creature, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Creature
open fun insert(input: Input<Creature>, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Creature
Link copied to clipboard
open fun insertIfAbsent(entity: Creature, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Creature
open fun insertIfAbsent(input: Input<Creature>, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Creature
Link copied to clipboard
open fun listAll(): List<Creature>
Link copied to clipboard
open fun listViews(specification: CreatureSpecification?): List<CreatureView>

按条件查询生物视图

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

按 ID 查询单个生物视图

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

按条件分页查询生物视图

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