public static RowMapper getRowMapper ( ResultSet rs , Class returnTypeClass , Calendar cal ) { Class < ? extends RowMapper > rm = _rowMappings . get ( returnTypeClass ) ; if ( rm != null ) { return getMapper ( rm , rs , returnTypeClass , cal ) ; } // // if we made it to here, check if the default XMLObject Mapper can be used, // otherwise use the default object mapper // if ( XMLOBJ_CLASS != null && XMLOBJ_CLASS . isAssignableFrom ( returnTypeClass ) ) { return getMapper ( DEFAULT_XMLOBJ_ROWMAPPING , rs , returnTypeClass , cal ) ; } else { return getMapper ( DEFAULT_OBJ_ROWMAPPING , rs , returnTypeClass , cal ) ; } }
Get a RowMapper instance which knows how to map a ResultSet row to the given return type .