Examples of objectWith()


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

        if (nodeId.getTreeLevel() == 1)
            {return getDocumentElement();}
        DBBroker broker = null;
        try {
            broker = pool.get(null);
            return broker.objectWith(this, nodeId);
        } catch (final EXistException e) {
            LOG.warn("Error occured while retrieving node: " + e.getMessage(), e);
        } finally {
            pool.release(broker);
        }
View Full Code Here

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

        if(p.getNodeId().getTreeLevel() == 1)
            {return getDocumentElement();}
        DBBroker broker = null;
        try {
            broker = pool.get(null);
            return broker.objectWith(p);
        } catch (final Exception e) {
            LOG.warn("Error occured while retrieving node: " + e.getMessage(), e);
        } finally {
            pool.release(broker);
        }
View Full Code Here

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

        if (children == 0)
            {return null;}
        DBBroker broker = null;
        try {
            broker = pool.get(null);
            return broker.objectWith(new NodeProxy(this, NodeId.DOCUMENT_NODE, childAddress[0]));
        } catch (final EXistException e) {
            LOG.warn("Exception while inserting node: " + e.getMessage(), e);
            //TODO : throw exception ?
        } finally {
            pool.release(broker);
View Full Code Here

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

        final NodeListImpl list = new NodeListImpl();
        DBBroker broker = null;
        try {
            broker = pool.get(null);
            for (int i = 0; i < children; i++) {
                final Node child = broker.objectWith(new NodeProxy(this, NodeId.DOCUMENT_NODE, childAddress[i]));
                list.add(child);
            }
        } catch (final EXistException e) {
            LOG.warn("Exception while retrieving child nodes: " + e.getMessage(), e);
        } finally {
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.