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

@Component public class PhoneVerificationRowMapper extends Object implements org.springframework.jdbc.core.RowMapper<PhoneVerification>
Maps the pending_* columns of a row of the user_phones table to a PhoneVerification.
  • Constructor Details

    • PhoneVerificationRowMapper

      public PhoneVerificationRowMapper()
  • Method Details

    • mapRow

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