パッケージ org.postgresql.jdbc
クラス AbstractBlobClob
java.lang.Object
org.postgresql.jdbc.AbstractBlobClob
This class holds all of the methods common to both Blobs and Clobs.
-
フィールドの概要
フィールド -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明protected void
addSubLO
(LargeObject subLO) protected void
assertPosition
(long pos) Throws an exception if the pos value exceeds the max value by which the large object API can index.protected void
assertPosition
(long pos, long len) Throws an exception if the pos value exceeds the max value by which the large object API can index.protected void
Checks that this LOB hasn't been free()d already.void
free()
byte[]
getBytes
(long pos, int length) protected LargeObject
getLo
(boolean forWrite) long
length()
long
position
(byte[] pattern, long start) Iterate over the buffer looking for the specified pattern.long
This is simply passing the byte value of the pattern Blob.setBinaryStream
(long pos) void
truncate
(long len) For Blobs this should be in bytes while for Clobs it should be in characters.
-
フィールド詳細
-
conn
-
lock
-
-
コンストラクタの詳細
-
AbstractBlobClob
- 例外:
SQLException
-
-
メソッドの詳細
-
free
- 例外:
SQLException
-
truncate
For Blobs this should be in bytes while for Clobs it should be in characters. Since we really haven't figured out how to handle character sets for Clobs the current implementation uses bytes for both Blobs and Clobs.- パラメータ:
len
- maximum length- 例外:
SQLException
- if operation fails
-
length
- 例外:
SQLException
-
getBytes
- 例外:
SQLException
-
getBinaryStream
- 例外:
SQLException
-
setBinaryStream
- 例外:
SQLException
-
position
Iterate over the buffer looking for the specified pattern.- パラメータ:
pattern
- A pattern of bytes to search the blob forstart
- The position to start reading from- 戻り値:
- position of the specified pattern
- 例外:
SQLException
- if something wrong happens
-
position
This is simply passing the byte value of the pattern Blob.- パラメータ:
pattern
- search patternstart
- start position- 戻り値:
- position of given pattern
- 例外:
SQLException
- if something goes wrong
-
assertPosition
Throws an exception if the pos value exceeds the max value by which the large object API can index.- パラメータ:
pos
- Position to write at.- 例外:
SQLException
- if something goes wrong
-
assertPosition
Throws an exception if the pos value exceeds the max value by which the large object API can index.- パラメータ:
pos
- Position to write at.len
- number of bytes to write.- 例外:
SQLException
- if something goes wrong
-
checkFreed
Checks that this LOB hasn't been free()d already.- 例外:
SQLException
- if LOB has been freed.
-
getLo
- 例外:
SQLException
-
addSubLO
-