Top Description Fields Constructors Methods
org.apache.derby.client.am

pack-priv Class UpdateSensitiveClobLocatorInputStream

extends UpdateSensitiveLOBLocatorInputStream
Class Inheritance
Imports
java.io.BufferedInputStream, .InputStream

This class extends from the UpdateSensitiveLOBLocatorInputStream and creates and returns an implementation of the Clob specific locator InputStream. It also over-rides the reCreateStream method which re-creates the underlying Clob locator stream whenever a update happens on the Clob object associated with this stream.

Field Summary

Modifier and TypeField and Description
private ClientClob
Inherited from org.apache.derby.client.am.UpdateSensitiveLOBLocatorInputStream:
concurrentPoslength

Constructor Summary

AccessConstructor and Description
pack-priv
UpdateSensitiveClobLocatorInputStream(ClientConnection
connection to be used to read the Clob value from the server
con
,
ClientClob
Clob object that contains locator for the Clob value on the server.
clob
)

Creates an instance of the ClobLocatorInputStream wrapped in a BufferedInputStream and and calls the super class constructor with appropriate initializers.

Method Summary

Modifier and TypeMethod and Description
protected InputStream
reCreateStream()

Implements abstract org.apache.derby.client.am.UpdateSensitiveLOBLocatorInputStream.reCreateStream.

Re-creates the underlying Locator stream with the current position and the length values if specified.
Inherited from org.apache.derby.client.am.UpdateSensitiveLOBLocatorInputStream:
closereadread

Field Detail

clobback to summary
private ClientClob clob

Constructor Detail

UpdateSensitiveClobLocatorInputStreamback to summary
pack-priv UpdateSensitiveClobLocatorInputStream(ClientConnection con, ClientClob clob) throws SqlException

Creates an instance of the ClobLocatorInputStream wrapped in a BufferedInputStream and and calls the super class constructor with appropriate initializers.

Parameters
con:ClientConnection

connection to be used to read the Clob value from the server

clob:ClientClob

Clob object that contains locator for the Clob value on the server.

Exceptions
SqlException:
If any exception occurs during stream creation.

Method Detail

reCreateStreamback to summary
protected InputStream reCreateStream() throws SqlException

Implements abstract org.apache.derby.client.am.UpdateSensitiveLOBLocatorInputStream.reCreateStream.

Re-creates the underlying Locator stream with the current position and the length values if specified.