java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.sms.UserPhoneRowMapper
All Implemented Interfaces:
org.springframework.jdbc.core.RowMapper<UserPhone>

@Component public class UserPhoneRowMapper extends Object implements org.springframework.jdbc.core.RowMapper<UserPhone>
Maps the verified columns of a row of the user_phones table to a UserPhone.
  • Constructor Details

    • UserPhoneRowMapper

      public UserPhoneRowMapper()
  • Method Details

    • mapRow

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