java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.ott.OneTimeCodeRowMapper
All Implemented Interfaces:
org.springframework.jdbc.core.RowMapper<OneTimeCode>

@Component public class OneTimeCodeRowMapper extends Object implements org.springframework.jdbc.core.RowMapper<OneTimeCode>
Maps a row of the ott_codes table to a OneTimeCode.
  • Constructor Details

    • OneTimeCodeRowMapper

      public OneTimeCodeRowMapper()
  • Method Details

    • mapRow

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