update Service Status

@Modifying(clearAutomatically = true )
@Query(value = ""UPDATE " + SERVICES_KEY + " SET " + STATUS_KEY + "=:" + STATUS_KEY + "," + PID_KEY + "=:" + PID_KEY + _WHERE_ + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true )
abstract fun updateServiceStatus(@Param(value = "id") serviceId: String, @Param(value = "status") status: String, @Param(value = "pid") pid: Long)

Query used to update a service status and its pid

Parameters

serviceId

The identifier of the service

status

The status to set

pid

The pid to set