| Modifier and Type | Class and Description |
|---|---|
| private static class | SQLClob.
Holder class for header information gathered from the raw byte header in the stream. |
| Modifier and Type | Field and Description |
|---|---|
| private CharacterStreamDescriptor | csd
The descriptor for the stream. |
| private Boolean | inSoftUpgradeMode
Tells if the database is being accessed in soft upgrade mode. |
| private static final int | MAX_STREAM_HEADER_LENGTH
The maximum number of bytes used by the stream header. |
| private static final StreamHeaderGenerator | TEN_FIVE_CLOB_HEADER_GENERATOR
The header generator used for 10.5 databases. |
| private static final StreamHeaderGenerator | TEN_FOUR_CLOB_HEADER_GENERATOR
The header generator used for 10.4 (or older) databases. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public DataValueDescriptor | Returns: A clone of this CLOB value.any streams representing the data value will
be materialized if forceMaterialization)true, the data value will be kept as a
stream if possible if falseOverrides org. Implements org. Returns a clone of this CLOB value. |
| public boolean | getBoolean()
Overrides org. Implements org. Get Boolean from a SQLChar. |
| public byte | getByte()
Overrides org. Implements org. Get Byte from a SQLChar. |
| public byte[] | getBytes()
Overrides org. Implements org. Gets the value in the data value descriptor as a byte array. |
| public Date | getDate(Calendar
calendar for object creation cal)Overrides org. Implements org. Get date from a SQLChar. |
| public double | getDouble()
Overrides org. Implements org. Get double from a SQLChar. |
| public float | getFloat()
Overrides org. Implements org. Get float from a SQLChar. |
| public int | getInt()
Overrides org. Implements org. Get int from a SQLChar. |
| public int | Returns: The character length of this Clob.Overrides org. Implements org. Returns the character length of this Clob. |
| public long | getLong()
Overrides org. Implements org. Get long from a SQLChar. |
| public DataValueDescriptor | getNewNull()
Overrides org. Implements org. Get a new null value of the same type as this data value. |
| public Object | getObject()
Overrides org. Implements org. Gets the value in the data value descriptor as a Java Object. |
| public short | getShort()
Overrides org. Implements org. Get Short from a SQLChar. |
| public StreamHeaderGenerator | Returns: A stream header generator.Overrides org. Implements org. Returns a stream header generator for a Clob. |
| public CharacterStreamDescriptor | Returns: A descriptor for the stream, which includes a reference to the stream itself. If the value cannot be represented as a stream,null is returned instead of a descriptor.Overrides org. Implements org. Returns a descriptor for the input stream for this CLOB value. |
| public Time | getTime(Calendar
calendar for object creation cal)Overrides org. Implements org. Get time from a SQLChar. |
| public Timestamp | getTimestamp(Calendar
calendar for object creation cal)Overrides org. Implements org. Get Timestamp from a SQLChar. |
| public final String | Returns: a trace representation of the CLOB.Overrides org. Implements org. Gets a trace representation of the CLOB for debugging. |
| public int | getTypeFormatId()
Overrides org. Implements org. Return my format identifier. |
| public String | getTypeName()
Overrides org. Implements org. Get the SQL name of the datatype |
| public StringDataValue | getValue(RuleBasedCollator collatorForComparison)
Overrides org. Implements org. Gets either SQLChar/SQLVarchar/SQLLongvarchar/SQLClob(base classes) or CollatorSQLChar/CollatorSQLVarchar/CollatorSQLLongvarch/CollatorSQLClob (subclasses). |
| public boolean | Returns: true if the value is represented by a stream,
false otherwise.Overrides org. Implements org. Tells if this CLOB value is, or will be, represented by a stream. |
| private SQLClob. | Returns: The information obtained from the header.the raw header bytes hdr, int number of bytes written into the raw header bytes array bytesRead)Investigates the header and returns length information. |
| public void | normalize(DataTypeDescriptor
The type to normalize the source column to desiredType, DataValueDescriptor The value to normalize sourceValue)Overrides org. Implements org. Normalization method - this method may be called when putting a value into a SQLClob, for example, when inserting into a SQLClob column. |
| public void | readExternal(ObjectInput
source stream in)Overrides org. Implements java. Reads and materializes the CLOB value from the stream. |
| public void | readExternalFromArray(ArrayInputStream
source stream in)Overrides org. Implements org. Reads and materializes the CLOB value from the stream. |
| public final void | restoreToNull()
Overrides org. Implements org. Restore this object to its (SQL)null value. |
| private void | rewindStream(InputStream
input stream to rewind in, long number of bytes to skip offset)Rewinds the stream to the beginning and then skips the specified number of bytes. |
| public void | setBigDecimal(BigDecimal
required to be a BigDecimal or null. bigDecimal)Overrides org. Implements org. Only to be called when an application through JDBC is setting a SQLChar to a java.math.BigDecimal. |
| pack-priv final void | setObject(Object theValue)
Overrides org. Set the value from an non-null Java.sql.Clob object. |
| public final void | setStream(InputStream
the new stream stream)Overrides org. Implements org. Sets a new stream for this CLOB. |
| public void | setStreamHeaderFormat(Boolean
TRUE if the database is accessed in
soft upgrade mode, FALSE is not, or null if unknownOverrides org. Implements org. Tells whether the database is being accessed in soft upgrade mode or not. |
| public void | setValue(Time
The Time value to set this DataValueDescriptor to theValue, Calendar The time zone from the calendar is used to construct the database time value cal)Overrides org. Implements org. Set the value of this DataValueDescriptor. |
| public void | setValue(Timestamp
The Timestamp value to set this DataValueDescriptor to theValue, Calendar The time zone from the calendar is used to construct the database timestamp value cal)Overrides org. Implements org. Set the value of this DataValueDescriptor. |
| public void | setValue(Date
The Date value to set this DataValueDescriptor to theValue, Calendar The time zone from the calendar is used to construct the database date value cal)Overrides org. Implements org. Set the value of this DataValueDescriptor. |
| public void | setValue(int
The value to set this DataValueDescriptor to theValue)Overrides org. Implements org. Set the value of this DataValueDescriptor to the given int value |
| public void | setValue(double
The value to set this DataValueDescriptor to theValue)Overrides org. Implements org. Set the value of this DataValueDescriptor to the given double value |
| public void | setValue(float
A Double containing the value to set this
DataValueDescriptor to. Null means set the value
to SQL null. theValue)Overrides org. Implements org. Set the value of this DataValueDescriptor to the given double value |
| public void | setValue(short
The value to set this DataValueDescriptor to theValue)Overrides org. Implements org. Set the value of this DataValueDescriptor to the given short value |
| public void | setValue(long
The value to set this DataValueDescriptor to theValue)Overrides org. Implements org. Set the value of this DataValueDescriptor to the given long value |
| public void | setValue(byte
The value to set this DataValueDescriptor to theValue)Overrides org. Implements org. Set the value of this DataValueDescriptor to the given byte value |
| public void | setValue(boolean
Contains the boolean value to set this to theValue)Overrides org. Implements org. Set the value. |
| public void | setValue(byte[]
The byte value to set this DataValueDescriptor to theValue)Overrides org. Implements org. Set the value of this DataValueDescriptor. |
| public int | typePrecedence()
Overrides org. Implements org. Each built-in type in JSQL has a precedence. |
| public int | typeToBigDecimal()
Overrides org. Implements org. CHAR/VARCHAR/LONG VARCHAR implementation. |
| public void | writeExternal(ObjectOutput
destination stream out)Overrides org. Implements java. Writes the CLOB data value to the given destination stream using the modified UTF-8 format. |