Services Configurations Repository

@Repository
interface ServicesConfigurationsRepository : JpaRepository<T, ID>

The ServicesConfigurationsRepository interface is useful to manage the queries of the ServiceConfiguration

Author

N7ghtm4r3 - Tecknobit

See also

JpaRepository

Functions

Link copied to clipboard
abstract fun <S : T?> count(example: Example<S>): Long
Link copied to clipboard
abstract fun delete(entity: T)
Link copied to clipboard
abstract fun deleteAll(entities: Iterable<out T>)
Link copied to clipboard
abstract fun deleteAllById(ids: Iterable<out ID>)
Link copied to clipboard
abstract fun deleteAllByIdInBatch(ids: Iterable<ID>)
Link copied to clipboard
abstract fun deleteAllInBatch(entities: Iterable<T>)
Link copied to clipboard
abstract fun deleteById(id: ID)
Link copied to clipboard
open fun deleteInBatch(entities: Iterable<T>)
Link copied to clipboard
@Modifying(clearAutomatically = true )
@Query(value = ""UPDATE " + SERVICES_CONFIGURATIONS_KEY + " SET " + AUTO_RUN_AFTER_HOST_REBOOT_KEY + "=:" + AUTO_RUN_AFTER_HOST_REBOOT_KEY + "," + PROGRAM_ARGUMENTS_KEY + "=:" + PROGRAM_ARGUMENTS_KEY + "," + PURGE_NOHUP_OUT_AFTER_REBOOT_KEY + "=:" + PURGE_NOHUP_OUT_AFTER_REBOOT_KEY + _WHERE_ + SERVICE_IDENTIFIER_KEY + "=:" + SERVICE_IDENTIFIER_KEY", nativeQuery = true )
abstract fun editConfiguration(@Param(value = "auto_run_after_host_reboot") autoRunAfterHostReboot: Boolean, @Param(value = "program_arguments") programArguments: String, @Param(value = "purge_nohup_out_after_reboot") purgeNohupOutAfterReboot: Boolean, @Param(value = "service_id") serviceId: String)
Query used to edit an existing configuration of a BrownieHostService
Link copied to clipboard
abstract fun <S : T?> exists(example: Example<S>): Boolean
Link copied to clipboard
abstract fun existsById(id: ID): Boolean
Link copied to clipboard
abstract fun <S : T?> findAll(example: Example<S>): List<S>
abstract fun findAll(): Iterable<T>
abstract fun findAll(): List<T>
abstract fun findAll(pageable: Pageable): Page<T>
abstract fun <S : T?> findAll(example: Example<S>): Iterable<S>
abstract fun <S : T?> findAll(example: Example<S>, pageable: Pageable): Page<S>
Link copied to clipboard
abstract fun findAllById(ids: Iterable<ID>): Iterable<T>
abstract fun findAllById(ids: Iterable<ID>): List<T>
Link copied to clipboard
abstract fun <S : T?, R> findBy(example: Example<S>, queryFunction: (FluentQuery.FetchableFluentQuery<S>) -> R): R
Link copied to clipboard
abstract fun findById(id: ID): Optional<T>
Link copied to clipboard
abstract fun <S : T?> findOne(example: Example<S>): Optional<S>
Link copied to clipboard
abstract fun flush()
Link copied to clipboard
abstract fun getById(id: ID): T
Link copied to clipboard
abstract fun getOne(id: ID): T
Link copied to clipboard
abstract fun getReferenceById(id: ID): T
Link copied to clipboard
abstract fun <S : T?> save(entity: S): S
Link copied to clipboard
abstract fun <S : T?> saveAll(entities: Iterable<S>): Iterable<S>
abstract fun <S : T?> saveAll(entities: Iterable<S>): List<S>
Link copied to clipboard
abstract fun <S : T?> saveAllAndFlush(entities: Iterable<S>): List<S>
Link copied to clipboard
abstract fun <S : T?> saveAndFlush(entity: S): S
Link copied to clipboard
@Modifying(clearAutomatically = true )
@Query(value = "INSERT INTO " + SERVICES_CONFIGURATIONS_KEY + " (" + IDENTIFIER_KEY + "," + AUTO_RUN_AFTER_HOST_REBOOT_KEY + "," + PROGRAM_ARGUMENTS_KEY + "," + PURGE_NOHUP_OUT_AFTER_REBOOT_KEY + "," + SERVICE_IDENTIFIER_KEY + ") VALUES (" + ":" + IDENTIFIER_KEY + "," + ":" + AUTO_RUN_AFTER_HOST_REBOOT_KEY + "," + ":" + PROGRAM_ARGUMENTS_KEY + "," + ":" + PURGE_NOHUP_OUT_AFTER_REBOOT_KEY + "," + ":" + SERVICE_IDENTIFIER_KEY + ")", nativeQuery = true )
abstract fun storeConfiguration(@Param(value = "id") configurationId: String, @Param(value = "auto_run_after_host_reboot") autoRunAfterHostReboot: Boolean, @Param(value = "program_arguments") programArguments: String, @Param(value = "purge_nohup_out_after_reboot") purgeNohupOutAfterReboot: Boolean, @Param(value = "service_id") serviceId: String)
Query used to store a new configuration of a BrownieHostService