Class UserAccountRowMapper
java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.password.UserAccountRowMapper
- All Implemented Interfaces:
org.springframework.jdbc.core.RowMapper<UserAccountRow>
@Component
public class UserAccountRowMapper
extends Object
implements org.springframework.jdbc.core.RowMapper<UserAccountRow>
Maps a row of the
users table joined with user_passwords to a UserAccountRow. The
authorities are not part of the row: the repository loads them with a second query.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMaps the current row.
-
Constructor Details
-
UserAccountRowMapper
public UserAccountRowMapper()
-
-
Method Details
-
mapRow
Maps the current row.- Specified by:
mapRowin interfaceorg.springframework.jdbc.core.RowMapper<UserAccountRow>- Parameters:
rs- result set positioned on the row.rowNum- number of the row.- Returns:
- the row.
- Throws:
SQLException- if a column cannot be read.
-