Package com.j_spaces.jdbc.driver
Class Blob
java.lang.Object
com.j_spaces.jdbc.driver.ObjectWithUID
com.j_spaces.jdbc.driver.Blob
- All Implemented Interfaces:
Serializable,Comparable,Blob
The java.sql.Blob implementation
- Author:
- Michael Mitrani, 2Train4, 2004
- See Also:
-
Field Summary
FieldsFields inherited from class com.j_spaces.jdbc.driver.ObjectWithUID
entryUID, objectIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanvoidfree()getBinaryStream(long pos, long length) byte[]getBytes(long pos, int length) inthashCode()longlength()longposition(byte[] pattern, long start) longsetBinaryStream(long pos) intsetBytes(long pos, byte[] bytes) intsetBytes(long pos, byte[] bytes, int offset, int len) voidsetConnection(Connection conn) toString()voidtruncate(long len) Methods inherited from class com.j_spaces.jdbc.driver.ObjectWithUID
getEntryUID, getObjectIndex, setEntryUID, setObjectIndex
-
Field Details
-
blob
protected byte[] blob -
conn
-
-
Constructor Details
-
Blob
- Throws:
SQLException
-
Blob
public Blob(byte[] blob)
-
-
Method Details
-
length
- Specified by:
lengthin interfaceBlob- Throws:
SQLException
-
truncate
- Specified by:
truncatein interfaceBlob- Throws:
SQLException
-
getBytes
- Specified by:
getBytesin interfaceBlob- Throws:
SQLException
-
setBytes
- Specified by:
setBytesin interfaceBlob- Throws:
SQLException
-
setBytes
- Specified by:
setBytesin interfaceBlob- Throws:
SQLException
-
position
- Specified by:
positionin interfaceBlob- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStreamin interfaceBlob- Throws:
SQLException
-
getBinaryOutputStream
- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStreamin interfaceBlob- Throws:
SQLException
-
position
- Specified by:
positionin interfaceBlob- Throws:
SQLException
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable- Throws:
ClassCastException
-
toString
-
setConnection
-
free
- Specified by:
freein interfaceBlob- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStreamin interfaceBlob- Throws:
SQLException
-