public void update(Session session, Node parentNode, String nodeName, Object object) { try { ClassDescriptor classDescriptor = mapper.getClassDescriptorByClass(ReflectionUtils.getBeanClass(object)); Node objectNode = getNode(parentNode,classDescriptor,nodeName,object); update(session, objectNode, object); } catch (PathNotFoundException pnfe) { throw new ObjectContentManagerException("Impossible to update the object: " + nodeName + " at node : " + parentNode, pnfe); } catch (RepositoryException re) { throw new org.apache.jackrabbit.ocm.exception.RepositoryException("Impossible to update the object: " + nodeName + " at node : " + parentNode, re); } }
/** * * @see org.apache.jackrabbit.ocm.manager.objectconverter.ObjectConverter#update(javax.jcr.Session, * javax.jcr.Node, java.lang.String, java.lang.Object) */ public void update(Session session, Node parentNode, String nodeName, Object object) { try { ClassDescriptor classDescriptor = mapper.getClassDescriptorByClass(ReflectionUtils.getBeanClass(object)); Node objectNode = getNode(parentNode,classDescriptor,nodeName,object); update(session, objectNode, object); } catch (PathNotFoundException pnfe) { throw new ObjectContentManagerException("Impossible to update the object: " + nodeName + " at node : " + parentNode, pnfe); } catch (RepositoryException re) { throw new org.apache.jackrabbit.ocm.exception.RepositoryException("Impossible to update the object: " + nodeName + " at node : " + parentNode, re); } }