public class BlobFromLocator
extends java.lang.Object
implements java.sql.Blob
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
BlobFromLocator.LocatorInputStream |
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
blobColumnName |
private ResultSetImpl |
creatorResultSet
The ResultSet that created this BLOB
|
private ExceptionInterceptor |
exceptionInterceptor |
private int |
numColsInResultSet |
private int |
numPrimaryKeys |
private java.util.List<java.lang.String> |
primaryKeyColumns |
private java.util.List<java.lang.String> |
primaryKeyValues |
private java.lang.String |
quotedId |
private java.lang.String |
tableName |
| Constructor and Description |
|---|
BlobFromLocator(ResultSetImpl creatorResultSetToSet,
int blobColumnIndex,
ExceptionInterceptor exceptionInterceptor)
Creates an updatable BLOB that can update in-place
|
| Modifier and Type | Method and Description |
|---|---|
(package private) java.sql.PreparedStatement |
createGetBytesStatement() |
void |
free() |
java.io.InputStream |
getBinaryStream() |
java.io.InputStream |
getBinaryStream(long pos,
long length) |
byte[] |
getBytes(long pos,
int length) |
(package private) byte[] |
getBytesInternal(java.sql.PreparedStatement pStmt,
long pos,
int length) |
long |
length() |
private void |
notEnoughInformationInQuery() |
long |
position(java.sql.Blob pattern,
long start) |
long |
position(byte[] pattern,
long start) |
java.io.OutputStream |
setBinaryStream(long indexToWriteAt) |
int |
setBytes(long writeAt,
byte[] bytes) |
int |
setBytes(long writeAt,
byte[] bytes,
int offset,
int length) |
void |
truncate(long length) |
private java.util.List<java.lang.String> primaryKeyColumns
private java.util.List<java.lang.String> primaryKeyValues
private ResultSetImpl creatorResultSet
private java.lang.String blobColumnName
private java.lang.String tableName
private int numColsInResultSet
private int numPrimaryKeys
private java.lang.String quotedId
private ExceptionInterceptor exceptionInterceptor
public BlobFromLocator(ResultSetImpl creatorResultSetToSet, int blobColumnIndex, ExceptionInterceptor exceptionInterceptor) throws java.sql.SQLException
creatorResultSetToSet - result setblobColumnIndex - column indexexceptionInterceptor - exception interceptorjava.sql.SQLException - if an error occursprivate void notEnoughInformationInQuery()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.io.OutputStream setBinaryStream(long indexToWriteAt)
throws java.sql.SQLException
setBinaryStream in interface java.sql.Blobjava.sql.SQLExceptionpublic java.io.InputStream getBinaryStream()
throws java.sql.SQLException
getBinaryStream in interface java.sql.Blobjava.sql.SQLExceptionpublic int setBytes(long writeAt,
byte[] bytes,
int offset,
int length)
throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLExceptionpublic int setBytes(long writeAt,
byte[] bytes)
throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLExceptionpublic byte[] getBytes(long pos,
int length)
throws java.sql.SQLException
getBytes in interface java.sql.Blobjava.sql.SQLExceptionpublic long length()
throws java.sql.SQLException
length in interface java.sql.Blobjava.sql.SQLExceptionpublic long position(java.sql.Blob pattern,
long start)
throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLExceptionpublic long position(byte[] pattern,
long start)
throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLExceptionpublic void truncate(long length)
throws java.sql.SQLException
truncate in interface java.sql.Blobjava.sql.SQLExceptionjava.sql.PreparedStatement createGetBytesStatement()
throws java.sql.SQLException
java.sql.SQLExceptionbyte[] getBytesInternal(java.sql.PreparedStatement pStmt,
long pos,
int length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void free()
throws java.sql.SQLException
free in interface java.sql.Blobjava.sql.SQLExceptionpublic java.io.InputStream getBinaryStream(long pos,
long length)
throws java.sql.SQLException
getBinaryStream in interface java.sql.Blobjava.sql.SQLException