count
User
Owned
Links
@Query(value = "SELECT COUNT(*) FROM " + LINKS_KEY + _WHERE_
+ OWNER_KEY + "=:" + USER_IDENTIFIER_KEY + " AND dtype='" + LINK_KEY + "'",
nativeQuery = true
)
Method to count the user's owned links
Return
the count of the user links as long
Parameters
userId
The identifier of the user