| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | checkHostVariable(int declaredLength)
Implements org. Check the value to seem if it conforms to the restrictions imposed by DB2/JCC on host variables for this type. |
| public DataValueDescriptor | Returns: A shallow clone.Implements org. Default implementation of shallow cloning, which forwards to the deep clone method. |
| public DataValueDescriptor | coalesce(DataValueDescriptor[]
The list of the arguments. Function will return the first non-nullable argument if any. argumentsList, DataValueDescriptor The return value is the correct datatype for this function.
The return value of this method is the type of the 2nd parameter. returnValue)Implements org. The SQL language COALESCE/VALUE function. |
| public boolean | compare(int
Orderable.ORDER_OP_EQUALS means do an = comparison.
Orderable.ORDER_OP_LESSTHAN means compare this < other.
Orderable.ORDER_OP_LESSOREQUALS means compare this <= other. op, DataValueDescriptor The DataValueDescriptor to compare this one to. other, boolean True means to treat nulls as ordered values,
that is, treat SQL null as equal to null, and less
than all other values.
False means to treat nulls as unknown values,
that is, the result of any comparison with a null
is the UNKNOWN truth value. orderedNulls, boolean The return value to use if the result of the
comparison is the UNKNOWN truth value. In other
words, if orderedNulls is false, and a null is
involved in the comparison, return unknownRV.
This parameter is not used orderedNulls is true. unknownRV)Implements org. Compare this Orderable with a given Orderable for the purpose of qualification and sorting. |
| public boolean | Returns: true if the comparison is true (duh!)Orderable.ORDER_OP_EQUALS means do an = comparison.
Orderable.ORDER_OP_LESSTHAN means compare this < other.
Orderable.ORDER_OP_LESSOREQUALS means compare this <= other. op, DataValueDescriptor The DataValueDescriptor to compare this one to. other, boolean True means to treat nulls as ordered values,
that is, treat SQL null as equal to null, and either greater or less
than all other values.
False means to treat nulls as unknown values,
that is, the result of any comparison with a null
is the UNKNOWN truth value. orderedNulls, boolean True means NULL less than non-NULL,
false means NULL greater than non-NULL.
Only relevant if orderedNulls is true. nullsOrderedLow, boolean The return value to use if the result of the
comparison is the UNKNOWN truth value. In other
words, if orderedNulls is false, and a null is
involved in the comparison, return unknownRV.
This parameter is not used orderedNulls is true. unknownRV)Implements org. Compare this Orderable with another, with configurable null ordering. |
| public int | Returns: <0 - this Orderable is less than other. 0 - this Orderable equals other. >0 - this Orderable is greater than other. The code should not explicitly look for -1, or 1.The Orderable to compare this one to.
% @param nullsOrderedLow True if null should be lower than non-NULL other, boolean nullsOrderedLow)Implements org. Compare this Orderable with another, with configurable null ordering. |
| public int | compareTo(Object
the object to be compared. otherDVD)Implements java. Wrapper method for the "compare(DataValueDescriptor)" method of this class. |
| protected final StandardException | |
| public BooleanDataValue | Returns: A SQL boolean value telling whether the two parameters are equalThe value on the left side of the = left, DataValueDescriptor The value on the right side of the = right)Implements org. The = operator as called from the language module, as opposed to the storage module. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| protected static int | Returns: The flipped operator.The operator to flip. operator)Flip the operator used in a comparison (< -> >). |
| pack-priv void | |
| public boolean | Returns: The data value as a boolean.Implements org. Gets the value in the data value descriptor as a boolean. |
| public byte | Returns: The data value as a byte.Implements org. Gets the value in the data value descriptor as a byte. |
| public byte[] | Returns: The Binary value as a byte[].Implements org. Gets the value in the data value descriptor as a byte[]. |
| public Date | Returns: The data value as a java.sql.Date.calendar for object creation cal)Implements org. Gets the value in the data value descriptor as a java.sql.Date. |
| public double | Returns: The data value as a double.Implements org. Gets the value in the data value descriptor as a double. |
| public float | Returns: The data value as a float.Implements org. Gets the value in the data value descriptor as a float. |
| public int | Returns: The data value as a int.Implements org. Gets the value in the data value descriptor as a int. |
| public long | Returns: The data value as a long.Implements org. Gets the value in the data value descriptor as a long. |
| public Object | Returns: The data value as a int.Implements org. Gets the value in the data value descriptor as a int. |
| public short | Returns: The data value as a short.Implements org. Gets the value in the data value descriptor as a short. |
| public InputStream | Returns: The data value as an InputStream.Implements org. Gets the value in the data stream descriptor as an InputStream. |
| public Time | Returns: The data value as a java.sql.Time.calendar for object creation cal)Implements org. Gets the value in the data value descriptor as a java.sql.Time. |
| public Timestamp | Returns: The data value as a java.sql.Timestamp.calendar for object creation cal)Implements org. Gets the value in the data value descriptor as a java.sql.Timestamp. |
| public String | Returns: The data value in a representation suitable for tracing.Implements org. Gets the value in the data stream descriptor as a trace string. |
| pack-priv String | getTypeName(String className)
Get the type name of this value, possibly overriding with the passed in class name (for user/java types). |
| public BooleanDataValue | Returns: A SQL boolean value telling whether the first operand is greater than or equal to the second operandThe value on the left side of the >= left, DataValueDescriptor The value on the right side of the >= right)Implements org. The >= operator as called from the language module, as opposed to the storage module. |
| public BooleanDataValue | Returns: A SQL boolean value telling whether the first operand is greater than the second operandThe value on the left side of the > left, DataValueDescriptor The value on the right side of the > right)Implements org. The > operator as called from the language module, as opposed to the storage module. |
| public boolean | Returns: falseImplements org. Tells that the value isn't represented as a stream, which is true for most Derby data types. |
| public BooleanDataValue | in(DataValueDescriptor
The value on the left side of the operator left, DataValueDescriptor[] The values in the IN list inList, boolean True means that the values in the IN list are ordered,
false means they are not. orderedList)Implements org. The SQL language IN operator. |
| protected final StandardException | |
| public final BooleanDataValue | Returns: A SQL boolean value telling whether the operand is not nullImplements org. The is not null operator as called from the language module, as opposed to the storage module. |
| public final BooleanDataValue | Returns: A SQL boolean value telling whether the operand is nullImplements org. The is null operator as called from the language module, as opposed to the storage module. |
| public BooleanDataValue | Returns: A SQL boolean value telling whether the first operand is less than or equal to the second operandThe value on the left side of the <= left, DataValueDescriptor The value on the right side of the <= right)Implements org. The <= operator as called from the language module, as opposed to the storage module. |
| public BooleanDataValue | Returns: A SQL boolean value telling whether the first operand is less than the second operandThe value on the left side of the < left, DataValueDescriptor The value on the right side of the < right)Implements org. The < operator as called from the language module, as opposed to the storage module. |
| public void | normalize(DataTypeDescriptor
The type to normalize the source column to desiredType, DataValueDescriptor The value to normalize source)Implements org. Default normalization method. |
| public BooleanDataValue | Returns: A SQL boolean value telling whether the two parameters are not equalThe value on the left side of the <> left, DataValueDescriptor The value on the right side of the <> right)Implements org. The <> operator as called from the language module, as opposed to the storage module. |
| protected final StandardException | |
| public void | readExternalFromArray(ArrayInputStream
The array stream positioned at the beginning of the
byte stream to read from. in)Implements org. Read the DataValueDescriptor from the stream. |
| public DataValueDescriptor | Returns: this object with value set to nullImplements org. Recycle this DataType object. |
| public void | setBigDecimal(BigDecimal
required to be a BigDecimal or null. bigDecimal)Implements org. Only to be called when the application sets a value using BigDecimal |
| protected void | setFrom(DataValueDescriptor
The DataValueDescriptor that holds the value to
which we want to set this DataValueDescriptor's value. dvd)Set the value of this DataValueDescriptor based on the value of the specified DataValueDescriptor. |
| public void | setInto(PreparedStatement ps, int position)
Implements org. Set this value into a PreparedStatement. |
| public void | setInto(ResultSet rs, int position)
Implements org. Set this value into a ResultSet for a subsequent ResultSet.insertRow or ResultSet.updateRow. |
| pack-priv void | |
| public void | setObjectForCast(Object
The new value theValue, boolean Whether or not the new value
is an instanceof the result type. instanceOfResultType, String The class name of the resulting (declared) type
(for error messages only). resultTypeClassName)Implements org. Set this value from an Object. |
| public void | setToNull()
Implements org. Set the value to SQL null. |
| public void | setValue(Time
The Time value to set this DataValueDescriptor to theValue)Implements org. Set the value of this DataValueDescriptor. |
| 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)Implements org. Set the value of this DataValueDescriptor. |
| public void | setValue(Timestamp
The Timestamp value to set this DataValueDescriptor to theValue)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)Implements org. Set the value of this DataValueDescriptor. |
| public void | setValue(Date
The Date value to set this DataValueDescriptor to theValue)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)Implements org. Set the value of this DataValueDescriptor. |
| public void | setValue(Object
The Object value to set this DataValueDescriptor to theValue)Implements org. Set the value of this DataValueDescriptor. |
| public void | setValue(String
The BigDecimal value to set this DataValueDescriptor to theValue)Implements org. Set the value of this DataValueDescriptor. |
| public void | setValue(Blob
The Blob value to set this DataValueDescriptor to theValue)Implements org. Set the value of this DataValueDescriptor. |
| public void | setValue(Clob
The Clob value to set this DataValueDescriptor to theValue)Implements org. Set the value of this DataValueDescriptor. |
| public void | setValue(int
The value to set this DataValueDescriptor to theValue)Implements org. Set the value of this DataValueDescriptor to the given int value At DataType level just throws an error lower classes will override |
| public void | setValue(double
The value to set this DataValueDescriptor to theValue)Implements org. Set the value of this DataValueDescriptor to the given double value At DataType level just throws an error lower classes will override |
| public void | setValue(float
The value to set this DataValueDescriptor to theValue)Implements org. Set the value of this DataValueDescriptor to the given float value At DataType level just throws an error lower classes will override |
| public void | setValue(short
The value to set this DataValueDescriptor to theValue)Implements org. Set the value of this DataValueDescriptor to the given short value At DataType level just throws an error lower classes will override |
| public void | setValue(long
The value to set this DataValueDescriptor to theValue)Implements org. Set the value of this DataValueDescriptor to the given long value At DataType level just throws an error lower classes will override |
| public void | setValue(byte
The value to set this DataValueDescriptor to theValue)Implements org. Set the value of this DataValueDescriptor to the given byte value At DataType level just throws an error lower classes will override |
| public void | setValue(boolean
Contains the boolean value to set this to theValue)Implements org. Set the value. |
| public void | setValue(byte[]
The byte value to set this DataValueDescriptor to theValue)Implements org. Set the value of this DataValueDescriptor. |
| public final void | setValue(DataValueDescriptor
The Date value to set this DataValueDescriptor to dvd)Implements org. Set the value of this DataValueDescriptor from another. |
| public void | setValue(InputStream
stream of correctly formatted data theStream, int logical length of the stream's value in units of this
type (e.g. chars for string types), or
valueLength)UNKNOWN_LOGICAL_LENGTH if the logical length is unknownImplements org. Set the value to be the contents of the stream. |
| public void | |
| pack-priv void | |
| public int | Returns: The precedence of this type.Implements org. Each built-in type in JSQL has a precedence. |
| public int | typeToBigDecimal()
Implements org. How should this value be obtained so that it can be converted to a BigDecimal representation. |