update
Link
@Modifying(clearAutomatically = true
)
@Query(value = ""UPDATE " + LINKS_KEY + " SET " +
TITLE_KEY + "=:" + TITLE_KEY + "," +
THUMBNAIL_PREVIEW_KEY + "=:" + THUMBNAIL_PREVIEW_KEY + "," +
DESCRIPTION_KEY + "=:" + DESCRIPTION_KEY + "," +
REFERENCE_LINK_KEY + "=:" + REFERENCE_LINK_KEY +
" WHERE " + LINK_IDENTIFIER_KEY + "=:" + LINK_IDENTIFIER_KEY + " AND " + OWNER_KEY + "=:" + OWNER_KEY",
nativeQuery = true
)
Method to execute the query to update a link
Parameters
linkId
The identifier of the link
title
The title of the link
thumbnailPreview
The url of the thumbnail preview of the link
description
The description of the link
referenceLink
The reference link value
owner
The owner of the link