com.ibm.jtopenlite.database.jdbc

Class JDBCClob

  • java.lang.Object
    • com.ibm.jtopenlite.database.jdbc.JDBCClob
  • All Implemented Interfaces:
    java.sql.Clob


    public class JDBCClob
    extends java.lang.Object
    implements java.sql.Clob
    • Constructor Summary

      Constructors 
      Constructor and Description
      JDBCClob(byte[] data, int offset, int len, int ccsid) 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.io.InputStream getAsciiStream()
      This is a ByteArrayInputStream wrapper around String.getBytes("ASCII").
      java.io.Reader getCharacterStream()
      This is a StringReader wrapper.
      java.lang.String getSubString(long pos, int length) 
      long length() 
      long position(java.sql.Clob pattern, long start) 
      long position(java.lang.String patternString, long start) 
      java.io.OutputStream setAsciiStream(long pos) 
      java.io.Writer setCharacterStream(long pos) 
      int setString(long pos, java.lang.String str) 
      int setString(long pos, java.lang.String str, int offset, int len) 
      void truncate(long len) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.sql.Clob

        free, getCharacterStream
    • Constructor Detail

      • JDBCClob

        public JDBCClob(byte[] data,
                int offset,
                int len,
                int ccsid)
    >
    • Method Detail

      • getAsciiStream

        public java.io.InputStream getAsciiStream()
                                           throws java.sql.SQLException
        This is a ByteArrayInputStream wrapper around String.getBytes("ASCII").
        Specified by:
        getAsciiStream in interface java.sql.Clob
        Throws:
        java.sql.SQLException
      • getCharacterStream

        public java.io.Reader getCharacterStream()
                                          throws java.sql.SQLException
        This is a StringReader wrapper.
        Specified by:
        getCharacterStream in interface java.sql.Clob
        Throws:
        java.sql.SQLException
      • getSubString

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

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

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

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

        public java.io.OutputStream setAsciiStream(long pos)
                                            throws java.sql.SQLException
        Specified by:
        setAsciiStream in interface java.sql.Clob
        Throws:
        java.sql.SQLException
      • setCharacterStream

        public java.io.Writer setCharacterStream(long pos)
                                          throws java.sql.SQLException
        Specified by:
        setCharacterStream in interface java.sql.Clob
        Throws:
        java.sql.SQLException
      • setString

        public int setString(long pos,
                    java.lang.String str)
                      throws java.sql.SQLException
        Specified by:
        setString in interface java.sql.Clob
        Throws:
        java.sql.SQLException
      • setString

        public int setString(long pos,
                    java.lang.String str,
                    int offset,
                    int len)
                      throws java.sql.SQLException
        Specified by:
        setString in interface java.sql.Clob
        Throws:
        java.sql.SQLException
      • truncate

        public void truncate(long len)
                      throws java.sql.SQLException
        Specified by:
        truncate in interface java.sql.Clob
        Throws:
        java.sql.SQLException