com.metamatrix.query.processor.xml
Class XMLUtil

java.lang.Object
  extended by com.metamatrix.query.processor.xml.XMLUtil

public class XMLUtil
extends java.lang.Object

Utility methods to be used with the XML and XQuery processing.


Constructor Summary
XMLUtil()
           
 
Method Summary
static TupleSourceID createXMLTupleSource(BufferManager bufferMgr, java.lang.String tupleGroupName)
          Creates a buffer manager's id for XML based data.
static java.sql.SQLXML getFromBufferManager(BufferManager bufferMgr, TupleSourceID sourceId, java.util.Properties props)
          This will reconstruct the XML object from the buffer manager from given buffer manager id.
static TupleSourceID saveToBufferManager(BufferManager bufferMgr, java.lang.String tupleGroupName, java.sql.SQLXML srcXML, int chunkSize)
          This method saves the given XML object to the buffer manager's disk process and returns the id which is saved under.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLUtil

public XMLUtil()
Method Detail

saveToBufferManager

public static TupleSourceID saveToBufferManager(BufferManager bufferMgr,
                                                java.lang.String tupleGroupName,
                                                java.sql.SQLXML srcXML,
                                                int chunkSize)
                                         throws MetaMatrixComponentException
This method saves the given XML object to the buffer manager's disk process and returns the id which is saved under.

Throws:
MetaMatrixComponentException

getFromBufferManager

public static java.sql.SQLXML getFromBufferManager(BufferManager bufferMgr,
                                                   TupleSourceID sourceId,
                                                   java.util.Properties props)
This will reconstruct the XML object from the buffer manager from given buffer manager id.


createXMLTupleSource

public static TupleSourceID createXMLTupleSource(BufferManager bufferMgr,
                                                 java.lang.String tupleGroupName)
                                          throws MetaMatrixComponentException
Creates a buffer manager's id for XML based data.

Throws:
MetaMatrixComponentException


Copyright © 2009. All Rights Reserved.