handle Host Status

@Modifying(clearAutomatically = true )
@Query(value = ""UPDATE " + HOSTS_KEY + " SET " + STATUS_KEY + "=:" + STATUS_KEY + _WHERE_ + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true )
abstract fun handleHostStatus(@Param(value = "id") hostId: String, @Param(value = "status") status: String)

Query used to handle the current status of the host

Parameters

hostId

The identifier of the host

status

The current status of the host