AbilityRepository

@Repository
interface AbilityRepository : KRepository<Ability, Long>

特性仓储接口

定义特性数据的查询与持久化操作

Author

lishangbu

Since

2025/09/14

Properties

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