PokemonRepository

@Repository
interface PokemonRepository : KRepository<Pokemon, Long>

宝可梦仓储接口

定义宝可梦数据的查询与持久化操作

Author

lishangbu

Since

2025/09/14

Properties

Link copied to clipboard
abstract val entityType: KClass<Pokemon>
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: Pokemon)
abstract fun delete(entity: Pokemon, mode: DeleteMode): Int
Link copied to clipboard
abstract fun deleteAll()
open fun deleteAll(entities: Iterable<Pokemon>)
abstract fun deleteAll(entities: Iterable<Pokemon>, 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<Pokemon>
abstract fun findAll(fetcher: Fetcher<Pokemon>?): List<Pokemon>
abstract override fun findAll(pageable: Pageable): Page<Pokemon>
open override fun findAll(sort: Sort): List<Pokemon>
abstract fun findAll(fetcher: Fetcher<Pokemon>?, block: SortDsl<Pokemon>.() -> Unit): List<Pokemon>
abstract fun findAll(fetcher: Fetcher<Pokemon>?, sort: Sort): List<Pokemon>
abstract fun findAll(pageable: Pageable, fetcher: Fetcher<Pokemon>?): Page<Pokemon>
abstract fun findAll(pageIndex: Int, pageSize: Int, fetcher: Fetcher<Pokemon>?, block: SortDsl<Pokemon>.() -> Unit?): Page<Pokemon>
abstract fun findAll(pageIndex: Int, pageSize: Int, fetcher: Fetcher<Pokemon>?, sort: Sort): Page<Pokemon>
Link copied to clipboard
@AliasFor(value = "findByIds")
open fun findAllById(ids: Iterable<Long>): List<Pokemon>
Link copied to clipboard
open fun findById(id: Long): Optional<Pokemon>
open fun findById(id: Long, fetcher: Fetcher<Pokemon>): Optional<Pokemon>
Link copied to clipboard
@AliasFor(value = "findAllById")
abstract fun findByIds(ids: Iterable<Long>, fetcher: Fetcher<Pokemon>?): List<Pokemon>
Link copied to clipboard
abstract fun findMapByIds(ids: Iterable<Long>, fetcher: Fetcher<Pokemon>?): Map<Long, Pokemon>
Link copied to clipboard
abstract fun findNullable(id: Long, fetcher: Fetcher<Pokemon>?): Pokemon?
Link copied to clipboard
open fun insert(entity: Pokemon, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Pokemon
open fun insert(input: Input<Pokemon>, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Pokemon
Link copied to clipboard
open fun insertIfAbsent(entity: Pokemon, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Pokemon
open fun insertIfAbsent(input: Input<Pokemon>, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Pokemon
Link copied to clipboard
open fun merge(entity: Pokemon, block: KSaveCommandPartialDsl.() -> Unit?): Pokemon
open fun merge(input: Input<Pokemon>, block: KSaveCommandPartialDsl.() -> Unit?): Pokemon
Link copied to clipboard
open fun <S : Pokemon> save(entity: S): S
open fun save(input: Input<Pokemon>, block: KSaveCommandDsl.() -> Unit?): Pokemon
open fun <V : View<Pokemon>> save(entity: Pokemon, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): V
open fun save(entity: Pokemon, fetcher: Fetcher<Pokemon>, block: KSaveCommandDsl.() -> Unit?): Pokemon
open fun <V : View<Pokemon>> save(input: Input<Pokemon>, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): V
open fun save(input: Input<Pokemon>, fetcher: Fetcher<Pokemon>, block: KSaveCommandDsl.() -> Unit?): Pokemon
open fun save(entity: Pokemon, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Pokemon
open fun save(input: Input<Pokemon>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Pokemon
open fun <V : View<Pokemon>> save(entity: Pokemon, mode: SaveMode, associatedMode: AssociatedSaveMode, viewType: KClass<V>, block: KSaveCommandPartialDsl.() -> Unit?): V
open fun save(entity: Pokemon, mode: SaveMode, associatedMode: AssociatedSaveMode, fetcher: Fetcher<Pokemon>, block: KSaveCommandPartialDsl.() -> Unit?): Pokemon
open fun <V : View<Pokemon>> save(input: Input<Pokemon>, mode: SaveMode, associatedMode: AssociatedSaveMode, viewType: KClass<V>, block: KSaveCommandPartialDsl.() -> Unit?): V
open fun save(input: Input<Pokemon>, mode: SaveMode, associatedMode: AssociatedSaveMode, fetcher: Fetcher<Pokemon>, block: KSaveCommandPartialDsl.() -> Unit?): Pokemon
Link copied to clipboard
open fun <S : Pokemon> saveAll(entity: Iterable<S>): List<S>
Link copied to clipboard
open fun saveCommand(entity: Pokemon, block: KSaveCommandDsl.() -> Unit?): KSimpleEntitySaveCommand<Pokemon>
open fun saveCommand(input: Input<Pokemon>, block: KSaveCommandDsl.() -> Unit?): KSimpleEntitySaveCommand<Pokemon>
open fun saveCommand(entity: Pokemon, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KSimpleEntitySaveCommand<Pokemon>
open fun saveCommand(input: Input<Pokemon>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KSimpleEntitySaveCommand<Pokemon>
Link copied to clipboard
open fun saveEntities(entities: Iterable<Pokemon>, block: KSaveCommandDsl.() -> Unit?): List<Pokemon>
open fun <V : View<Pokemon>> saveEntities(entities: Iterable<Pokemon>, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): List<V>
open fun saveEntities(entities: Iterable<Pokemon>, fetcher: Fetcher<Pokemon>, block: KSaveCommandDsl.() -> Unit?): List<Pokemon>
open fun saveEntities(entities: Iterable<Pokemon>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): List<Pokemon>
open fun <V : View<Pokemon>> saveEntities(entities: Iterable<Pokemon>, mode: SaveMode, associatedMode: AssociatedSaveMode, viewType: KClass<V>, block: KSaveCommandPartialDsl.() -> Unit?): List<V>
open fun saveEntities(entities: Iterable<Pokemon>, mode: SaveMode, associatedMode: AssociatedSaveMode, fetcher: Fetcher<Pokemon>, block: KSaveCommandPartialDsl.() -> Unit?): List<Pokemon>
Link copied to clipboard
open fun saveEntitiesCommand(entities: Iterable<Pokemon>, block: KSaveCommandDsl.() -> Unit?): KBatchEntitySaveCommand<Pokemon>
open fun saveEntitiesCommand(entities: Iterable<Pokemon>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KBatchEntitySaveCommand<Pokemon>
Link copied to clipboard
open fun saveInputs(inputs: Iterable<Input<Pokemon>>, block: KSaveCommandDsl.() -> Unit?): List<Pokemon>
open fun <V : View<Pokemon>> saveInputs(inputs: Iterable<Input<Pokemon>>, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): List<V>
open fun saveInputs(inputs: Iterable<Input<Pokemon>>, fetcher: Fetcher<Pokemon>, block: KSaveCommandDsl.() -> Unit?): List<Pokemon>
open fun saveInputs(inputs: Iterable<Input<Pokemon>>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): List<Pokemon>
open fun <V : View<Pokemon>> saveInputs(inputs: Iterable<Input<Pokemon>>, mode: SaveMode, associatedMode: AssociatedSaveMode, viewType: KClass<V>, block: KSaveCommandPartialDsl.() -> Unit?): List<V>
open fun saveInputs(inputs: Iterable<Input<Pokemon>>, mode: SaveMode, associatedMode: AssociatedSaveMode, fetcher: Fetcher<Pokemon>, block: KSaveCommandPartialDsl.() -> Unit?): List<Pokemon>
Link copied to clipboard
open fun saveInputsCommand(input: Iterable<Input<Pokemon>>, block: KSaveCommandDsl.() -> Unit?): KBatchEntitySaveCommand<Pokemon>
open fun saveInputsCommand(inputs: Iterable<Input<Pokemon>>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KBatchEntitySaveCommand<Pokemon>
Link copied to clipboard
open fun update(entity: Pokemon, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Pokemon
open fun update(input: Input<Pokemon>, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Pokemon
Link copied to clipboard
abstract fun <V : View<Pokemon>> viewer(viewType: KClass<V>): KRepository.Viewer<Pokemon, Long, V>