java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.mfa.SecurityEventRowMapper
All Implemented Interfaces:
org.springframework.jdbc.core.RowMapper<SecurityEvent>

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

    • SecurityEventRowMapper

      public SecurityEventRowMapper()
  • Method Details

    • mapRow

      public SecurityEvent mapRow(ResultSet rs, int rowNum) throws SQLException
      Maps the current row.
      Specified by:
      mapRow in interface org.springframework.jdbc.core.RowMapper<SecurityEvent>
      Parameters:
      rs - result set positioned on the row.
      rowNum - number of the row.
      Returns:
      the event; its user, username and detail are null when the column is null.
      Throws:
      SQLException - if a column cannot be read.