org.melati.poem.dbms.test.sql
Class ThrowingClobJdbc3

java.lang.Object
  extended by org.melati.poem.dbms.test.sql.Thrower
      extended by org.melati.poem.dbms.test.sql.ThrowingClobJdbc3
All Implemented Interfaces:
java.sql.Clob
Direct Known Subclasses:
ThrowingClobVariant

public abstract class ThrowingClobJdbc3
extends Thrower
implements java.sql.Clob

The JDBC3 members of a Clob, decorated to throw an SQLException on command.

Since:
5 Feb 2008
Author:
timp

Constructor Summary
ThrowingClobJdbc3()
           
 
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)
          
 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 org.melati.poem.dbms.test.sql.Thrower
shouldThrow, startThrowing, startThrowingAfter, stopThrowing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrowingClobJdbc3

public ThrowingClobJdbc3()
Method Detail

getAsciiStream

public java.io.InputStream getAsciiStream()
                                   throws java.sql.SQLException

Specified by:
getAsciiStream in interface java.sql.Clob
Throws:
java.sql.SQLException
See Also:
Clob.getAsciiStream()

getCharacterStream

public java.io.Reader getCharacterStream()
                                  throws java.sql.SQLException

Specified by:
getCharacterStream in interface java.sql.Clob
Throws:
java.sql.SQLException
See Also:
Clob.getCharacterStream()

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
See Also:
Clob.getSubString(long, int)

length

public long length()
            throws java.sql.SQLException

Specified by:
length in interface java.sql.Clob
Throws:
java.sql.SQLException
See Also:
Clob.length()

position

public long position(java.lang.String searchstr,
                     long start)
              throws java.sql.SQLException

Specified by:
position in interface java.sql.Clob
Throws:
java.sql.SQLException
See Also:
Clob.position(java.lang.String, long)

position

public long position(java.sql.Clob searchstr,
                     long start)
              throws java.sql.SQLException

Specified by:
position in interface java.sql.Clob
Throws:
java.sql.SQLException
See Also:
Clob.position(java.sql.Clob, long)

setAsciiStream

public java.io.OutputStream setAsciiStream(long pos)
                                    throws java.sql.SQLException

Specified by:
setAsciiStream in interface java.sql.Clob
Throws:
java.sql.SQLException
See Also:
Clob.setAsciiStream(long)

setCharacterStream

public java.io.Writer setCharacterStream(long pos)
                                  throws java.sql.SQLException

Specified by:
setCharacterStream in interface java.sql.Clob
Throws:
java.sql.SQLException
See Also:
Clob.setCharacterStream(long)

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
See Also:
Clob.setString(long, java.lang.String)

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
See Also:
Clob.setString(long, java.lang.String, int, int)

truncate

public void truncate(long len)
              throws java.sql.SQLException

Specified by:
truncate in interface java.sql.Clob
Throws:
java.sql.SQLException
See Also:
Clob.truncate(long)


Copyright © 2000-2008 PanEris. All Rights Reserved.