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

Package class diagram package ThrowingBlobJdbc3
java.lang.Object
  extended by org.melati.poem.dbms.test.sql.Thrower
      extended by org.melati.poem.dbms.test.sql.ThrowingBlobJdbc3
All Implemented Interfaces:
Blob
Direct Known Subclasses:
ThrowingBlobJdbc4

public abstract class ThrowingBlobJdbc3
extends Thrower
implements Blob

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

Since:
5 Feb 2008
Author:
timp

Constructor Summary
ThrowingBlobJdbc3()
           
 
Method Summary
 InputStream getBinaryStream()
          
 byte[] getBytes(long pos, int length)
          
 long length()
          
 long position(Blob pattern, long start)
          
 long position(byte[] pattern, long start)
          
 OutputStream setBinaryStream(long pos)
          
 int setBytes(long pos, byte[] bytes)
          
 int setBytes(long pos, byte[] bytes, 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.Blob
free, getBinaryStream
 

Constructor Detail

ThrowingBlobJdbc3

public ThrowingBlobJdbc3()
Method Detail

getBinaryStream

public InputStream getBinaryStream()
                            throws SQLException

Specified by:
getBinaryStream in interface Blob
Throws:
SQLException
See Also:
Blob.getBinaryStream()

getBytes

public byte[] getBytes(long pos,
                       int length)
                throws SQLException

Specified by:
getBytes in interface Blob
Throws:
SQLException
See Also:
Blob.getBytes(long, int)

length

public long length()
            throws SQLException

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

position

public long position(byte[] pattern,
                     long start)
              throws SQLException

Specified by:
position in interface Blob
Throws:
SQLException
See Also:
Blob.position(byte[], long)

position

public long position(Blob pattern,
                     long start)
              throws SQLException

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

setBinaryStream

public OutputStream setBinaryStream(long pos)
                             throws SQLException

Specified by:
setBinaryStream in interface Blob
Throws:
SQLException
See Also:
Blob.setBinaryStream(long)

setBytes

public int setBytes(long pos,
                    byte[] bytes)
             throws SQLException

Specified by:
setBytes in interface Blob
Throws:
SQLException
See Also:
Blob.setBytes(long, byte[])

setBytes

public int setBytes(long pos,
                    byte[] bytes,
                    int offset,
                    int len)
             throws SQLException

Specified by:
setBytes in interface Blob
Throws:
SQLException
See Also:
Blob.setBytes(long, byte[], int, int)

truncate

public void truncate(long len)
              throws SQLException

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


Copyright © 2000-2010 PanEris. All Rights Reserved.