Clob (Java SE 26 & JDK 26)
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
NClob
- All Known Implementing Classes:
SerialClob
-
Method Summary
default voidclose()Closes and releases the resources held by this
Clobobject.voidfree()Closes and releases the resources held by this
Clobobject.Retrieves the
CLOBvalue designated by thisClobobject as an ascii stream.Retrieves the
CLOBvalue designated by thisClobobject as ajava.io.Readerobject (or as a stream of characters).getCharacterStream(long pos, long length) Returns a
Readerobject that contains a partialClobvalue, starting with the character specified by pos, which is length characters in length.getSubString(long pos, int length) Retrieves a copy of the specified substring in the
CLOBvalue designated by thisClobobject.longlength()Retrieves the number of characters in the
CLOBvalue designated by thisClobobject.longposition(String searchstr, long start) Retrieves the character position at which the specified substring
searchstrappears in the SQLCLOBvalue represented by thisClobobject.longposition(Clob searchstr, long start) Retrieves the character position at which the specified
Clobobjectsearchstrappears in thisClobobject.setAsciiStream(long pos) Retrieves a stream to be used to write Ascii characters to the
CLOBvalue that thisClobobject represents, starting at positionpos.setCharacterStream(long pos) Retrieves a stream to be used to write a stream of Unicode characters to the
CLOBvalue that thisClobobject represents, at positionpos.intWrites the given Java
Stringto theCLOBvalue that thisClobobject designates at the positionpos.intsetString(long pos, String str, int offset, int len) Writes
lencharacters ofstr, starting at characteroffset, to theCLOBvalue that thisClobrepresents.voidtruncate(long len) Truncates the
CLOBvalue that thisClobdesignates to have a length oflencharacters.
-
Method Details
-
length
-
getSubString
-
getCharacterStream
-
getAsciiStream
-
position
-
position
-
setString
-
setString
-
setAsciiStream
-
setCharacterStream
-
truncate
-
free
-
getCharacterStream
-
close
-