|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is how we get constant data values of different types.
Method Summary | |
BitDataValue |
getBitDataValue(byte[] value)
Get a SQL bit with the given value. |
BitDataValue |
getBitDataValue(byte[] value,
BitDataValue previous)
|
BitDataValue |
getBlobDataValue(byte[] value)
Get a SQL Blob with the given value. |
BitDataValue |
getBlobDataValue(byte[] value,
BitDataValue previous)
|
StringDataValue |
getCharDataValue(java.lang.String value)
Get a SQL char with the given value. |
StringDataValue |
getCharDataValue(java.lang.String value,
StringDataValue previous)
|
StringDataValue |
getClobDataValue(java.lang.String value)
Get a SQL Clob with the given value. |
StringDataValue |
getClobDataValue(java.lang.String value,
StringDataValue previous)
|
NumberDataValue |
getDataValue(java.math.BigDecimal value)
Get a SQL DECIMAL with the given value. |
NumberDataValue |
getDataValue(java.math.BigDecimal value,
NumberDataValue previous)
|
BooleanDataValue |
getDataValue(boolean value)
Get a SQL boolean with the given value. |
BooleanDataValue |
getDataValue(java.lang.Boolean value)
Get a SQL boolean with the given value. |
BooleanDataValue |
getDataValue(boolean value,
BooleanDataValue previous)
|
BooleanDataValue |
getDataValue(java.lang.Boolean value,
BooleanDataValue previous)
|
BooleanDataValue |
getDataValue(BooleanDataValue value)
Get a SQL boolean with the given value. |
NumberDataValue |
getDataValue(byte value)
Get a SQL TINYINT with the given value. |
NumberDataValue |
getDataValue(java.lang.Byte value)
Get a SQL TINYINT with the given value. |
NumberDataValue |
getDataValue(byte value,
NumberDataValue previous)
|
NumberDataValue |
getDataValue(java.lang.Byte value,
NumberDataValue previous)
|
NumberDataValue |
getDataValue(char value)
Get a SQL int with a char value. |
NumberDataValue |
getDataValue(char value,
NumberDataValue previous)
|
DateTimeDataValue |
getDataValue(java.sql.Date value)
Get a SQL date with the given value. |
DateTimeDataValue |
getDataValue(java.sql.Date value,
DateTimeDataValue previous)
|
NumberDataValue |
getDataValue(double value)
Get a SQL double precision with the given value. |
NumberDataValue |
getDataValue(java.lang.Double value)
Get a SQL double precision with the given value. |
NumberDataValue |
getDataValue(double value,
NumberDataValue previous)
|
NumberDataValue |
getDataValue(java.lang.Double value,
NumberDataValue previous)
|
NumberDataValue |
getDataValue(float value)
Get a SQL real with the given value. |
NumberDataValue |
getDataValue(java.lang.Float value)
Get a SQL real with the given value. |
NumberDataValue |
getDataValue(float value,
NumberDataValue previous)
|
NumberDataValue |
getDataValue(java.lang.Float value,
NumberDataValue previous)
|
NumberDataValue |
getDataValue(int value)
Get a SQL int with the given value. |
NumberDataValue |
getDataValue(java.lang.Integer value)
Get a SQL int with the given value. |
NumberDataValue |
getDataValue(java.lang.Integer value,
NumberDataValue previous)
|
NumberDataValue |
getDataValue(int value,
NumberDataValue previous)
|
NumberDataValue |
getDataValue(long value)
Get a SQL bigint with the given value. |
NumberDataValue |
getDataValue(java.lang.Long value)
Get a SQL bigint with the given value. |
NumberDataValue |
getDataValue(long value,
NumberDataValue previous)
|
NumberDataValue |
getDataValue(java.lang.Long value,
NumberDataValue previous)
|
UserDataValue |
getDataValue(java.lang.Object value)
Get a User-defined data value with the given value and type name. |
UserDataValue |
getDataValue(java.lang.Object value,
UserDataValue previous)
|
RefDataValue |
getDataValue(RowLocation value)
Get a RefDataValue with the given value. |
RefDataValue |
getDataValue(RowLocation value,
RefDataValue previous)
|
NumberDataValue |
getDataValue(short value)
Get a SQL SMALLINT with the given value. |
NumberDataValue |
getDataValue(java.lang.Short value)
Get a SQL smallint with the given value. |
NumberDataValue |
getDataValue(short value,
NumberDataValue previous)
|
NumberDataValue |
getDataValue(java.lang.Short value,
NumberDataValue previous)
|
DateTimeDataValue |
getDataValue(java.sql.Time value)
Get a SQL time with the given value. |
DateTimeDataValue |
getDataValue(java.sql.Time value,
DateTimeDataValue previous)
|
DateTimeDataValue |
getDataValue(java.sql.Timestamp value)
Get a SQL timestamp with the given value. |
DateTimeDataValue |
getDataValue(java.sql.Timestamp value,
DateTimeDataValue previous)
|
DateTimeDataValue |
getDateValue(java.lang.String dateStr,
boolean isJdbcEscape)
|
NumberDataValue |
getDecimalDataValue(java.lang.String value)
Get a SQL DECIMAL with the given value. |
NumberDataValue |
getDecimalDataValue(java.lang.String value,
NumberDataValue previous)
|
BitDataValue |
getLongVarbitDataValue(byte[] value)
Get a SQL Long Bit Varying with the given value. |
BitDataValue |
getLongVarbitDataValue(byte[] value,
BitDataValue previous)
|
StringDataValue |
getLongvarcharDataValue(java.lang.String value)
Get a SQL long varchar with the given value. |
StringDataValue |
getLongvarcharDataValue(java.lang.String value,
StringDataValue previous)
|
StringDataValue |
getNationalCharDataValue(java.lang.String value)
Get a SQL national char with the given value. |
StringDataValue |
getNationalCharDataValue(java.lang.String value,
StringDataValue previous)
|
StringDataValue |
getNationalLongvarcharDataValue(java.lang.String value)
Get a SQL national long varchar with the given value. |
StringDataValue |
getNationalLongvarcharDataValue(java.lang.String value,
StringDataValue previous)
|
StringDataValue |
getNationalVarcharDataValue(java.lang.String value)
Get a SQL national varchar with the given value. |
StringDataValue |
getNationalVarcharDataValue(java.lang.String value,
StringDataValue previous)
|
StringDataValue |
getNClobDataValue(java.lang.String value)
Get a SQL national blob with the given value. |
StringDataValue |
getNClobDataValue(java.lang.String value,
StringDataValue previous)
|
NumberDataValue |
getNullBigDecimal(NumberDataValue dataValue)
Get a SQL Decimal/Numeric with a SQL null value. |
BitDataValue |
getNullBit(BitDataValue dataValue)
Get a SQL Bit with a SQL null value. |
BitDataValue |
getNullBlob(BitDataValue dataValue)
Get a SQL Blob with a SQL null value. |
BooleanDataValue |
getNullBoolean(BooleanDataValue dataValue)
Get a SQL boolean with a SQL null value. |
NumberDataValue |
getNullByte(NumberDataValue dataValue)
Get a SQL tinyint with a SQL null value. |
StringDataValue |
getNullChar(StringDataValue dataValue)
Get a SQL char with a SQL null value. |
StringDataValue |
getNullClob(StringDataValue dataValue)
Get a SQL long varchar with a SQL null value. |
DateTimeDataValue |
getNullDate(DateTimeDataValue dataValue)
Get a SQL date with a SQL null value. |
NumberDataValue |
getNullDouble(NumberDataValue dataValue)
Get a SQL double with a SQL null value. |
NumberDataValue |
getNullFloat(NumberDataValue dataValue)
Get a SQL float with a SQL null value. |
NumberDataValue |
getNullInteger(NumberDataValue dataValue)
Get a SQL int with a SQL null value. |
NumberDataValue |
getNullLong(NumberDataValue dataValue)
Get a SQL bigint with a SQL null value. |
BitDataValue |
getNullLongVarbit(BitDataValue dataValue)
Get a SQL Long Bit Varying with a SQL null value. |
StringDataValue |
getNullLongvarchar(StringDataValue dataValue)
Get a SQL long varchar with a SQL null value. |
StringDataValue |
getNullNationalChar(StringDataValue dataValue)
Get a SQL national char with a SQL null value. |
StringDataValue |
getNullNationalLongvarchar(StringDataValue dataValue)
Get a SQL national long varchar with a SQL null value. |
StringDataValue |
getNullNationalVarchar(StringDataValue dataValue)
Get a SQL national varchar with a SQL null value. |
StringDataValue |
getNullNClob(StringDataValue dataValue)
Get a SQL NCLOB with a SQL null value. |
UserDataValue |
getNullObject(UserDataValue dataValue)
Get a User-defined data value with a SQL null value. |
RefDataValue |
getNullRef(RefDataValue dataValue)
Get a RefDataValue with a SQL null value. |
NumberDataValue |
getNullShort(NumberDataValue dataValue)
Get a SQL smallint with a SQL null value. |
DateTimeDataValue |
getNullTime(DateTimeDataValue dataValue)
Get a SQL time with a SQL null value. |
DateTimeDataValue |
getNullTimestamp(DateTimeDataValue dataValue)
Get a SQL timestamp with a SQL null value. |
BitDataValue |
getNullVarbit(BitDataValue dataValue)
Get a SQL Bit Varying with a SQL null value. |
StringDataValue |
getNullVarchar(StringDataValue dataValue)
Get a SQL varchar with a SQL null value. |
DateTimeDataValue |
getTimestamp(DataValueDescriptor date,
DataValueDescriptor time)
Construct a SQL timestamp from a date and time. |
DateTimeDataValue |
getTimestampValue(java.lang.String timestampStr,
boolean isJdbcEscape)
|
DateTimeDataValue |
getTimeValue(java.lang.String timeStr,
boolean isJdbcEscape)
|
BitDataValue |
getVarbitDataValue(byte[] value)
Get a SQL bit with the given value. |
BitDataValue |
getVarbitDataValue(byte[] value,
BitDataValue previous)
|
StringDataValue |
getVarcharDataValue(java.lang.String value)
Get a SQL varchar with the given value. |
StringDataValue |
getVarcharDataValue(java.lang.String value,
StringDataValue previous)
|
Method Detail |
public NumberDataValue getDataValue(java.lang.Integer value)
public NumberDataValue getDataValue(java.lang.Integer value, NumberDataValue previous) throws StandardException
StandardException
public NumberDataValue getDataValue(char value)
public NumberDataValue getDataValue(char value, NumberDataValue previous) throws StandardException
StandardException
public NumberDataValue getDataValue(java.lang.Short value)
public NumberDataValue getDataValue(java.lang.Short value, NumberDataValue previous) throws StandardException
StandardException
public NumberDataValue getDataValue(java.lang.Byte value)
public NumberDataValue getDataValue(java.lang.Byte value, NumberDataValue previous) throws StandardException
StandardException
public NumberDataValue getDataValue(java.lang.Long value)
public NumberDataValue getDataValue(java.lang.Long value, NumberDataValue previous) throws StandardException
StandardException
public NumberDataValue getDataValue(java.lang.Float value) throws StandardException
StandardException
public NumberDataValue getDataValue(java.lang.Float value, NumberDataValue previous) throws StandardException
StandardException
public NumberDataValue getDataValue(java.lang.Double value) throws StandardException
StandardException
- Thrown on errorpublic NumberDataValue getDataValue(java.lang.Double value, NumberDataValue previous) throws StandardException
StandardException
public BooleanDataValue getDataValue(java.lang.Boolean value)
public BooleanDataValue getDataValue(java.lang.Boolean value, BooleanDataValue previous) throws StandardException
StandardException
public BitDataValue getLongVarbitDataValue(byte[] value) throws StandardException
StandardException
- Thrown on errorpublic BitDataValue getLongVarbitDataValue(byte[] value, BitDataValue previous) throws StandardException
StandardException
public BitDataValue getBlobDataValue(byte[] value) throws StandardException
StandardException
- Thrown on errorpublic BitDataValue getBlobDataValue(byte[] value, BitDataValue previous) throws StandardException
StandardException
public BooleanDataValue getDataValue(BooleanDataValue value) throws StandardException
StandardException
- Thrown on errorpublic StringDataValue getVarcharDataValue(java.lang.String value)
public StringDataValue getVarcharDataValue(java.lang.String value, StringDataValue previous) throws StandardException
StandardException
public StringDataValue getLongvarcharDataValue(java.lang.String value)
public StringDataValue getLongvarcharDataValue(java.lang.String value, StringDataValue previous) throws StandardException
StandardException
public StringDataValue getClobDataValue(java.lang.String value)
public StringDataValue getClobDataValue(java.lang.String value, StringDataValue previous) throws StandardException
StandardException
public StringDataValue getNationalVarcharDataValue(java.lang.String value)
public StringDataValue getNationalVarcharDataValue(java.lang.String value, StringDataValue previous) throws StandardException
StandardException
public StringDataValue getNationalLongvarcharDataValue(java.lang.String value)
public StringDataValue getNationalLongvarcharDataValue(java.lang.String value, StringDataValue previous) throws StandardException
StandardException
public StringDataValue getNClobDataValue(java.lang.String value)
public StringDataValue getNClobDataValue(java.lang.String value, StringDataValue previous) throws StandardException
StandardException
public UserDataValue getDataValue(java.lang.Object value)
public UserDataValue getDataValue(java.lang.Object value, UserDataValue previous)
public RefDataValue getDataValue(RowLocation value)
public RefDataValue getDataValue(RowLocation value, RefDataValue previous)
public NumberDataValue getDataValue(int value)
public NumberDataValue getDataValue(int value, NumberDataValue previous) throws StandardException
StandardException
public NumberDataValue getDataValue(long value)
public NumberDataValue getDataValue(long value, NumberDataValue previous) throws StandardException
StandardException
public NumberDataValue getDataValue(float value) throws StandardException
StandardException
- Thrown on errorpublic NumberDataValue getDataValue(float value, NumberDataValue previous) throws StandardException
StandardException
public NumberDataValue getDataValue(double value) throws StandardException
StandardException
- Thrown on errorpublic NumberDataValue getDataValue(double value, NumberDataValue previous) throws StandardException
StandardException
public NumberDataValue getDataValue(short value)
public NumberDataValue getDataValue(short value, NumberDataValue previous) throws StandardException
StandardException
public NumberDataValue getDataValue(byte value)
public NumberDataValue getDataValue(byte value, NumberDataValue previous) throws StandardException
StandardException
public NumberDataValue getDataValue(java.math.BigDecimal value) throws StandardException
StandardException
- Thrown on errorpublic NumberDataValue getDataValue(java.math.BigDecimal value, NumberDataValue previous) throws StandardException
StandardException
public NumberDataValue getDecimalDataValue(java.lang.String value) throws StandardException
StandardException
- Thrown on errorpublic NumberDataValue getDecimalDataValue(java.lang.String value, NumberDataValue previous) throws StandardException
StandardException
public BooleanDataValue getDataValue(boolean value)
public BooleanDataValue getDataValue(boolean value, BooleanDataValue previous) throws StandardException
StandardException
public BitDataValue getBitDataValue(byte[] value) throws StandardException
StandardException
- Thrown on errorpublic BitDataValue getBitDataValue(byte[] value, BitDataValue previous) throws StandardException
StandardException
public BitDataValue getVarbitDataValue(byte[] value) throws StandardException
StandardException
- Thrown on errorpublic BitDataValue getVarbitDataValue(byte[] value, BitDataValue previous) throws StandardException
StandardException
public StringDataValue getCharDataValue(java.lang.String value)
public StringDataValue getCharDataValue(java.lang.String value, StringDataValue previous) throws StandardException
StandardException
public StringDataValue getNationalCharDataValue(java.lang.String value)
public StringDataValue getNationalCharDataValue(java.lang.String value, StringDataValue previous) throws StandardException
StandardException
public DateTimeDataValue getDataValue(java.sql.Date value) throws StandardException
StandardException
public DateTimeDataValue getDataValue(java.sql.Date value, DateTimeDataValue previous) throws StandardException
StandardException
public DateTimeDataValue getDataValue(java.sql.Time value) throws StandardException
StandardException
public DateTimeDataValue getDataValue(java.sql.Time value, DateTimeDataValue previous) throws StandardException
StandardException
public DateTimeDataValue getDataValue(java.sql.Timestamp value) throws StandardException
StandardException
public DateTimeDataValue getDataValue(java.sql.Timestamp value, DateTimeDataValue previous) throws StandardException
StandardException
public DateTimeDataValue getTimestamp(DataValueDescriptor date, DataValueDescriptor time) throws StandardException
date
- Must be convertible to a date.time
- Must be convertible to a time.
StandardException
public DateTimeDataValue getDateValue(java.lang.String dateStr, boolean isJdbcEscape) throws StandardException
dateStr
- A date in one of the DB2 standard date formats or the local format.isJdbcEscape
- If true then the timestamp must be in the JDBC timestamp escape format, otherwise it must
be in the DB2 timestamp format.
StandardException
- if the syntax is invalid or the date is out of range.public DateTimeDataValue getTimeValue(java.lang.String timeStr, boolean isJdbcEscape) throws StandardException
timeStr
- A date in one of the DB2 standard time formats or the local format.isJdbcEscape
- If true then the timestamp must be in the JDBC time escape format, otherwise it must
be in the DB2 time format.
StandardException
- if the syntax is invalid or the time is out of range.public DateTimeDataValue getTimestampValue(java.lang.String timestampStr, boolean isJdbcEscape) throws StandardException
isJdbcEscape
- If true then the time must be in the JDBC time escape format, otherwise it must
be in the DB2 time format.
StandardException
- if the syntax is invalid or the timestamp is out of range.public NumberDataValue getNullInteger(NumberDataValue dataValue)
public NumberDataValue getNullShort(NumberDataValue dataValue)
public NumberDataValue getNullByte(NumberDataValue dataValue)
public NumberDataValue getNullLong(NumberDataValue dataValue)
public NumberDataValue getNullFloat(NumberDataValue dataValue)
public NumberDataValue getNullDouble(NumberDataValue dataValue)
public NumberDataValue getNullBigDecimal(NumberDataValue dataValue)
public BooleanDataValue getNullBoolean(BooleanDataValue dataValue)
public BitDataValue getNullBit(BitDataValue dataValue) throws StandardException
StandardException
- Thrown on errorpublic BitDataValue getNullVarbit(BitDataValue dataValue) throws StandardException
StandardException
- Thrown on errorpublic BitDataValue getNullLongVarbit(BitDataValue dataValue) throws StandardException
StandardException
- Thrown on errorpublic BitDataValue getNullBlob(BitDataValue dataValue) throws StandardException
StandardException
- Thrown on errorpublic StringDataValue getNullChar(StringDataValue dataValue)
public StringDataValue getNullVarchar(StringDataValue dataValue)
public StringDataValue getNullLongvarchar(StringDataValue dataValue)
public StringDataValue getNullClob(StringDataValue dataValue)
public StringDataValue getNullNationalChar(StringDataValue dataValue)
public StringDataValue getNullNationalVarchar(StringDataValue dataValue)
public StringDataValue getNullNationalLongvarchar(StringDataValue dataValue)
public StringDataValue getNullNClob(StringDataValue dataValue)
public UserDataValue getNullObject(UserDataValue dataValue)
public RefDataValue getNullRef(RefDataValue dataValue)
public DateTimeDataValue getNullDate(DateTimeDataValue dataValue)
public DateTimeDataValue getNullTime(DateTimeDataValue dataValue)
public DateTimeDataValue getNullTimestamp(DateTimeDataValue dataValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |