public Object getObjectFromNameClassPair(NameClassPair nameClassPair) { try { return mapper.mapFromNameClassPair(nameClassPair); } catch (NamingException e) { throw getExceptionTranslator().translate(e); } } }
/** * Cast the NameClassPair to a SearchResult and pass its attributes to * the AttributesMapper. * * @param nameClassPair * a SearchResult instance. * @return the Object returned from the Mapper. */ public Object getObjectFromNameClassPair(NameClassPair nameClassPair) { SearchResult searchResult = (SearchResult) nameClassPair; Attributes attributes = searchResult.getAttributes(); try { return mapper.mapFromAttributes(attributes); } catch (NamingException e) { throw getExceptionTranslator().translate(e); } } }
private Object executeWithContext(ContextExecutor ce, DirContext ctx) { try { return ce.executeWithContext(ctx); } catch (NamingException e) { throw getExceptionTranslator().translate(e); } finally { closeContext(ctx); } }
log.debug("PartialResultException encountered and ignored", e); } else { throw getExceptionTranslator().translate(e); throw getExceptionTranslator().translate(e); } finally { closeContextAndNamingEnumeration(ctx, results);
throw getExceptionTranslator().translate(e); } finally { try {