Package com.microsoft.sqlserver.jdbc
Class SQLServerBlob
java.lang.Object
com.microsoft.sqlserver.jdbc.SQLServerBlob
- All Implemented Interfaces:
Serializable
,Blob
Represents a binary LOB object and implements a java.sql.Blob.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
free()
getBinaryStream(long pos, long length)
byte[]
getBytes(long pos, int length)
long
length()
long
position(byte[] bPattern, long start)
long
setBinaryStream(long pos)
int
setBytes(long pos, byte[] bytes)
int
setBytes(long pos, byte[] bytes, int offset, int len)
toString()
Returns string representation of objectvoid
truncate(long len)
-
Constructor Details
-
SQLServerBlob
Deprecated.UseSQLServerConnection.createBlob()
instead.Create a new BLOB- Parameters:
connection
- the database connection this blob is implemented ondata
- the BLOB's data
-
-
Method Details
-
toString
Returns string representation of object -
free
- Specified by:
free
in interfaceBlob
- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStream
in interfaceBlob
- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStream
in interfaceBlob
- Throws:
SQLException
-
getBytes
- Specified by:
getBytes
in interfaceBlob
- Throws:
SQLException
-
length
- Specified by:
length
in interfaceBlob
- Throws:
SQLException
-
position
- Specified by:
position
in interfaceBlob
- Throws:
SQLException
-
position
- Specified by:
position
in interfaceBlob
- Throws:
SQLException
-
truncate
- Specified by:
truncate
in interfaceBlob
- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStream
in interfaceBlob
- Throws:
SQLException
-
setBytes
- Specified by:
setBytes
in interfaceBlob
- Throws:
SQLException
-
setBytes
- Specified by:
setBytes
in interfaceBlob
- Throws:
SQLException
-
SQLServerConnection.createBlob()
instead.