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

Package class diagram package 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:
Clob
Direct Known Subclasses:
ThrowingClobJdbc4

public abstract class ThrowingClobJdbc3
extends Thrower
implements 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
 InputStream getAsciiStream()
          
 Reader getCharacterStream()
          
 String getSubString(long pos, int length)
          
 long length()
          
 long position(Clob searchstr, long start)
          
 long position(String searchstr, long start)
          
 OutputStream setAsciiStream(long pos)
          
 Writer setCharacterStream(long pos)
          
 int setString(long pos, String str)
          
 int setString(long pos, 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
 
Methods inherited from interface java.sql.Clob
free, getCharacterStream
 

Constructor Detail

ThrowingClobJdbc3

public ThrowingClobJdbc3()
Method Detail

getAsciiStream

public InputStream getAsciiStream()
                           throws SQLException

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

getCharacterStream

public Reader getCharacterStream()
                          throws SQLException

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

getSubString

public String getSubString(long pos,
                           int length)
                    throws SQLException

Specified by:
getSubString in interface Clob
Throws:
SQLException
See Also:
Clob.getSubString(long, int)

length

public long length()
            throws SQLException

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

position

public long position(String searchstr,
                     long start)
              throws SQLException

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

position

public long position(Clob searchstr,
                     long start)
              throws SQLException

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

setAsciiStream

public OutputStream setAsciiStream(long pos)
                            throws SQLException

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

setCharacterStream

public Writer setCharacterStream(long pos)
                          throws SQLException

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

setString

public int setString(long pos,
                     String str)
              throws SQLException

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

setString

public int setString(long pos,
                     String str,
                     int offset,
                     int len)
              throws SQLException

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

truncate

public void truncate(long len)
              throws SQLException

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


Copyright © 2000-2010 PanEris. All Rights Reserved.