| Modifier and Type | Field and Description |
|---|---|
| protected Agent | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| protected int | |
| public static final int | |
| protected boolean | isValid_
This boolean variable indicates whether the Lob object has been invalidated by calling free() on it |
| private boolean | |
| private static final ClientMessageId | |
| pack-priv static final int | |
| protected int | |
| private long | |
| pack-priv static final int | |
| private int | transactionID_
This integer identifies which transaction the Lob is associated with |
| pack-priv static final int | |
| private long | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | checkForLocatorValidity()
Calls SqlLength() to check if the Locator associated with the underlying Lob is valid. |
| protected void | checkPosAndLength(long
a long that contains the position that needs to be checked pos, long a long that contains the length that needs to be checked length)Checks the |
| protected void | checkValidity()
Checks if isValid is true and whether the transaction that created the Lob is still active. |
| public void | completeLocalCommit(Iterator<E> listenerIterator)
Implements org. |
| public void | completeLocalRollback(Iterator<E> listenerIterator)
Implements org. |
| public Agent | |
| public int | Returns: locator for this Lob, INVALID_LOCATOR if Lob is not based on locatorGet locator for this Lob |
| pack-priv long | |
| pack-priv long | |
| protected synchronized void | |
| protected static boolean | |
| public boolean | Returns: true if Lob is based on locator, false otherwiseCheck whether this Lob is based on a locator |
| public abstract long | |
| public void | |
| protected abstract void | materializeStream()
Method to be implemented by subclasses, so that #materializedStream(InputStream, String) can be called with subclass specific parameters and the result assigned to the right stream. |
| protected InputStream | Returns: a stream whose source is the materialized datastream to use for input is, String description of the data type we are inserting,
for instance typeDesc)java.sql.ClobMaterialize the given stream into memory and update the internal length variable. |
| pack-priv void | setSqlLength(long
the new length of the Lob value length)Update the registered length of the Lob value. |
| pack-priv long | Returns: length of Lob valueReturn the length of the Lob value represented by this Lob object. |
| public boolean |
| agent_ | back to summary |
|---|---|
| protected Agent agent_ | |
| ASCII_STREAM | back to summary |
|---|---|
| pack-priv static final int ASCII_STREAM | |
| BINARY_STREAM | back to summary |
|---|---|
| pack-priv static final int BINARY_STREAM | |
| BINARY_STRING | back to summary |
|---|---|
| pack-priv static final int BINARY_STRING | |
| CHARACTER_STREAM | back to summary |
|---|---|
| pack-priv static final int CHARACTER_STREAM | |
| dataType_ | back to summary |
|---|---|
| protected int dataType_ | |
| INVALID_LOCATOR | back to summary |
|---|---|
| public static final int INVALID_LOCATOR | |
| isValid_ | back to summary |
|---|---|
| protected boolean isValid_ This boolean variable indicates whether the Lob object has been invalidated by calling free() on it | |
| lengthObtained_ | back to summary |
|---|---|
| private boolean lengthObtained_ | |
| LOB_OBJECT_LENGTH_UNKNOWN_YET | back to summary |
|---|---|
| private static final ClientMessageId LOB_OBJECT_LENGTH_UNKNOWN_YET | |
| LOCATOR | back to summary |
|---|---|
| pack-priv static final int LOCATOR | |
| locator_ | back to summary |
|---|---|
| protected int locator_ | |
| sqlLength_ | back to summary |
|---|---|
| private long sqlLength_ | |
| STRING | back to summary |
|---|---|
| pack-priv static final int STRING | |
| transactionID_ | back to summary |
|---|---|
| private int transactionID_ This integer identifies which transaction the Lob is associated with | |
| UNICODE_STREAM | back to summary |
|---|---|
| pack-priv static final int UNICODE_STREAM | |
| updateCount | back to summary |
|---|---|
| private long updateCount | |
| willBeLayerBStreamed_ | back to summary |
|---|---|
| private final boolean willBeLayerBStreamed_ | |
| Lob | back to summary |
|---|---|
| protected Lob(Agent agent, boolean willBeLayerBStreamed) | |
| checkForClosedConnection | back to summary |
|---|---|
| pack-priv void checkForClosedConnection() throws SqlException | |
| checkForLocatorValidity | back to summary |
|---|---|
| pack-priv void checkForLocatorValidity() throws SqlException Calls SqlLength() to check if the Locator associated with the underlying Lob is valid. If it is not it throws an exception. | |
| checkPosAndLength | back to summary |
|---|---|
| protected void checkPosAndLength(long pos, long length) throws SQLException Checks the
| |
| checkValidity | back to summary |
|---|---|
| protected void checkValidity() throws SQLException Checks if isValid is true and whether the transaction that created the Lob is still active. If any of which is not true throws a SQLException stating that a method has been called on an invalid LOB object.
| |
| completeLocalCommit | back to summary |
|---|---|
| public void completeLocalCommit(Iterator<E> listenerIterator) Implements org. | |
| completeLocalRollback | back to summary |
|---|---|
| public void completeLocalRollback(Iterator<E> listenerIterator) Implements org. | |
| getAgent | back to summary |
|---|---|
| public Agent getAgent() | |
| getLocator | back to summary |
|---|---|
| public int getLocator() Get locator for this Lob
| |
| getLocatorLength | back to summary |
|---|---|
| pack-priv long getLocatorLength() throws SqlException Get the length of locator based Lob from the server. This is a dummy implementation that is supposed to be overridden by subclasses. A stored procedure call will be made to get the length from the server.
| |
| getUpdateCount | back to summary |
|---|---|
| pack-priv long getUpdateCount() Returns the current updateCount of the Clob. | |
| incrementUpdateCount | back to summary |
|---|---|
| protected synchronized void incrementUpdateCount() Increments and returns the new updateCount
of this | |
| isLayerBStreamingPossible | back to summary |
|---|---|
| protected static boolean isLayerBStreamingPossible(Agent agent) | |
| isLocator | back to summary |
|---|---|
| public boolean isLocator() Check whether this Lob is based on a locator
| |
| length | back to summary |
|---|---|
| public abstract long length() throws SQLException | |
| listenToUnitOfWork | back to summary |
|---|---|
| public void listenToUnitOfWork() Implements org. | |
| materializeStream | back to summary |
|---|---|
| protected abstract void materializeStream() throws SqlException Method to be implemented by subclasses, so that #materializedStream(InputStream, String) can be called with subclass specific parameters and the result assigned to the right stream.
| |
| materializeStream | back to summary |
|---|---|
| protected InputStream materializeStream(InputStream is, String typeDesc) throws SqlException Materialize the given stream into memory and update the internal length variable.
| |
| setSqlLength | back to summary |
|---|---|
| pack-priv void setSqlLength(long length) Update the registered length of the Lob value. To be called by methods that make changes to the length of the Lob. Note The caller needs to deal with synchronization.
| |
| sqlLength | back to summary |
|---|---|
| pack-priv long sqlLength() throws SqlException Return the length of the Lob value represented by this Lob object. If length is not already known, and Lob is locator based, length will be retrieved from the server. If not, locator based, Lob will first be materialized. Note The caller needs to deal with synchronization.
| |
| willBeLayerBStreamed | back to summary |
|---|---|
| public boolean willBeLayerBStreamed() | |