StatRepository

interface StatRepository : KRepository<Stat, Long>

能力值仓储接口

定义能力值数据的查询与持久化操作

Author

lishangbu

Since

2026/2/11

Types

Link copied to clipboard
object Companion

Properties

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

查询核心能力值定义,过滤仅战斗可用项并按游戏索引排序

Link copied to clipboard
open fun listViews(specification: StatSpecification?): List<StatView>

按条件查询能力值列表

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

按 ID 查询能力值

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