update
Analytic
@Modifying(clearAutomatically = true
)
@Query(value = ""UPDATE " + PERFORMANCE_ANALYTICS_KEY + " SET " +
DATA_UPDATES_KEY + "=:" + DATA_UPDATES_KEY + "," +
PERFORMANCE_VALUE_KEY + "=:" + PERFORMANCE_VALUE_KEY +
" WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY +
" AND " + CREATION_DATE_KEY + "=:" + CREATION_DATE_KEY +
" AND " + APP_VERSION_KEY + "=:" + APP_VERSION_KEY +
" AND " + PLATFORM_KEY + "=:#{#" + PLATFORM_KEY + ".name()}" +
" AND " + PERFORMANCE_ANALYTIC_TYPE_KEY + "=:#{#" + PERFORMANCE_ANALYTIC_TYPE_KEY + ".name()}" +
" AND " + APPLICATION_IDENTIFIER_KEY + "=:" + APPLICATION_IDENTIFIER_KEY",
nativeQuery = true
)
Method to update an existing analytic in the system
Parameters
updates
The updates number executed on the analytic
value
The representative value of the analytic
id
The identifier of the analytic
creationDate
The date when the analytic has been inserted in the system
appVersion
The application version related to the analytic
platform
The platform version related to the analytic
type
The type of the analytic
applicationId
The application identifier related to the analytic