Package org.exist.storage

Examples of org.exist.storage.DBBroker.release()


                {broker.getIndexController().reindex(transaction, reindexRoot, StreamListener.STORE);}
        } catch (final EXistException e) {
            LOG.warn("Exception while inserting node: " + e.getMessage(), e);
        } finally {
          if (broker != null)
            broker.release();
        }
        return oldNode;
    }

    public void removeAppendAttributes(Txn transaction, NodeList removeList, NodeList appendList) {
View Full Code Here


        } catch (final EXistException e) {
            LOG.warn("Exception while inserting node: " + e.getMessage(), e);
        } finally {
            if (broker != null)
            broker.release();
        }
    }

    @Deprecated
    private class AttribVisitor implements NodeVisitor {
View Full Code Here

            broker.flush();
        } catch (final EXistException e) {
            LOG.warn("Exception while inserting node: " + e.getMessage(), e);
        } finally {
          if (broker != null)
            broker.release();
        }
        //return oldChild;  // method is spec'd to return the old child, even though that's probably useless in this case
        return newNode; //returning the newNode is more sensible than returning the oldNode
    }
View Full Code Here

        } finally {
          if (broker != null) {
            try {
              transact.close(transaction);
            } finally {
              broker.release();
            }
          }
        }
    }
View Full Code Here

            broker.flush();
        } catch (final EXistException e) {
            LOG.warn("Exception while appending child node: " + e.getMessage(), e);
        } finally {
          if (broker != null)
            broker.release();
        }
    }

    /**
     * Internal append.
View Full Code Here

            }
        } catch (final EXistException e) {
            LOG.warn("Exception while appending node: " + e.getMessage(), e);
        } finally {
          if (broker != null)
            broker.release();
        }
        return null;
    }

    @Override
View Full Code Here

                }
            } catch (final EXistException e) {
                LOG.warn("Exception while retrieving attributes: " + e.getMessage());
            } finally {
              if (broker != null)
                broker.release();
            }
        }
        if (declaresNamespacePrefixes()) {
            for (final Iterator<Map.Entry<String, String>> i =
                    namespaceMappings.entrySet().iterator(); i.hasNext(); ) {
View Full Code Here

            return findAttribute(qname, iterator, this);
        } catch (final EXistException e) {
            LOG.warn("Exception while retrieving attributes: " + e.getMessage());
        } finally {
          if (broker != null)
            broker.release();
        }
        return null;
    }

    private AttrImpl findAttribute(String qname, Iterator<StoredNode> iterator, StoredNode current) {
View Full Code Here

            return findAttribute(qname, iterator, this);
        } catch (final EXistException e) {
            LOG.warn("Exception while retrieving attributes: " + e.getMessage());
        } finally {
          if (broker != null)
            broker.release();
        }
        return null;
    }

    private AttrImpl findAttribute(QName qname, Iterator<StoredNode> iterator, StoredNode current) {
View Full Code Here

            LOG.warn("Internal error while reading child nodes: " + e.getMessage(), e);
        } catch (final EXistException e) {
            LOG.warn("Internal error while reading child nodes: " + e.getMessage(), e);
        } finally {
          if (broker != null)
            broker.release();
        }
        return childList;
    }

    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.