From: Pierrick B. <br...@us...> - 2006-01-06 22:34:57
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/xmlrpc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9251/src/org/exist/xmlrpc Modified Files: RpcConnection.java Log Message: Conitnued methods reordering Renamed some of them for consistency Index: RpcConnection.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xmlrpc/RpcConnection.java,v retrieving revision 1.121 retrieving revision 1.122 diff -C2 -d -r1.121 -r1.122 *** RpcConnection.java 5 Jan 2006 20:17:16 -0000 1.121 --- RpcConnection.java 6 Jan 2006 22:34:43 -0000 1.122 *************** *** 732,736 **** try { broker = brokerPool.get(user); ! DocumentImpl doc = (DocumentImpl)broker.getDocument(resource); if (doc == null) { transact.abort(transaction); --- 732,736 ---- try { broker = brokerPool.get(user); ! DocumentImpl doc = (DocumentImpl)broker.getResource(resource); if (doc == null) { transact.abort(transaction); *************** *** 1079,1083 **** try { broker = brokerPool.get(user); ! return (broker.getDocument(name) != null); } finally { brokerPool.release(broker); --- 1079,1083 ---- try { broker = brokerPool.get(user); ! return (broker.getResource(name) != null); } finally { brokerPool.release(broker); *************** *** 1405,1409 **** DocumentImpl doc; if (!documentCache.containsKey(docName)) { ! doc = (DocumentImpl) broker.getDocument(docName); documentCache.put(docName, doc); } else --- 1405,1409 ---- DocumentImpl doc; if (!documentCache.containsKey(docName)) { ! doc = (DocumentImpl) broker.getResource(docName); documentCache.put(docName, doc); } else *************** *** 1650,1654 **** if (!documentCache.containsKey(docName)) { LOG.debug("loading doc " + docName); ! doc = (DocumentImpl) broker.getDocument(docName); documentCache.put(docName, doc); } else --- 1650,1654 ---- if (!documentCache.containsKey(docName)) { LOG.debug("loading doc " + docName); ! doc = (DocumentImpl) broker.getResource(docName); documentCache.put(docName, doc); } else *************** *** 2447,2451 **** try { broker = brokerPool.get(user); ! broker.reindex(name); LOG.debug("collection " + name + " and sub collection reindexed"); } catch (Exception e) { --- 2447,2451 ---- try { broker = brokerPool.get(user); ! broker.reindexCollection(name); LOG.debug("collection " + name + " and sub collection reindexed"); } catch (Exception e) { |