MachineRepository

@Repository
interface MachineRepository : KRepository<Machine, Long>

招式机仓储接口

定义招式机数据的查询与持久化操作

Author

lishangbu

Since

2025/09/14

Properties

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