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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfree()getBinaryStream(long pos, long length) byte[]getBytes(long pos, int length) longlength()longposition(byte[] bPattern, long start) longsetBinaryStream(long pos) intsetBytes(long pos, byte[] bytes) intsetBytes(long pos, byte[] bytes, int offset, int len) final StringtoString()Returns string representation of objectvoidtruncate(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:
freein interfaceBlob- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStreamin interfaceBlob- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStreamin interfaceBlob- Throws:
SQLException
-
getBytes
- Specified by:
getBytesin interfaceBlob- Throws:
SQLException
-
length
- Specified by:
lengthin interfaceBlob- Throws:
SQLException
-
position
- Specified by:
positionin interfaceBlob- Throws:
SQLException
-
position
- Specified by:
positionin interfaceBlob- Throws:
SQLException
-
truncate
- Specified by:
truncatein interfaceBlob- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStreamin interfaceBlob- Throws:
SQLException
-
setBytes
- Specified by:
setBytesin interfaceBlob- Throws:
SQLException
-
setBytes
- Specified by:
setBytesin interfaceBlob- Throws:
SQLException
-
SQLServerConnection.createBlob()instead.