Method Summary |
|
public void | checkHostVariable(int declaredLength) Check the value to seem if it conforms to the restrictions
imposed by DB2/JCC on host variables for this type. |
public Object | cloneObject() |
public DataValueDescriptor | coalesce(DataValueDescriptor[] argumentsList, DataValueDescriptor returnValue) |
public boolean | compare(int op, DataValueDescriptor other, boolean orderedNulls, boolean unknownRV) |
final protected StandardException | dataTypeConversion(String targetType) Return an conversion exception from this type to another. |
public BooleanDataValue | equals(DataValueDescriptor left, DataValueDescriptor right) The = operator as called from the language module, as opposed to
the storage module. |
public boolean | equals(Object other) |
protected static int | flip(int operator) Flip the operator used in a comparison (< -> >).
This is useful when flipping a comparison due to
type precedence.
Parameters: operator - The operator to flip. |
void | genericSetObject(Object theValue) |
public boolean | getBoolean() Gets the value in the data value descriptor as a boolean. |
public byte | getByte() Gets the value in the data value descriptor as a byte. |
public byte[] | getBytes() Gets the value in the data value descriptor as a byte[]. |
public Date | getDate(Calendar cal) Gets the value in the data value descriptor as a java.sql.Date. |
public double | getDouble() Gets the value in the data value descriptor as a double. |
public float | getFloat() Gets the value in the data value descriptor as a float. |
public int | getInt() Gets the value in the data value descriptor as a int. |
public long | getLong() Gets the value in the data value descriptor as a long. |
protected String | getNationalString(LocaleFinder localeFinder) International version of getString(). |
public Object | getObject() Gets the value in the data value descriptor as a int. |
public short | getShort() Gets the value in the data value descriptor as a short. |
public InputStream | getStream() Gets the value in the data stream descriptor as an InputStream. |
public Time | getTime(Calendar cal) Gets the value in the data value descriptor as a java.sql.Time. |
public Timestamp | getTimestamp(Calendar cal) Gets the value in the data value descriptor as a java.sql.Timestamp. |
public String | getTraceString() Gets the value in the data stream descriptor as a trace string. |
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 | greaterOrEquals(DataValueDescriptor left, DataValueDescriptor right) The >= operator as called from the language module, as opposed to
the storage module. |
public BooleanDataValue | greaterThan(DataValueDescriptor left, DataValueDescriptor right) The > operator as called from the language module, as opposed to
the storage module. |
public BooleanDataValue | in(DataValueDescriptor left, DataValueDescriptor[] inList, boolean orderedList) |
final protected StandardException | invalidFormat() Return an out of range exception for this type. |
final public BooleanDataValue | isNotNull() The is not null operator as called from the language module, as opposed to
the storage module. |
final public BooleanDataValue | isNullOp() The is null operator as called from the language module, as opposed to
the storage module. |
public BooleanDataValue | lessOrEquals(DataValueDescriptor left, DataValueDescriptor right) The <= operator as called from the language module, as opposed to
the storage module. |
public BooleanDataValue | lessThan(DataValueDescriptor left, DataValueDescriptor right) The < operator as called from the language module, as opposed to
the storage module. |
public void | normalize(DataTypeDescriptor desiredType, DataValueDescriptor source) Default normalization method. |
public BooleanDataValue | notEquals(DataValueDescriptor left, DataValueDescriptor right) The <> operator as called from the language module, as opposed to
the storage module. |
final protected StandardException | outOfRange() Return an out of range exception for this type. |
public void | setBigDecimal(Number bigDecimal) |
protected void | setFrom(DataValueDescriptor dvd) Set the value of this DataValueDescriptor based on the value
of the specified DataValueDescriptor. |
public void | setInto(PreparedStatement ps, int position) |
public void | setInto(ResultSet rs, int position) Set this value into a ResultSet for a subsequent ResultSet.insertRow
or ResultSet.updateRow. |
void | setObject(Object theValue) Set the value from an non-null object. |
public void | setObjectForCast(Object theValue, boolean instanceOfResultType, String resultTypeClassName) |
public void | setToNull() |
public void | setValue(Time theValue) Set the value of this DataValueDescriptor. |
public void | setValue(Time theValue, Calendar cal) Set the value of this DataValueDescriptor. |
public void | setValue(Timestamp theValue) Set the value of this DataValueDescriptor. |
public void | setValue(Timestamp theValue, Calendar cal) Set the value of this DataValueDescriptor. |
public void | setValue(Date theValue) Set the value of this DataValueDescriptor. |
public void | setValue(Date theValue, Calendar cal) Set the value of this DataValueDescriptor. |
public void | setValue(String theValue) Set the value of this DataValueDescriptor. |
public void | setValue(int theValue) |
public void | setValue(double theValue) |
public void | setValue(float theValue) |
public void | setValue(short theValue) |
public void | setValue(long theValue) |
public void | setValue(byte theValue) |
public void | setValue(boolean theValue) Set the value. |
public void | setValue(byte[] theValue) Set the value of this DataValueDescriptor. |
final public void | setValue(DataValueDescriptor dvd) |
public void | setValue(InputStream theStream, int valueLength) |
public void | throwLangSetMismatch(Object value) |
void | throwLangSetMismatch(String argTypeName) |
public int | typePrecedence() Each built-in type in JSQL has a precedence. |
public int | typeToBigDecimal() |