private static class P2JPostgreSQLDialect.FWDBlob
extends java.lang.Object
implements java.sql.Blob
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
data
The data.
|
| Constructor and Description |
|---|
FWDBlob(byte[] data)
Create a new CLOB instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
free()
Release the
data. |
java.io.InputStream |
getBinaryStream()
Get the binary stream for the data.
|
java.io.InputStream |
getBinaryStream(long pos,
long length)
Get the binary stream starting from the given position, and with the specified length.
|
byte[] |
getBytes(long pos,
int length)
Get the sub-array starting from the given position, and with the specified length.
|
long |
length()
Get the
data length. |
long |
position(java.sql.Blob pattern,
long start)
Operation not allowed.
|
long |
position(byte[] pattern,
long start)
Operation not allowed.
|
java.io.OutputStream |
setBinaryStream(long pos)
Operation not allowed.
|
int |
setBytes(long pos,
byte[] bytes)
Operation not allowed.
|
int |
setBytes(long pos,
byte[] bytes,
int offset,
int len)
Operation not allowed.
|
void |
truncate(long len)
Operation not allowed.
|
public FWDBlob(byte[] data)
data - The data.public long length()
throws java.sql.SQLException
data length.length in interface java.sql.Blobjava.sql.SQLExceptionpublic byte[] getBytes(long pos,
int length)
throws java.sql.SQLException
getBytes in interface java.sql.Blobpos - The 1-based position.length - The length.java.sql.SQLExceptionpublic java.io.InputStream getBinaryStream()
throws java.sql.SQLException
getBinaryStream in interface java.sql.Blobjava.sql.SQLExceptionpublic java.io.InputStream getBinaryStream(long pos,
long length)
throws java.sql.SQLException
getBinaryStream in interface java.sql.Blobpos - The 1-based position.length - The length.java.sql.SQLExceptionpublic void free()
throws java.sql.SQLException
data.free in interface java.sql.Blobjava.sql.SQLExceptionpublic long position(byte[] pattern,
long start)
throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLException - Alwayspublic long position(java.sql.Blob pattern,
long start)
throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLException - Alwayspublic int setBytes(long pos,
byte[] bytes)
throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLException - Alwayspublic int setBytes(long pos,
byte[] bytes,
int offset,
int len)
throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLException - Alwayspublic java.io.OutputStream setBinaryStream(long pos)
throws java.sql.SQLException
setBinaryStream in interface java.sql.Blobjava.sql.SQLException - Alwayspublic void truncate(long len)
throws java.sql.SQLException
truncate in interface java.sql.Blobjava.sql.SQLException - Always