Class CLOB
- All Implemented Interfaces:
Serializable,Clob,oracle.jdbc.internal.ACProxyable,oracle.jdbc.internal.OracleClob,oracle.jdbc.internal.OracleConcreteProxy,oracle.jdbc.internal.OracleDatumWithConnection,oracle.jdbc.internal.OracleLargeObject<char[]>,OracleClob
- Direct Known Subclasses:
NCLOB
Obtaining java.sql.Clob from ResultSet
java.sql.Clob clob = resultSet.getClob(...);
Creating a temporary Clob should use Connection.createClob()
java.sql.Clob clob = connection.createClob();
- See Also:
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.protected oracle.jdbc.driver.OracleClobDeprecated.Fields inherited from class oracle.sql.DatumWithConnection
targetDatumWithConnectionFields inherited from class oracle.sql.Datum
ojiOracleDatumWithConnection, targetDatum -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCLOB()Deprecated.protectedCLOB(oracle.jdbc.driver.OracleClob c) Deprecated.Call from empty lob static methodCLOB(OracleConnection conn, byte[] lob_descriptor, short csform) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Can the lob data be read directly from the locator?voidcloseLob()Deprecated.Close a previously opened CLOB.static CLOBcreateTemporary(Connection conn, boolean cache, int _duration) Deprecated.Create a temporary clob.static CLOBcreateTemporary(Connection conn, boolean cache, int _duration, short form_of_use) Deprecated.Create a temporary clob or nclob.static CLOBDeprecated.use getEmptyCLOB insteadvoidfree()Deprecated.Free the resources the clob holds.final Flow.Publisher<Void>Deprecated.Returns aPublisherthat publishes the result of freeing theClobobject and the resources that it holds.voidfreeLOB()Deprecated.voidDeprecated.Free the contents and the locator of the temporary clob.static voidfreeTemporary(CLOB temp_lob) Deprecated.Free the contents and the locator of the temporary clob.Deprecated.This method is deprecated.getAsciiOutputStream(long pos) Deprecated.This method is deprecated.Deprecated.Implements the Clob interface method.getAsciiStream(boolean isInternal) Deprecated.Implements the Clob interface method.getAsciiStream(long pos) Deprecated.Read from the CLOB as a stream at the requested position.intDeprecated.Oracle extension.Deprecated.This method is deprecated.getCharacterOutputStream(long pos) Deprecated.This method is deprecated.Deprecated.Implements the Clob interface method.getCharacterStream(long pos) Deprecated.Read from the CLOB as a stream at the requested position.getCharacterStream(long pos, long length) Deprecated.Return a character stream beginning at the specified position and ofthe specified length.intgetChars(long pos, int length, char[] buffer) Deprecated.Oracle extension.intDeprecated.Oracle extension.shortDeprecated.return the duration of a temporary LOBstatic shortgetDuration(CLOB lob) Deprecated.return the duration of a temporary LOBstatic CLOBDeprecated.Return a empty lob.static final shortgetFormOfUseFromLocator(byte[] lob_descriptor) Deprecated.Deprecated.Oracle extension Return the java.sql.Connection associated with the receiver.final oracle.jdbc.internal.OracleLargeObject.PrefetchData<char[]>Deprecated.final intDeprecated.getSubString(long pos, int length) Deprecated.Implements the Clob interface method.oracle.jdbc.driver.OracleClobDeprecated.booleanisConvertibleTo(Class<?> jClass) Deprecated.Test whether this data object can be converted to the specified Java data type.booleanDeprecated.Return true if this is a empty lob.final booleanisFree()Deprecated.booleanisNCLOB()Deprecated.booleanDeprecated.Check whether the CLOB is opened.booleanDeprecated.Returnstrueif this is a SecureFile (LOBs with the STORE AS SECUREFILE option, which were introduced in Oracle Database 11g Release 1).booleanDeprecated.Return true if the lob locator points to a temporary clob.static booleanisTemporary(CLOB lob) Deprecated.Return true if the lob locator points to a temporary clob.longlength()Deprecated.Implements the Clob interface method.voidopen(int mode) Deprecated, for removal: This API element is subject to removal in a future version.The name of this method is anticipated to conflict with a future version of the JDBC Specification.voidopenLob(LargeObjectAccessMode mode) Deprecated.Public method using enum instead of intlongDeprecated.Implements the Clob interface method.longDeprecated.Implements the Clob interface method.final Flow.Publisher<String>publisherOracle(long position, ErrorSet continueOnErrorSet) Deprecated.Returns aPublisherthat publishes the content of thisClobbeginning at the specified position.intputChars(long pos, char[] chars) Deprecated.Oracle extension.intputChars(long pos, char[] chars, int length) Deprecated.Oracle extension.intputChars(long pos, char[] chars, int offset, int length) Deprecated.Oracle extension.intDeprecated.This method is deprecated -- use setString.setAsciiStream(long pos) Deprecated.JDBC 3.0 Retrieves a stream to be used to write Ascii characters to theCLOBvalue that thisClobobject represents, starting at positionpos.voidsetBytes(byte[] locator) Deprecated.Sets datum value using a byte array.setCharacterStream(long pos) Deprecated.JDBC 3.0 Retrieves a stream to be used to write a stream of Unicode characters to theCLOBvalue that thisClobobject represents, at positionpos.final voidsetPrefetchData(oracle.jdbc.internal.OracleLargeObject.PrefetchData<char[]> prefetchData) Deprecated.intDeprecated.JDBC 3.0 Writes the given JavaStringto theCLOBvalue that thisClobobject designates at the positionpos.intDeprecated.JDBC 3.0 Writeslencharacters ofstr, starting at characteroffset, to theCLOBvalue that thisClobrepresents.Deprecated.Convert to a String representation of the datum objectfinal Flow.Subscriber<String>subscriberOracle(long position, Flow.Subscriber<Long> outcomeSubscriber, ErrorSet continueOnErrorSet) Deprecated.Returns aSubscriberthat will append the published characters to thisClobbeginning at the specified position.final Flow.Subscriber<String>subscriberOracle(long position, ErrorSet continueOnErrorSet) Deprecated.Returns aSubscriberthat will append the published characters to thisClobbeginning at the specified position.toJdbc()Deprecated.Convert this data object into its default Java object type.toSQLXML()Deprecated.Returns an object which impements java.sql.SQLXML with content take from this Clob.Deprecated.Returns an object which impements java.sql.SQLXML with content taken from this Clob.voidtrim(long newlen) Deprecated.This method is deprecated.voidtruncate(long len) Deprecated.JDBC 3.0 Truncates theCLOBvalue that thisClobdesignates to have a length oflencharacters.Methods inherited from class oracle.sql.DatumWithConnection
assertNotNull, assertNotNull, getConnection, getConnectionDuringExceptionHandling, getOracleConnectionMethods inherited from class oracle.sql.Datum
bigDecimalValue, booleanValue, bytesEqual, bytesHashCode, byteValue, compareBytes, dateValue, doubleValue, equals, floatValue, getBytes, getLength, getStream, intValue, isNull, longValue, setShareBytes, shareBytes, stringValue, timestampValue, timestampValue, timeValue, timeValue, toClassMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface oracle.jdbc.internal.OracleClob
publisherOracle, subscriberOracle, subscriberOracleMethods inherited from interface oracle.jdbc.OracleClob
close, isOpen, openMethods inherited from interface oracle.jdbc.internal.OracleDatumWithConnection
bigDecimalValue, booleanValue, byteValue, dateValue, doubleValue, floatValue, getBytes, getConnection, getInternalConnection, getLength, getOracleConnection, getStream, intValue, longValue, setPhysicalConnectionOf, setShareBytes, shareBytes, stringValue, timestampValue, timestampValue, timeValue, timeValue
-
Field Details
-
MAX_CHUNK_SIZE
public static final int MAX_CHUNK_SIZEDeprecated.- See Also:
-
DURATION_INVALID
public static final int DURATION_INVALIDDeprecated.- See Also:
-
DURATION_SESSION
public static final int DURATION_SESSIONDeprecated.- See Also:
-
DURATION_CALL
public static final int DURATION_CALLDeprecated.- See Also:
-
OLD_WRONG_DURATION_SESSION
public static final int OLD_WRONG_DURATION_SESSIONDeprecated.- See Also:
-
OLD_WRONG_DURATION_CALL
public static final int OLD_WRONG_DURATION_CALLDeprecated.- See Also:
-
MODE_READONLY
public static final int MODE_READONLYDeprecated.- See Also:
-
MODE_READWRITE
public static final int MODE_READWRITEDeprecated.- See Also:
-
target
protected oracle.jdbc.driver.OracleClob targetDeprecated.
-
-
Constructor Details
-
CLOB
Deprecated.- Throws:
SQLException
-
CLOB
Deprecated.Call from empty lob static method- Throws:
SQLException
-
CLOB
Deprecated.- Throws:
SQLException
-
-
Method Details
-
getTarget
public oracle.jdbc.driver.OracleClob getTarget()Deprecated. -
getFormOfUseFromLocator
public static final short getFormOfUseFromLocator(byte[] lob_descriptor) Deprecated. -
isNCLOB
public boolean isNCLOB()Deprecated.- Specified by:
isNCLOBin interfaceoracle.jdbc.internal.OracleClob- Returns:
- true if the data is bound for a SQL NCHAR datatype false otherwise
-
length
Deprecated.Implements the Clob interface method. Returns the number of characters in theCLOBvalue designated by thisClobobject.- Specified by:
lengthin interfaceClob- Returns:
- length of the
CLOBin characters - Throws:
SQLException- if there is an error accessing the length of theCLOB
-
publisherOracle
public final Flow.Publisher<String> publisherOracle(long position, ErrorSet continueOnErrorSet) throws SQLException Deprecated.Description copied from interface:OracleClobReturns aPublisherthat publishes the content of thisClobbeginning at the specified position. The argument to each call toSubscriber.onNextwill contain an implementation defined number of characters.Calling any method of this
ClobexceptisEmptyLob(),isSecureFile(),isTemporary(), or one defined byObjectbetween the time this method is called and the time when the returned publisher terminates will block.The returned publisher terminates once all subscribers have received
Subscriber.onComplete, receivedSubscriber.onError, or cancelled their subscription.Upon signalling demand to the returned
Publisher, LOB read operations will enter into the execution pipeline of this LOB's connection. If an operation fails with an error not in thecontinueOnErrorSet, the pipeline will abort all subsequent asynchronous operations, up to the nextOracleCommonConnection.resume().- Specified by:
publisherOraclein interfaceOracleClob- Parameters:
position- the position at which to start writing to the CLOB value that thisClobobject represents; The first position is 1continueOnErrorSet- Set of errors which do not cause subsequent operations to be aborted. Not null.- Returns:
- a
Publisherof the content of thisClob - Throws:
SQLException- if a database error occurs, or if this method is called on aClobthat has been freed, or ifpositionis less than 1
-
subscriberOracle
public final Flow.Subscriber<String> subscriberOracle(long position, ErrorSet continueOnErrorSet) throws SQLException Deprecated.Description copied from interface:OracleClobReturns aSubscriberthat will append the published characters to thisClobbeginning at the specified position.Calling any method of this
ClobexceptisEmptyLob(),isSecureFile(),isTemporary(), or one defined byObjectbetween the time this method is called and the time when the returnedSubscriberterminates will block.The returned
Subscriberterminates onceSubscriber.onCompleteis received,Subscriber.onErroris received, or its subscription is cancelled.Upon receiving characters from an upstream
Publisher, LOB write operations will enter into the execution pipeline of this LOB's connection. If an operation fails with an error not in thecontinueOnErrorSet, the pipeline will abort all subsequent asynchronous operations, up to the nextOracleCommonConnection.resume().- Specified by:
subscriberOraclein interfaceOracleClob- Parameters:
position- the position at which to start writing to the CLOB value that thisClobobject represents; The first position is 1continueOnErrorSet- Set of errors which do not cause subsequent operations to be aborted. Not null.- Returns:
- a
Subscriberthat appends characters to thisClob - Throws:
SQLException- if a database error occurs, or if this method is called on aClobthat has been freed, or ifpositionis less than 1
-
subscriberOracle
public final Flow.Subscriber<String> subscriberOracle(long position, Flow.Subscriber<Long> outcomeSubscriber, ErrorSet continueOnErrorSet) throws SQLException Deprecated.Description copied from interface:OracleClobReturns aSubscriberthat will append the published characters to thisClobbeginning at the specified position.Calling any method of this
ClobexceptisEmptyLob(),isSecureFile(),isTemporary(), or one defined byObjectbetween the time this method is called and the time when the returnedSubscriberterminates will block.The returned
Subscriberterminates onceSubscriber.onCompleteis received,Subscriber.onErroris received, or its subscription is cancelled.The outcome of writing published characters to the CLOB value that this Clob object represents is published to the
outcomeSubscriber:-
The
outcomeSubscriberreceives anonNextsignal each time a write to the CLOB value is successful. The number of characters transferred by each successful write is delivered with each invocation ofonNext. -
The
outcomeSubscriberreceives anonCompletesignal after the last published character has been written successfully. -
The
outcomeSubscriberreceives anonErrorsignal with aSQLExceptionif a failure occurs when writing published characters.
outcomeSubscribermust signal demand in order to receive any of the signals listed above. If more thanFlow.defaultBufferSize()writes have succeeded without demand from theoutcomeSubscriber, then the returned subscriber will not signal further demand until theoutcomeSubscriberhas also signalled demand.The number of writes used to transfer published characters to the CLOB value is implementation defined, and may be different from the number of Strings published to the returned
Subscriber.Upon receiving characters from an upstream
Publisher, LOB write operations will enter into the execution pipeline of this LOB's connection. If an operation fails with an error not in thecontinueOnErrorSet, the pipeline will abort all subsequent asynchronous operations, up to the nextOracleCommonConnection.resume().- Specified by:
subscriberOraclein interfaceOracleClob- Parameters:
position- the position at which to start writing to the CLOB value that thisClobobject represents; The first position is 1outcomeSubscriber- aSubscriberof write outcomes.continueOnErrorSet- Set of errors which do not cause subsequent operations to be aborted. Not null.- Returns:
- a
Subscriberthat appends characters to thisClob - Throws:
SQLException- if a database error occurs, or if this method is called on aClobthat has been freed, or ifpositionis less than 1
-
The
-
freeAsyncOracle
Deprecated.Returns aPublisherthat publishes the result of freeing theClobobject and the resources that it holds. The object is invalid after the returnedPublisherterminates withonComplete.After the returned
Publisherterminates withonComplete, any attempt to invoke a method other thanClob.free()orfreeAsyncOraclewill result in an SQLException being thrown. CallingfreeAsyncOracleon aClobobject that has already been freed is treated as a no-op.Calling any method of this
ClobexceptisEmptyLob(),isSecureFile(),isTemporary(), or one defined byObjectbetween the time this method is called and the time when the returnedSubscriberterminates will block.The returned publisher terminates once all subscribers have received
Subscriber.onComplete, receivedSubscriber.onError, or cancelled their subscription.The returned publisher will only emit
onCompleteoronError; No items are emitted toonNext.Implements the Reactive Extensions API by delegating to the
ojiOracleClob's implemenation.- Specified by:
freeAsyncOraclein interfaceOracleClob- Returns:
- a
Publisherof the result of freeing thisClob - Throws:
SQLException- if a database error occurs
-
getSubString
Deprecated.Implements the Clob interface method. Returns a copy of the specified substring in theCLOBvalue designated by thisClobobject. The substring begins at positionposand has up tolengthconsecutive characters.- Specified by:
getSubStringin interfaceClob- Parameters:
pos- the first character of the substring to be extracted. The first character is at position 1.length- the number of consecutive characters to be copied- Returns:
- a
Stringthat is the specified substring in theCLOBvalue designated by thisClobobject. If theposargument is larger than the length of the data the result is an emptyString. If theposargument is less than the length of the data, but the sum ofposargument and thelengthis greater than the length of the data, the result will be smaller than the length requested. - Throws:
SQLException- if there is an error accessing theCLOB
-
getCharacterStream
Deprecated.Implements the Clob interface method. Gets theClobcontents as a Unicode stream.- Specified by:
getCharacterStreamin interfaceClob- Returns:
- a Unicode stream containing the
CLOBdata - Throws:
SQLException- if there is an error accessing theCLOB
-
getAsciiStream
Deprecated.Implements the Clob interface method. Gets theCLOBvalue designated by thisClobobject as a stream of Ascii bytes.- Specified by:
getAsciiStreamin interfaceClob- Returns:
- an ascii stream containing the
CLOBdata - Throws:
SQLException- if there is an error accessing theCLOBvalue
-
getAsciiStream
Deprecated.Implements the Clob interface method. Gets theCLOBvalue designated by thisClobobject as a stream of Ascii bytes.- Returns:
- an ascii stream containing the
CLOBdata - Throws:
SQLException- if there is an error accessing theCLOBvalue
-
position
Deprecated.Implements the Clob interface method. Determine the character position at which the given substring- Specified by:
positionin interfaceClob- Parameters:
searchstr- is the substring to search for.start- is the position at which to begin searching.- Returns:
- the position at which the substring appears, else -1.
- Throws:
SQLException
-
position
Deprecated.Implements the Clob interface method. Determine the character position at which the given substring- Specified by:
positionin interfaceClob- Parameters:
searchstr- is the substring to search for.start- is the position at which to begin searching.- Returns:
- the position at which the substring appears, else -1.
- Throws:
SQLException
-
getChars
Deprecated.Oracle extension. Return copy of the substring of the CLOB at the requested position.- Specified by:
getCharsin interfaceoracle.jdbc.internal.OracleClob- Parameters:
buffer- is the buffer into whcih the characters are read.pos- is the first character of the substring to be extracted.length- is the number of consecutive character to be copied.- Returns:
- the actual number of characters read.
- Throws:
SQLException
-
getCharacterOutputStream
Deprecated.This method is deprecated. Use setCharacterStream( 1L ).Oracle extension. Write Unicode stream to the CLOB.- Specified by:
getCharacterOutputStreamin interfaceoracle.jdbc.internal.OracleClob- Returns:
- a Unicode character output stream.
- Throws:
SQLException
-
getAsciiOutputStream
Deprecated.This method is deprecated. Use setAsciiStream( 1L );Oracle extension. Write ascii stream to the CLOB.- Specified by:
getAsciiOutputStreamin interfaceoracle.jdbc.internal.OracleClob- Returns:
- a ascii output stream.
- Throws:
SQLException
-
putChars
Deprecated.Oracle extension. Write characters at the requested position.- Specified by:
putCharsin interfaceoracle.jdbc.internal.OracleClob- Parameters:
pos- is the position to write characters.chars- is the buffer of characters to be written.- Returns:
- the actual number of characters written.
- Throws:
SQLException
-
putChars
Deprecated.Oracle extension. Write characters at the requested position.- Parameters:
pos- is the position to write characters.chars- is the buffer of characters to be written.length- is the length to write- Returns:
- the actual number of characters written.
- Throws:
SQLException
-
putChars
Deprecated.Oracle extension. Write characters at the requested position.- Specified by:
putCharsin interfaceoracle.jdbc.internal.OracleClob- Parameters:
pos- is the position to write characters.chars- is the buffer of characters to be written.offset- is the position in the buffer from which to beginlength- is the length to write- Returns:
- the actual number of characters written.
- Throws:
SQLException
-
putString
Deprecated.This method is deprecated -- use setString.Oracle extension. Write String to a CLOB This method provides support to return a 32-bit specification of the number of characters written to the CLOB.- Specified by:
putStringin interfaceoracle.jdbc.internal.OracleClob- Throws:
SQLException
-
getChunkSize
Deprecated.Oracle extension. Get database LOB storage chunk size. There is no need for the user to use this, since the driver does the read and writes in chunk sizes internally.- Specified by:
getChunkSizein interfaceoracle.jdbc.internal.OracleClob- Returns:
- the size in terms of characters.
- Throws:
SQLException
-
getBufferSize
Deprecated.Oracle extension. Get ideal LOB db access buffer size.- Specified by:
getBufferSizein interfaceoracle.jdbc.internal.OracleClob- Returns:
- the size in terms of characters.
- Throws:
SQLException
-
empty_lob
Deprecated.use getEmptyCLOB insteadReturn a empty lob. An empty lob is used initialize a LOB column/attribute. Note: an empty lob can not be read or written- Returns:
- a empty lob
- Throws:
SQLException- Since:
- 8.1.7
-
getEmptyCLOB
Deprecated.Return a empty lob. An empty lob is used initialize a LOB column/attribute. Note: an empty lob can not be read or written- Returns:
- a empty lob
- Throws:
SQLException- Since:
- 10.2
-
isEmptyLob
Deprecated.Return true if this is a empty lob.- Specified by:
isEmptyLobin interfaceOracleClob- Returns:
- true if this is a empty lob. This method supports only Clobs that are not returned from the database. For Clobs returned from the database, use length(), i.e. check for zero length
- Throws:
SQLException- Since:
- 8.1.7
- See Also:
-
isSecureFile
Deprecated.Returnstrueif this is a SecureFile (LOBs with the STORE AS SECUREFILE option, which were introduced in Oracle Database 11g Release 1).- Specified by:
isSecureFilein interfaceOracleClob- Returns:
trueif this is a SecureFile andfalseotherwise.- Throws:
SQLException
-
getAsciiOutputStream
Deprecated.This method is deprecated. Use setAsciiStream.Write to the CLOB from a stream at the requested position.- Specified by:
getAsciiOutputStreamin interfaceoracle.jdbc.internal.OracleClob- Parameters:
pos- is the position data to be put.- Returns:
- a output stream to write data to the CLOB
- Throws:
SQLException- Since:
- 8.2.0
-
getCharacterOutputStream
Deprecated.This method is deprecated. Use setCharacterStream.Write to the CLOB from a stream at the requested position.- Specified by:
getCharacterOutputStreamin interfaceoracle.jdbc.internal.OracleClob- Parameters:
pos- is the position data to be put.- Returns:
- a output stream to write data to the CLOB
- Throws:
SQLException- Since:
- 8.2.0
-
getAsciiStream
Deprecated.Read from the CLOB as a stream at the requested position.- Specified by:
getAsciiStreamin interfaceoracle.jdbc.internal.OracleClob- Parameters:
pos- is the position data to be put.- Returns:
- a input stream to read data from the CLOB
- Throws:
SQLException- Since:
- 8.2.0
-
getCharacterStream
Deprecated.Read from the CLOB as a stream at the requested position.- Specified by:
getCharacterStreamin interfaceoracle.jdbc.internal.OracleClob- Parameters:
pos- is the position data to be put.- Returns:
- a input stream to read data from the CLOB
- Throws:
SQLException- Since:
- 8.2.0
-
trim
Deprecated.This method is deprecated. Use truncate().Trim the value of the CLOB to the length you specify in the newlen parameter.- Specified by:
trimin interfaceoracle.jdbc.internal.OracleClob- Parameters:
newlen- the new length of the CLOB.- Throws:
SQLException- Since:
- 8.2.0
-
createTemporary
public static CLOB createTemporary(Connection conn, boolean cache, int _duration) throws SQLException Deprecated.Create a temporary clob.- Parameters:
cache- Specifies if LOB should be read into buffer cache or not._duration- The duration of the temporary LOB. The following are valid values: DURATION_SESSION, DURATION_CALL.- Returns:
- A temporary clob.
- Throws:
SQLException- Since:
- 8.2.0
-
createTemporary
public static CLOB createTemporary(Connection conn, boolean cache, int _duration, short form_of_use) throws SQLException Deprecated.Create a temporary clob or nclob.- Parameters:
cache- Specifies if LOB should be read into buffer cache or not._duration- The duration of the temporary LOB. The following are valid values: DURATION_SESSION, DURATION_CALL.form_of_use- Valid values are FORM_CHAR and FORM_NCHAR- Returns:
- A temporary clob.
- Throws:
SQLException- Since:
- 10g
-
freeTemporary
Deprecated.Free the contents and the locator of the temporary clob.- Parameters:
temp_lob- A temporary clob to be freeed.- Throws:
SQLException- if temp_lob is a permanent lob or temp_lob has already been freed.- Since:
- 8.2.0
-
isTemporary
Deprecated.Return true if the lob locator points to a temporary clob. False if it does not.- Parameters:
lob- the clob to test.- Returns:
- true if the lob locator points to a temporary clob. False if it does not.
- Throws:
SQLException- Since:
- 8.2.0
-
getDuration
Deprecated.return the duration of a temporary LOB- Returns:
- the duration of a temporary LOB
- Throws:
SQLException- Since:
- 18.1
-
freeTemporary
Deprecated.Free the contents and the locator of the temporary clob.- Specified by:
freeTemporaryin interfaceoracle.jdbc.internal.OracleLargeObject<char[]>- Throws:
SQLException- if self is a permanent lob or self has already been freed.- Since:
- 8.2.0
-
isTemporary
Deprecated.Return true if the lob locator points to a temporary clob. False if it does not.- Specified by:
isTemporaryin interfaceOracleClob- Specified by:
isTemporaryin interfaceoracle.jdbc.internal.OracleLargeObject<char[]>- Returns:
- true if the lob locator points to a temporary clob. False if it does not.
- Throws:
SQLException- Since:
- 8.2.0
-
getDuration
Deprecated.return the duration of a temporary LOB- Specified by:
getDurationin interfaceoracle.jdbc.internal.OracleLargeObject<char[]>- Returns:
- the duration of a temporary LOB
- Throws:
SQLException- Since:
- 18.1
-
openLob
Deprecated.Public method using enum instead of int- Specified by:
openLobin interfaceOracleClob- Throws:
SQLException
-
open
Deprecated, for removal: This API element is subject to removal in a future version.The name of this method is anticipated to conflict with a future version of the JDBC Specification. This method will be removed in a future version of the Oracle JDBC Driver. Any calls to this method should be replaced with a call toopenLob(int), which provides the exact same behavior.Open a CLOB in the indicated mode. Valid modes include MODE_READONLY, and MODE_READWRITE. It is an error to open the same LOB twice.- Throws:
SQLException- Since:
- 8.2.0
-
closeLob
Deprecated.Close a previously opened CLOB.- Specified by:
closeLobin interfaceOracleClob- Throws:
SQLException- Since:
- 23.5
-
isOpenLob
Deprecated.Check whether the CLOB is opened.- Specified by:
isOpenLobin interfaceOracleClob- Returns:
- true if the LOB is opened.
- Throws:
SQLException- Since:
- 23.5
-
setString
Deprecated.JDBC 3.0 Writes the given JavaStringto theCLOBvalue that thisClobobject designates at the positionpos.- Specified by:
setStringin interfaceClob- Parameters:
pos- the position at which to start writing to theCLOBvalue that thisClobobject representsstr- the string to be written to theCLOBvalue that thisClobdesignates- Returns:
- the number of characters written
- Throws:
SQLException- if there is an error accessing theCLOBvalue- Since:
- 9.0.2
-
setString
Deprecated.JDBC 3.0 Writeslencharacters ofstr, starting at characteroffset, to theCLOBvalue that thisClobrepresents.- Specified by:
setStringin interfaceClob- Parameters:
pos- the position at which to start writing to thisCLOBobjectstr- the string to be written to theCLOBvalue that thisClobobject representsoffset- the offset intostrto start reading the characters to be writtenlen- the number of characters to be written- Returns:
- the number of characters written
- Throws:
SQLException- if there is an error accessing theCLOBvalue- Since:
- 9.0.2 This method is currently not supported. Use setString( long pos, String str )
-
setAsciiStream
Deprecated.JDBC 3.0 Retrieves a stream to be used to write Ascii characters to theCLOBvalue that thisClobobject represents, starting at positionpos.- Specified by:
setAsciiStreamin interfaceClob- Parameters:
pos- the position at which to start writing to thisCLOBobject- Returns:
- the stream to which ASCII encoded characters can be written
- Throws:
SQLException- if there is an error accessing theCLOBvalue- Since:
- 9.0.2
-
setCharacterStream
Deprecated.JDBC 3.0 Retrieves a stream to be used to write a stream of Unicode characters to theCLOBvalue that thisClobobject represents, at positionpos.- Specified by:
setCharacterStreamin interfaceClob- Parameters:
pos- the position at which to start writing to theCLOBvalue- Returns:
- a stream to which Unicode encoded characters can be written
- Throws:
SQLException- if there is an error accessing theCLOBvalue- Since:
- 9.0.2
-
truncate
Deprecated.JDBC 3.0 Truncates theCLOBvalue that thisClobdesignates to have a length oflencharacters.- Specified by:
truncatein interfaceClob- Parameters:
len- the length, in bytes, to which theCLOBvalue should be truncated- Throws:
SQLException- if there is an error accessing theCLOBvalue- Since:
- 9.0.2
-
toJdbc
Deprecated.Convert this data object into its default Java object type.- Specified by:
toJdbcin interfaceoracle.jdbc.internal.OracleClob- Specified by:
toJdbcin interfaceoracle.jdbc.internal.OracleDatumWithConnection- Specified by:
toJdbcin classDatum- Returns:
- this object.
- Throws:
SQLException- if any of the lower layer code throws an exception.
-
isConvertibleTo
Deprecated.Test whether this data object can be converted to the specified Java data type.- Specified by:
isConvertibleToin interfaceoracle.jdbc.internal.OracleClob- Specified by:
isConvertibleToin interfaceoracle.jdbc.internal.OracleDatumWithConnection- Specified by:
isConvertibleToin classDatum- Parameters:
jClass- specifies the Java data type to test against.- Returns:
- true if this data object is convertible to the specified Java class, and a corresponding xxxValue() method is available; otherwise, a false is returned.
-
stringValue
Deprecated.Convert to a String representation of the datum object- Specified by:
stringValuein interfaceoracle.jdbc.internal.OracleClob- Specified by:
stringValuein interfaceoracle.jdbc.internal.OracleDatumWithConnection- Overrides:
stringValuein classDatum- Returns:
- String representation of the datum object
- Throws:
SQLException
-
getJavaSqlConnection
Deprecated.Description copied from class:DatumWithConnectionOracle extension Return the java.sql.Connection associated with the receiver. Since 9.0.0 not all Oracle JDBC connection objects are assignment compatible with oracle.jdbc.driver.OracleConnection. If the connection is wrapped, return the outermost wrapper.- Specified by:
getJavaSqlConnectionin interfaceoracle.jdbc.internal.OracleClob- Specified by:
getJavaSqlConnectionin interfaceoracle.jdbc.internal.OracleDatumWithConnection- Overrides:
getJavaSqlConnectionin classDatumWithConnection- Returns:
- the connection
- Throws:
SQLException- if an error occurs
-
setPrefetchData
public final void setPrefetchData(oracle.jdbc.internal.OracleLargeObject.PrefetchData<char[]> prefetchData) Deprecated.- Specified by:
setPrefetchDatain interfaceoracle.jdbc.internal.OracleLargeObject<char[]>
-
getPrefetchData
public final oracle.jdbc.internal.OracleLargeObject.PrefetchData<char[]> getPrefetchData()Deprecated.- Specified by:
getPrefetchDatain interfaceoracle.jdbc.internal.OracleLargeObject<char[]>
-
getPrefetchedDataSize
public final int getPrefetchedDataSize()Deprecated. -
canReadBasicLobDataInLocator
Deprecated.Can the lob data be read directly from the locator?- Specified by:
canReadBasicLobDataInLocatorin interfaceoracle.jdbc.internal.OracleClob- Returns:
- True if we can; false otherwise.
- Throws:
SQLException
-
freeLOB
Deprecated.- Specified by:
freeLOBin interfaceoracle.jdbc.internal.OracleLargeObject<char[]>- Throws:
SQLException
-
free
Deprecated.Free the resources the clob holds.- Specified by:
freein interfaceClob- Throws:
SQLException- Since:
- 11.0
-
getCharacterStream
Deprecated.Return a character stream beginning at the specified position and ofthe specified length.- Specified by:
getCharacterStreamin interfaceClob- Parameters:
pos- start positionlength- number of characters in the result- Throws:
SQLException- - if pos is less than 1 or if pos is greater than the number of characters in the Clob or if pos + length is greater than the number of characters in the Clob or if an error occurs- Since:
- 11.0
-
setBytes
public void setBytes(byte[] locator) Deprecated.Description copied from class:DatumSets datum value using a byte array. The byte array is copied. -
toSQLXML
Deprecated.Returns an object which impements java.sql.SQLXML with content take from this Clob.- Specified by:
toSQLXMLin interfaceOracleClob- Returns:
- the new SQLXML object
- Throws:
SQLException- Since:
- 12.2
-
toSQLXML
Deprecated.Returns an object which impements java.sql.SQLXML with content taken from this Clob.- Specified by:
toSQLXMLin interfaceOracleClob- Returns:
- the new SQLXML object
- Throws:
SQLException- Since:
- 12.2
-
isFree
public final boolean isFree()Deprecated.- Specified by:
isFreein interfaceoracle.jdbc.internal.OracleLargeObject<char[]>
-