count
Passwords
@Query(value = "SELECT COUNT(*) FROM " + PASSWORDS_KEY +
_WHERE_ + USER_IDENTIFIER_KEY + "=:" + USER_IDENTIFIER_KEY +
" AND " + TYPE_KEY + " IN (:" + TYPE_KEY + ")",
nativeQuery = true
)
Query used to count the total passwords
Return
the total passwords as long
Parameters
userId
The identifier of the user
types
The types of the passwords to include in the count