com.ibm.ims.db
Class StringClob

java.lang.Object
  |
  +--com.ibm.ims.db.StringClob
All Implemented Interfaces:
java.sql.Clob

public class StringClob
extends java.lang.Object
implements java.sql.Clob

Accepts a String and Implements the CLOB interface.


Field Summary
protected  java.lang.String sourceString
           
 
Constructor Summary
StringClob(java.lang.String sourceString)
           
 
Method Summary
 java.io.InputStream getAsciiStream()
           
 java.io.Reader getCharacterStream()
           
 java.lang.String getSubString(long pos, int length)
           
 long length()
           
 long position(java.sql.Clob searchstr, long start)
           
 long position(java.lang.String searchstr, long start)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceString

protected java.lang.String sourceString
Constructor Detail

StringClob

public StringClob(java.lang.String sourceString)
Method Detail

length

public long length()
            throws java.sql.SQLException
Specified by:
length in interface java.sql.Clob

getSubString

public java.lang.String getSubString(long pos,
                                     int length)
                              throws java.sql.SQLException
Specified by:
getSubString in interface java.sql.Clob

getCharacterStream

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

getAsciiStream

public java.io.InputStream getAsciiStream()
                                   throws java.sql.SQLException
Specified by:
getAsciiStream in interface java.sql.Clob

position

public long position(java.lang.String searchstr,
                     long start)
              throws java.sql.SQLException
Specified by:
position in interface java.sql.Clob

position

public long position(java.sql.Clob searchstr,
                     long start)
              throws java.sql.SQLException
Specified by:
position in interface java.sql.Clob


(C) International Business Machines Corporation 2004. All rights reserved.