| org.apache.derby.iapi.types.DataValueFactory
All known Subclasses: org.apache.derby.iapi.types.DataValueFactoryImpl,
DataValueFactory | public interface DataValueFactory (Code) | | 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(String value) Get a SQL char with the given value. | StringDataValue | getCharDataValue(String value, StringDataValue previous) | StringDataValue | getClobDataValue(String value) Get a SQL Clob with the given value. | StringDataValue | getClobDataValue(String value, StringDataValue previous) | NumberDataValue | getDataValue(Integer value) Get a SQL int with the given value. | NumberDataValue | getDataValue(Integer value, NumberDataValue previous) | public NumberDataValue | getDataValue(char value) Get a SQL int with a char value. | public NumberDataValue | getDataValue(char value, NumberDataValue previous) | NumberDataValue | getDataValue(Short value) Get a SQL smallint with the given value. | NumberDataValue | getDataValue(Short value, NumberDataValue previous) | NumberDataValue | getDataValue(Byte value) Get a SQL TINYINT with the given value. | NumberDataValue | getDataValue(Byte value, NumberDataValue previous) | NumberDataValue | getDataValue(Long value) Get a SQL bigint with the given value. | NumberDataValue | getDataValue(Long value, NumberDataValue previous) | NumberDataValue | getDataValue(Float value) Get a SQL real with the given value. | NumberDataValue | getDataValue(Float value, NumberDataValue previous) | NumberDataValue | getDataValue(Double value) Get a SQL double precision with the given value. | NumberDataValue | getDataValue(Double value, NumberDataValue previous) | BooleanDataValue | getDataValue(Boolean value) Get a SQL boolean with the given value. | BooleanDataValue | getDataValue(Boolean value, BooleanDataValue previous) | BooleanDataValue | getDataValue(BooleanDataValue value) Get a SQL boolean with the given value. | UserDataValue | getDataValue(Object value) Get a User-defined data value with the given value and type name.
A null argument means get a SQL null value. | UserDataValue | getDataValue(Object value, UserDataValue previous) | RefDataValue | getDataValue(RowLocation value) Get a RefDataValue with the given value. | RefDataValue | getDataValue(RowLocation value, RefDataValue previous) | NumberDataValue | getDataValue(int value) Get a SQL int with the given value. | NumberDataValue | getDataValue(int value, NumberDataValue previous) | NumberDataValue | getDataValue(long value) Get a SQL bigint with the given value. | NumberDataValue | getDataValue(long value, NumberDataValue previous) | NumberDataValue | getDataValue(float value) Get a SQL real with the given value. | NumberDataValue | getDataValue(float value, NumberDataValue previous) | NumberDataValue | getDataValue(double value) Get a SQL double precision with the given value. | NumberDataValue | getDataValue(double value, NumberDataValue previous) | NumberDataValue | getDataValue(short value) Get a SQL SMALLINT with the given value. | NumberDataValue | getDataValue(short value, NumberDataValue previous) | NumberDataValue | getDataValue(byte value) Get a SQL TINYINT with the given value. | NumberDataValue | getDataValue(byte value, NumberDataValue previous) | BooleanDataValue | getDataValue(boolean value) Get a SQL boolean with the given value. | BooleanDataValue | getDataValue(boolean value, BooleanDataValue previous) | DateTimeDataValue | getDataValue(Date value) Get a SQL date with the given value. | DateTimeDataValue | getDataValue(Date value, DateTimeDataValue previous) | DateTimeDataValue | getDataValue(Time value) Get a SQL time with the given value. | DateTimeDataValue | getDataValue(Time value, DateTimeDataValue previous) | DateTimeDataValue | getDataValue(Timestamp value) Get a SQL timestamp with the given value. | DateTimeDataValue | getDataValue(Timestamp value, DateTimeDataValue previous) | public DateTimeDataValue | getDate(DataValueDescriptor operand) Implements the SQL date function
Parameters: operand - A date, timestamp, string or integer. | public DateTimeDataValue | getDateValue(String dateStr, boolean isJdbcEscape) Parameters: dateStr - A date in one of the DB2 standard date formats or the local format. Parameters: isJdbcEscape - If true then the timestamp must be in the JDBC timestamp escape format, otherwise it mustbe in the DB2 timestamp format. | NumberDataValue | getDecimalDataValue(Number value) Get a SQL DECIMAL with the given value. | NumberDataValue | getDecimalDataValue(Number value, NumberDataValue previous) | NumberDataValue | getDecimalDataValue(Long value, NumberDataValue previous) Get a SQL DECIMAL with the given value. | NumberDataValue | getDecimalDataValue(String value) Get a SQL DECIMAL with the given value. | NumberDataValue | getDecimalDataValue(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(String value) Get a SQL long varchar with the given value. | StringDataValue | getLongvarcharDataValue(String value, StringDataValue previous) | StringDataValue | getNClobDataValue(String value) Get a SQL national blob with the given value. | StringDataValue | getNClobDataValue(String value, StringDataValue previous) | StringDataValue | getNationalCharDataValue(String value) Get a SQL national char with the given value. | StringDataValue | getNationalCharDataValue(String value, StringDataValue previous) | StringDataValue | getNationalLongvarcharDataValue(String value) Get a SQL national long varchar with the given value. | StringDataValue | getNationalLongvarcharDataValue(String value, StringDataValue previous) | StringDataValue | getNationalVarcharDataValue(String value) Get a SQL national varchar with the given value. | StringDataValue | getNationalVarcharDataValue(String value, StringDataValue previous) | 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 | getNullDecimal(NumberDataValue dataValue) Get a SQL Decimal/Numeric 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 | getNullNClob(StringDataValue dataValue) Get a SQL NCLOB 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. | 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. | XMLDataValue | getNullXML(XMLDataValue dataValue) Get an XML with a SQL null value. | public DateTimeDataValue | getTimeValue(String timeStr, boolean isJdbcEscape) Parameters: timeStr - A date in one of the DB2 standard time formats or the local format. Parameters: isJdbcEscape - If true then the timestamp must be in the JDBC time escape format, otherwise it mustbe in the DB2 time format. | DateTimeDataValue | getTimestamp(DataValueDescriptor operand) Implement the timestamp SQL function: construct a SQL timestamp from a string, or timestamp. | DateTimeDataValue | getTimestamp(DataValueDescriptor date, DataValueDescriptor time) Construct a SQL timestamp from a date and time. | public DateTimeDataValue | getTimestampValue(String timestampStr, boolean isJdbcEscape) Parameters: timestampStr - A time in string format. Parameters: isJdbcEscape - If true then the time must be in the JDBC time escape format, otherwise it mustbe in the DB2 time format. | BitDataValue | getVarbitDataValue(byte[] value) Get a SQL bit with the given value. | BitDataValue | getVarbitDataValue(byte[] value, BitDataValue previous) | StringDataValue | getVarcharDataValue(String value) Get a SQL varchar with the given value. | StringDataValue | getVarcharDataValue(String value, StringDataValue previous) | XMLDataValue | getXMLDataValue() Get a null XML value. | XMLDataValue | getXMLDataValue(XMLDataValue previous) |
getBlobDataValue | BitDataValue getBlobDataValue(byte[] value) throws StandardException(Code) | | Get a SQL Blob with the given value. A null argument means
get a SQL null value. The second form uses the previous value (if
non-null) to hold the return value.
exception: StandardException - Thrown on error |
getCharDataValue | StringDataValue getCharDataValue(String value)(Code) | | Get a SQL char with the given value. A null argument means get
a SQL null value. The second form re-uses the previous value,
if non-null, as the data holder to return.
|
getClobDataValue | StringDataValue getClobDataValue(String value)(Code) | | Get a SQL Clob with the given value. A null argument means
get a SQL null value. The second form uses the previous value
(if non-null) to hold the return value.
|
getDataValue | NumberDataValue getDataValue(Integer value)(Code) | | Get a SQL int with the given value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
|
getDataValue | public NumberDataValue getDataValue(char value)(Code) | | Get a SQL int with a char value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
|
getDataValue | NumberDataValue getDataValue(Short value)(Code) | | Get a SQL smallint with the given value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
|
getDataValue | NumberDataValue getDataValue(Byte value)(Code) | | Get a SQL TINYINT with the given value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
|
getDataValue | NumberDataValue getDataValue(Long value)(Code) | | Get a SQL bigint with the given value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
|
getDataValue | NumberDataValue getDataValue(Float value) throws StandardException(Code) | | Get a SQL real with the given value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
|
getDataValue | BooleanDataValue getDataValue(Boolean value)(Code) | | Get a SQL boolean with the given value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
|
getDataValue | UserDataValue getDataValue(Object value)(Code) | | Get a User-defined data value with the given value and type name.
A null argument means get a SQL null value. The second form uses
the previous value (if non-null) hold the return value.
|
getDataValue | RefDataValue getDataValue(RowLocation value)(Code) | | Get a RefDataValue with the given value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
|
getDataValue | NumberDataValue getDataValue(int value)(Code) | | Get a SQL int with the given value. The second form re-uses the
previous value, if non-null, as the data holder to return.
|
getDataValue | NumberDataValue getDataValue(long value)(Code) | | Get a SQL bigint with the given value. The second form re-uses the
previous value, if non-null, as the data holder to return.
|
getDataValue | NumberDataValue getDataValue(short value)(Code) | | Get a SQL SMALLINT with the given value. The second form re-uses the
previous value, if non-null, as the data holder to return.
|
getDataValue | NumberDataValue getDataValue(byte value)(Code) | | Get a SQL TINYINT with the given value. The second form re-uses the
previous value, if non-null, as the data holder to return.
|
getDataValue | BooleanDataValue getDataValue(boolean value)(Code) | | Get a SQL boolean with the given value. The second form re-uses the
previous value, if non-null, as the data holder to return.
|
getDataValue | DateTimeDataValue getDataValue(Date value) throws StandardException(Code) | | Get a SQL date with the given value. A null argument means get
a SQL null value. The second form re-uses the previous value,
if non-null, as the data holder to return.
|
getDataValue | DateTimeDataValue getDataValue(Time value) throws StandardException(Code) | | Get a SQL time with the given value. A null argument means get
a SQL null value. The second form re-uses the previous value,
if non-null, as the data holder to return.
|
getDataValue | DateTimeDataValue getDataValue(Timestamp value) throws StandardException(Code) | | Get a SQL timestamp with the given value. A null argument means get
a SQL null value. The second form re-uses the previous value,
if non-null, as the data holder to return.
|
getDateValue | public DateTimeDataValue getDateValue(String dateStr, boolean isJdbcEscape) throws StandardException(Code) | | Parameters: dateStr - A date in one of the DB2 standard date formats or the local format. Parameters: isJdbcEscape - If true then the timestamp must be in the JDBC timestamp escape format, otherwise it mustbe in the DB2 timestamp format. A DateTimeDataValue exception: StandardException - if the syntax is invalid or the date is out of range. |
getLongVarbitDataValue | BitDataValue getLongVarbitDataValue(byte[] value) throws StandardException(Code) | | Get a SQL Long Bit Varying with the given value. A null argument means
get a SQL null value. The second form uses the previous value (if
non-null) to hold the return value.
exception: StandardException - Thrown on error |
getLongvarcharDataValue | StringDataValue getLongvarcharDataValue(String value)(Code) | | Get a SQL long varchar with the given value. A null argument means
get a SQL null value. The second form uses the previous value
(if non-null) to hold the return value.
|
getNClobDataValue | StringDataValue getNClobDataValue(String value)(Code) | | Get a SQL national blob with the given value. A null argument means
get a SQL null value. The second form uses the previous value
(if non-null) to hold the return value.
|
getNationalCharDataValue | StringDataValue getNationalCharDataValue(String value)(Code) | | Get a SQL national char with the given value. A null argument means get
a SQL null value. The second form re-uses the previous value,
if non-null, as the data holder to return.
|
getNationalLongvarcharDataValue | StringDataValue getNationalLongvarcharDataValue(String value)(Code) | | Get a SQL national long varchar with the given value. A null argument means
get a SQL null value. The second form uses the previous value
(if non-null) to hold the return value.
|
getNationalVarcharDataValue | StringDataValue getNationalVarcharDataValue(String value)(Code) | | Get a SQL national varchar with the given value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
|
getNullBoolean | BooleanDataValue getNullBoolean(BooleanDataValue dataValue)(Code) | | Get a SQL boolean with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullByte | NumberDataValue getNullByte(NumberDataValue dataValue)(Code) | | Get a SQL tinyint with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullChar | StringDataValue getNullChar(StringDataValue dataValue)(Code) | | Get a SQL char with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullClob | StringDataValue getNullClob(StringDataValue dataValue)(Code) | | Get a SQL long varchar with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullDate | DateTimeDataValue getNullDate(DateTimeDataValue dataValue)(Code) | | Get a SQL date with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullDecimal | NumberDataValue getNullDecimal(NumberDataValue dataValue)(Code) | | Get a SQL Decimal/Numeric with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullDouble | NumberDataValue getNullDouble(NumberDataValue dataValue)(Code) | | Get a SQL double with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullFloat | NumberDataValue getNullFloat(NumberDataValue dataValue)(Code) | | Get a SQL float with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullInteger | NumberDataValue getNullInteger(NumberDataValue dataValue)(Code) | | Get a SQL int with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullLong | NumberDataValue getNullLong(NumberDataValue dataValue)(Code) | | Get a SQL bigint with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullLongvarchar | StringDataValue getNullLongvarchar(StringDataValue dataValue)(Code) | | Get a SQL long varchar with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullNClob | StringDataValue getNullNClob(StringDataValue dataValue)(Code) | | Get a SQL NCLOB with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullNationalChar | StringDataValue getNullNationalChar(StringDataValue dataValue)(Code) | | Get a SQL national char with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullNationalLongvarchar | StringDataValue getNullNationalLongvarchar(StringDataValue dataValue)(Code) | | Get a SQL national long varchar with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullNationalVarchar | StringDataValue getNullNationalVarchar(StringDataValue dataValue)(Code) | | Get a SQL national varchar with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullObject | UserDataValue getNullObject(UserDataValue dataValue)(Code) | | Get a User-defined data value with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullRef | RefDataValue getNullRef(RefDataValue dataValue)(Code) | | Get a RefDataValue with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullShort | NumberDataValue getNullShort(NumberDataValue dataValue)(Code) | | Get a SQL smallint with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullTime | DateTimeDataValue getNullTime(DateTimeDataValue dataValue)(Code) | | Get a SQL time with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullTimestamp | DateTimeDataValue getNullTimestamp(DateTimeDataValue dataValue)(Code) | | Get a SQL timestamp with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullVarchar | StringDataValue getNullVarchar(StringDataValue dataValue)(Code) | | Get a SQL varchar with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
|
getNullXML | XMLDataValue getNullXML(XMLDataValue dataValue)(Code) | | Get an XML with a SQL null value. If the supplied value is
null then get a new value, otherwise set it to null and return
that value.
|
getTimeValue | public DateTimeDataValue getTimeValue(String timeStr, boolean isJdbcEscape) throws StandardException(Code) | | Parameters: timeStr - A date in one of the DB2 standard time formats or the local format. Parameters: isJdbcEscape - If true then the timestamp must be in the JDBC time escape format, otherwise it mustbe in the DB2 time format. A DateTimeDataValue exception: StandardException - if the syntax is invalid or the time is out of range. |
getTimestampValue | public DateTimeDataValue getTimestampValue(String timestampStr, boolean isJdbcEscape) throws StandardException(Code) | | Parameters: timestampStr - A time in string format. Parameters: isJdbcEscape - If true then the time must be in the JDBC time escape format, otherwise it mustbe in the DB2 time format. An internal timestamp exception: StandardException - if the syntax is invalid or the timestamp is out of range. |
getVarbitDataValue | BitDataValue getVarbitDataValue(byte[] value) throws StandardException(Code) | | Get a SQL bit with the given value. The second form re-uses the
previous value, if non-null, as the data holder to return.
exception: StandardException - Thrown on error |
getVarcharDataValue | StringDataValue getVarcharDataValue(String value)(Code) | | Get a SQL varchar with the given value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
|
getXMLDataValue | XMLDataValue getXMLDataValue()(Code) | | Get a null XML value. The second form re-uses the previous value,
if non-null, as the data holder to return.
|
|
|