Because LOB types are not orderable, we'll override those methods...
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public DataValueDescriptor | Returns: A clone of this BLOB 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 BLOB value. |
| pack-priv int | getMaxMemoryUsage()
Implements abstract org. Return max memory usage for a SQL Blob |
| public DataValueDescriptor | getNewNull()
Implements org. Get a new null value of the same type as this data value. |
| public Object | getObject()
Overrides org. Implements org. Return a JDBC Blob. |
| public int | getTypeFormatId()
Implements org. Return my format identifier. |
| public String | getTypeName()
Implements org. Get the SQL name of the datatype |
| public boolean | Returns: true if the value is represented by a stream,
false otherwise.Overrides org. Implements org. Tells if this BLOB value is, or will be, represented by a stream. |
| private final boolean | Returns: true if the length of the blob is not known,
false otherwiseTell if this blob is length less. |
| public void | normalize(DataTypeDescriptor
The type to normalize the source column to desiredType, DataValueDescriptor The value to normalize source)Overrides org. Implements org. Normalization method - this method may be called when putting a value into a SQLBit, for example, when inserting into a SQLBit column. |
| public void | setInto(PreparedStatement ps, int position)
Overrides org. Implements org. Adding this method to ensure that super class' setInto method doesn't get called that leads to the violation of JDBC spec( untyped nulls ) when batching is turned on. |
| pack-priv final void | setObject(Object theValue)
Overrides org. Set the value from an non-null object. |
| public void | setValueFromResultSet(ResultSet
The specified ResultSet. resultSet, int The 1-based column # into the resultSet. colNumber, boolean Whether or not the column is nullable
(No need to call wasNull() if not) isNullable)Implements org. Set the value based on the value for the specified DataValueDescriptor from the specified ResultSet. |
| public void | setWidth(int desiredWidth, int desiredScale, boolean errorOnTrunc)
Implements org.
|
| public int | typePrecedence()
Overrides org. Implements org. Each built-in type in JSQL has a precedence. |
| SQLBlob | back to summary |
|---|---|
| public SQLBlob() | |
| SQLBlob | back to summary |
|---|---|
| public SQLBlob(byte[] val) | |
| SQLBlob | back to summary |
|---|---|
| public SQLBlob(Blob val) | |
| cloneValue | back to summary |
|---|---|
| public DataValueDescriptor cloneValue(boolean forceMaterialization) Overrides org. Implements org. Returns a clone of this BLOB value. Unlike the other binary types, BLOBs can be very large. We try to clone the underlying stream when possible to avoid having to materialize the value into memory.
| |
| getMaxMemoryUsage | back to summary |
|---|---|
| pack-priv int getMaxMemoryUsage() Implements abstract org. Return max memory usage for a SQL Blob | |
| getNewNull | back to summary |
|---|---|
| public DataValueDescriptor getNewNull() Implements org. Doc from org. Get a new null value of the same type as this data value.
| |
| getObject | back to summary |
|---|---|
| public Object getObject() throws StandardException Overrides org. Implements org. Return a JDBC Blob. Originally implemented to support DERBY-2201.
| |
| getTypeFormatId | back to summary |
|---|---|
| public int getTypeFormatId() Implements org. Return my format identifier.
| |
| getTypeName | back to summary |
|---|---|
| public String getTypeName() Implements org. Doc from org. Get the SQL name of the datatype
| |
| hasStream | back to summary |
|---|---|
| public boolean hasStream() Overrides org. Implements org. Tells if this BLOB value is, or will be, represented by a stream.
| |
| isLengthLess | back to summary |
|---|---|
| private final boolean isLengthLess() Tell if this blob is length less.
| |
| normalize | back to summary |
|---|---|
| public void normalize(DataTypeDescriptor desiredType, DataValueDescriptor source) throws StandardException Overrides org. Implements org. Normalization method - this method may be called when putting a value into a SQLBit, for example, when inserting into a SQLBit column. See NormalizeResultSet in execution.
| |
| setInto | back to summary |
|---|---|
| public void setInto(PreparedStatement ps, int position) throws SQLException, StandardException Overrides org. Implements org. Doc from org. Adding this method to ensure that super class' setInto method doesn't get called that leads to the violation of JDBC spec( untyped nulls ) when batching is turned on.
| |
| setObject | back to summary |
|---|---|
| pack-priv final void setObject(Object theValue) throws StandardException Overrides org. Set the value from an non-null object. | |
| setValueFromResultSet | back to summary |
|---|---|
| public void setValueFromResultSet(ResultSet resultSet, int colNumber, boolean isNullable) throws SQLException, StandardException Implements org. Doc from org. Set the value based on the value for the specified DataValueDescriptor from the specified ResultSet.
| |
| setWidth | back to summary |
|---|---|
| public void setWidth(int desiredWidth, int desiredScale, boolean errorOnTrunc) throws StandardException Implements org. | |
| typePrecedence | back to summary |
|---|---|
| public int typePrecedence() Overrides org. Implements org. Doc from org. Each built-in type in JSQL has a precedence. This precedence determines how to do type promotion when using binary operators. For example, float has a higher precedence than int, so when adding an int to a float, the result type is float. The precedence for some types is arbitrary. For example, it doesn't matter what the precedence of the boolean type is, since it can't be mixed with other types. But the precedence for the number types is critical. The SQL standard requires that exact numeric types be promoted to approximate numeric when one operator uses both. Also, the precedence is arranged so that one will not lose precision when promoting a type.
| |