Package org.exist.storage

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


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

    @Override
View Full Code Here


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

    /**
 
View Full Code Here

        } finally {
          if (broker != null) {
          try {
            transact.close(transaction);
          } finally {
            broker.release();
          }
          }
        }
        return null;
    }
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();
        }
    }

    /**
     * Insert a list of nodes at the position following the reference
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();
        }
    }

    /**
     * Update the contents of this element. The passed list of nodes
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();
        }
    }

    /**
     * Update a child node. This method will only update the child node
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 newNode;
    }

    /**
 
View Full Code Here

        } catch (XMLDBException e) {
            e.printStackTrace();
            fail(e.getMessage());
        } finally {
            if (broker != null)
                broker.release();
        }
    }

    @Test
    public void saxEventModifications() throws EXistException {
View Full Code Here

        } catch (XMLDBException e) {
            e.printStackTrace();
            fail(e.getMessage());
        } finally {
            if (broker != null)
                broker.release();
        }
    }

    @Test
    public void saxEventModificationsAtXConf() throws EXistException {
View Full Code Here

        } catch (XMLDBException e) {
            e.printStackTrace();
            fail(e.getMessage());
        } finally {
            if (broker != null)
                broker.release();
        }
    }

    @After
    public void cleanDB() {
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.