Package org.ozoneDB.core.DbRemote

Examples of org.ozoneDB.core.DbRemote.DbXMLForObj.perform()


    public Node xmlForObject(OzoneRemote rObj, Document domFactory) throws Exception {

        // creating the chunk is not really needed but should work ;)
        DbXMLForObj command = new DbXMLForObj((OzoneProxy) rObj);
        command.perform(env.transactionManager.currentTA());
        byte[] bytes = (byte[]) command.result;

        SAXChunkConsumer consumer = new SAXChunkConsumer(domFactory, null);
        consumer.processChunk(bytes);
View Full Code Here


    public void xmlForObject(OzoneRemote rObj, ContentHandler ch) throws Exception {

        // creating the chunk is not really needed but should work ;)
        DbXMLForObj command = new DbXMLForObj((OzoneProxy) rObj);
        command.perform(env.transactionManager.currentTA());
        byte[] bytes = (byte[]) command.result;

        SAXChunkConsumer consumer = new SAXChunkConsumer(ch);
        consumer.processChunk(bytes);
    }
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.