com.metamatrix.jdbc
Class MMSQLXML

java.lang.Object
  extended by com.metamatrix.jdbc.MMSQLXML
All Implemented Interfaces:
java.sql.SQLXML

public class MMSQLXML
extends java.lang.Object
implements java.sql.SQLXML

A MM specific implementation of the SQLXML object which is capable of accessing the SQLXML object as local object when used in the embedded product at the same time capable of using the streaming interface when used in remote clients.


Constructor Summary
MMSQLXML(StreamingLobChunckProducer.Factory lobChunckFactory)
           
 
Method Summary
 void free()
           
 java.io.InputStream getBinaryStream()
           
 java.io.Reader getCharacterStream()
           
<T extends javax.xml.transform.Source>
T
getSource(java.lang.Class<T> sourceClass)
           
 java.lang.String getString()
           
static java.sql.SQLXML newInstance(StreamingLobChunckProducer.Factory lobChunckFactory, XMLType srcXML)
           
 java.io.OutputStream setBinaryStream()
           
 java.io.Writer setCharacterStream()
           
<T extends javax.xml.transform.Result>
T
setResult(java.lang.Class<T> resultClass)
           
 void setString(java.lang.String value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MMSQLXML

public MMSQLXML(StreamingLobChunckProducer.Factory lobChunckFactory)
         throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

newInstance

public static java.sql.SQLXML newInstance(StreamingLobChunckProducer.Factory lobChunckFactory,
                                          XMLType srcXML)
                                   throws java.sql.SQLException
Throws:
java.sql.SQLException

getCharacterStream

public java.io.Reader getCharacterStream()
                                  throws java.sql.SQLException
Specified by:
getCharacterStream in interface java.sql.SQLXML
Throws:
java.sql.SQLException

getString

public java.lang.String getString()
                           throws java.sql.SQLException
Specified by:
getString in interface java.sql.SQLXML
Throws:
java.sql.SQLException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getSource

public <T extends javax.xml.transform.Source> T getSource(java.lang.Class<T> sourceClass)
                                               throws java.sql.SQLException
Specified by:
getSource in interface java.sql.SQLXML
Throws:
java.sql.SQLException

getBinaryStream

public java.io.InputStream getBinaryStream()
                                    throws java.sql.SQLException
Specified by:
getBinaryStream in interface java.sql.SQLXML
Throws:
java.sql.SQLException

free

public void free()
          throws java.sql.SQLException
Specified by:
free in interface java.sql.SQLXML
Throws:
java.sql.SQLException

setBinaryStream

public java.io.OutputStream setBinaryStream()
                                     throws java.sql.SQLException
Specified by:
setBinaryStream in interface java.sql.SQLXML
Throws:
java.sql.SQLException

setCharacterStream

public java.io.Writer setCharacterStream()
                                  throws java.sql.SQLException
Specified by:
setCharacterStream in interface java.sql.SQLXML
Throws:
java.sql.SQLException

setResult

public <T extends javax.xml.transform.Result> T setResult(java.lang.Class<T> resultClass)
                                               throws java.sql.SQLException
Specified by:
setResult in interface java.sql.SQLXML
Throws:
java.sql.SQLException

setString

public void setString(java.lang.String value)
               throws java.sql.SQLException
Specified by:
setString in interface java.sql.SQLXML
Throws:
java.sql.SQLException


Copyright © 2009. All Rights Reserved.