Services
Configurations
Repository
The ServicesConfigurationsRepository
interface is useful to manage the queries of the ServiceConfiguration
Author
N7ghtm4r3 - Tecknobit
See also
JpaRepository
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
)
Query used to edit an existing configuration
of a
BrownieHostService
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
)
Query used to store a new configuration of a
BrownieHostService