Interface LdapEntryMapper


  • public interface LdapEntryMapper
    Similar to org.springframework.jdbc.core.RowMapper, but for LDAPSearchResults rather than ResultSets. The callback method signature is slightly different than org.springframework.jdbc.core.RowMapper#mapRow(java.sql.ResultSet, int) due to API differences between Novell and JDBC libraries. Clients interact with LDAPSearchResults as if it were a collection of LDAPEntry, so passing the entire LDAPSearchResults object to {@Link {@link #mapLdapEntry(LDAPEntry, int)} places undue burden on implementations.
    Author:
    Dan McCallum (dmccallum@unicon.net)
    • Method Detail

      • mapLdapEntry

        Object mapLdapEntry​(com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPEntry entry,
                            int resultNum)
        Map the given LDAPEntry onto some Object.
        Parameters:
        entry - the LDAPEntry to map
        resultNum - the number of times this mapper has been invoked for the current LDAP search result set. One-based.
        Returns:
        the mapped LDAPEntry