java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.account.AccountTokenRowMapper
All Implemented Interfaces:
org.springframework.jdbc.core.RowMapper<AccountToken>

@Component public class AccountTokenRowMapper extends Object implements org.springframework.jdbc.core.RowMapper<AccountToken>
Maps a row of the account_tokens table to an AccountToken.
  • Constructor Details

    • AccountTokenRowMapper

      public AccountTokenRowMapper()
  • Method Details

    • mapRow

      public AccountToken mapRow(ResultSet rs, int rowNum) throws SQLException
      Maps the current row.
      Specified by:
      mapRow in interface org.springframework.jdbc.core.RowMapper<AccountToken>
      Parameters:
      rs - result set positioned on the row.
      rowNum - number of the row.
      Returns:
      the token; its used-at instant is null when the token was never used.
      Throws:
      SQLException - if a column cannot be read.