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
)
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