uk.org.ogsadai.common
Class BinaryLob
java.lang.Object
|
+--uk.org.ogsadai.common.BinaryLob
- All Implemented Interfaces:
- java.sql.Blob
- Direct Known Subclasses:
- CharacterLob
- public class BinaryLob
- extends java.lang.Object
- implements java.sql.Blob
An implementation of java.sql.Blob
for use in OGSA-DAI the java.sql.ResultSet
implementation.
The BLOB is represented as a byte array.
- Author:
- The OGSA-DAI Project Team.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT_NOTICE
private static final java.lang.String COPYRIGHT_NOTICE
-
- See Also:
- Constant Field Values
mByteArray
protected byte[] mByteArray
-
Byte array representing the BLOB
BinaryLob
public BinaryLob()
length
public long length()
throws java.sql.SQLException
-
- Specified by:
length
in interface java.sql.Blob
-
java.sql.SQLException
getBytes
public byte[] getBytes(long pos,
int length)
throws java.sql.SQLException
-
- Specified by:
getBytes
in interface java.sql.Blob
-
java.sql.SQLException
getBinaryStream
public java.io.InputStream getBinaryStream()
throws java.sql.SQLException
-
- Specified by:
getBinaryStream
in interface java.sql.Blob
-
java.sql.SQLException
setBytes
public int setBytes(long pos,
byte[] bytes)
throws java.sql.SQLException
-
- Specified by:
setBytes
in interface java.sql.Blob
-
java.sql.SQLException
setBytes
public int setBytes(long pos,
byte[] bytes,
int offset,
int len)
throws java.sql.SQLException
-
- Specified by:
setBytes
in interface java.sql.Blob
-
java.sql.SQLException
setBinaryStream
public java.io.OutputStream setBinaryStream(long pos)
throws java.sql.SQLException
-
- Specified by:
setBinaryStream
in interface java.sql.Blob
-
java.sql.SQLException
position
public long position(byte[] pattern,
long start)
throws java.sql.SQLException
-
- Specified by:
position
in interface java.sql.Blob
-
java.sql.SQLException
position
public long position(java.sql.Blob pattern,
long start)
throws java.sql.SQLException
-
- Specified by:
position
in interface java.sql.Blob
-
java.sql.SQLException
truncate
public void truncate(long len)
throws java.sql.SQLException
-
- Specified by:
truncate
in interface java.sql.Blob
-
java.sql.SQLException