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

Package class diagram package ThrowingNClob
java.lang.Object
  extended by org.melati.poem.dbms.test.sql.Thrower
      extended by org.melati.poem.dbms.test.sql.ThrowingNClob
All Implemented Interfaces:
Clob, NClob

public class ThrowingNClob
extends Thrower
implements NClob

Since:
5 Feb 2008
Author:
timp

Constructor Summary
ThrowingNClob(NClob nc)
          Constructor.
 
Method Summary
 void free()
          
 InputStream getAsciiStream()
          
 Reader getCharacterStream()
          
 Reader getCharacterStream(long pos, long length)
          
 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
 

Constructor Detail

ThrowingNClob

public ThrowingNClob(NClob nc)
Constructor.

Method Detail

free

public void free()
          throws SQLException

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

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()

getCharacterStream

public Reader getCharacterStream(long pos,
                                 long length)
                          throws SQLException

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

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.