java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.password.UserAccountRowMapper
All Implemented Interfaces:
org.springframework.jdbc.core.RowMapper<UserAccountRow>

@Component public class UserAccountRowMapper extends Object implements org.springframework.jdbc.core.RowMapper<UserAccountRow>
Maps a row of the users table joined with user_passwords to a UserAccountRow. The authorities are not part of the row: the repository loads them with a second query.
  • Constructor Details

    • UserAccountRowMapper

      public UserAccountRowMapper()
  • Method Details

    • mapRow

      public UserAccountRow mapRow(ResultSet rs, int rowNum) throws SQLException
      Maps the current row.
      Specified by:
      mapRow in interface org.springframework.jdbc.core.RowMapper<UserAccountRow>
      Parameters:
      rs - result set positioned on the row.
      rowNum - number of the row.
      Returns:
      the row.
      Throws:
      SQLException - if a column cannot be read.