DataValueFactoryImpl
public interface DataValueFactory
Modifier and Type | Method | Description |
---|---|---|
BitDataValue |
getBitDataValue(byte[] value) |
Get a SQL bit with the given value.
|
BitDataValue |
getBitDataValue(byte[] value,
BitDataValue previous) |
|
BitDataValue |
getBlobDataValue(byte[] value,
BitDataValue previous) |
Get a SQL Blob with the given value.
|
BitDataValue |
getBlobDataValue(java.sql.Blob value,
BitDataValue previous) |
Get a SQL Blob with the given value.
|
java.text.RuleBasedCollator |
getCharacterCollator(int collationType) |
Return the RuleBasedCollator depending on the collation type.
|
StringDataValue |
getCharDataValue(java.lang.String value) |
Get a new SQLChar object to represent a SQL CHAR (UCS_BASIC)
with the given value.
|
StringDataValue |
getCharDataValue(java.lang.String value,
StringDataValue previous) |
Get a SQLChar object to represent a SQL CHAR (UCS_BASIC
with the given value.
|
StringDataValue |
getCharDataValue(java.lang.String value,
StringDataValue previous,
int collationType) |
Get a StringDataValue to represent a SQL CHAR with the
passed in collationType.
|
StringDataValue |
getClobDataValue(java.lang.String value,
StringDataValue previous) |
Get a SQLClob object to represent a SQL CLOB (UCS_BASIC)
with the given value.
|
StringDataValue |
getClobDataValue(java.lang.String value,
StringDataValue previous,
int collationType) |
Get a StringDataValue to represent a SQL LONG VARCHAR with the
passed in collationType.
|
StringDataValue |
getClobDataValue(java.sql.Clob value,
StringDataValue previous) |
Get a SQLClob object to represent a SQL CLOB (UCS_BASIC)
with the given value.
|
StringDataValue |
getClobDataValue(java.sql.Clob value,
StringDataValue previous,
int collationType) |
Get a StringDataValue to represent a SQL CLOB with the
passed in collationType.
|
BooleanDataValue |
getDataValue(boolean value,
BooleanDataValue previous) |
Get a SQL boolean with the given value.
|
NumberDataValue |
getDataValue(byte value,
NumberDataValue previous) |
Get a SQL TINYINT with the given value.
|
NumberDataValue |
getDataValue(char value,
NumberDataValue previous) |
Get a SQL int with a char value.
|
NumberDataValue |
getDataValue(double value,
NumberDataValue previous) |
Get a SQL double precision with the given value.
|
NumberDataValue |
getDataValue(float value,
NumberDataValue previous) |
Get a SQL real with the given value.
|
NumberDataValue |
getDataValue(int value,
NumberDataValue previous) |
Get a SQL int with the given value.
|
NumberDataValue |
getDataValue(long value,
NumberDataValue previous) |
Get a SQL bigint with the given value.
|
NumberDataValue |
getDataValue(short value,
NumberDataValue previous) |
Get a SQL SMALLINT with the given value.
|
BooleanDataValue |
getDataValue(java.lang.Boolean value,
BooleanDataValue previous) |
Get a SQL boolean with the given value.
|
NumberDataValue |
getDataValue(java.lang.Byte value,
NumberDataValue previous) |
Get a SQL TINYINT with the given value.
|
NumberDataValue |
getDataValue(java.lang.Double value,
NumberDataValue previous) |
Get a SQL double precision with the given value.
|
NumberDataValue |
getDataValue(java.lang.Float value,
NumberDataValue previous) |
Get a SQL real with the given value.
|
NumberDataValue |
getDataValue(java.lang.Integer value,
NumberDataValue previous) |
Get a SQL int with the given value.
|
NumberDataValue |
getDataValue(java.lang.Long value,
NumberDataValue previous) |
Get a SQL bigint with the given value.
|
UserDataValue |
getDataValue(java.lang.Object value,
UserDataValue previous) |
Get a User-defined data value with the given value and type name.
|
NumberDataValue |
getDataValue(java.lang.Short value,
NumberDataValue previous) |
Get a SQL smallint with the given value.
|
DateTimeDataValue |
getDataValue(java.sql.Date value,
DateTimeDataValue previous) |
Get a SQL date with the given value.
|
DateTimeDataValue |
getDataValue(java.sql.Time value,
DateTimeDataValue previous) |
Get a SQL time with the given value.
|
DateTimeDataValue |
getDataValue(java.sql.Timestamp value,
DateTimeDataValue previous) |
Get a SQL timestamp with the given value.
|
RefDataValue |
getDataValue(RowLocation value,
RefDataValue previous) |
Get a RefDataValue with the given value.
|
DateTimeDataValue |
getDate(DataValueDescriptor operand) |
Implements the SQL date function
|
DateTimeDataValue |
getDateValue(java.lang.String dateStr,
boolean isJdbcEscape) |
|
NumberDataValue |
getDecimalDataValue(java.lang.Number value,
NumberDataValue previous) |
Get a SQL DECIMAL with the given value.
|
BitDataValue |
getLongVarbitDataValue(byte[] value,
BitDataValue previous) |
Get a SQL Long Bit Varying with the given value.
|
StringDataValue |
getLongvarcharDataValue(java.lang.String value) |
Get a SQL long varchar with the given value.
|
StringDataValue |
getLongvarcharDataValue(java.lang.String value,
StringDataValue previous) |
Get a SQLLongvarchar object to represent a SQL LONG VARCHAR (UCS_BASIC)
with the given value.
|
StringDataValue |
getLongvarcharDataValue(java.lang.String value,
StringDataValue previous,
int collationType) |
Get a StringDataValue to represent a SQL LONG VARCHAR with the
passed in collationType.
|
DataValueDescriptor |
getNull(int formatId,
int collationType) |
Return an object based on the format id and collation type.
|
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 (UCS_BASIC) with a SQL null value.
|
StringDataValue |
getNullChar(StringDataValue dataValue,
int collationType) |
Get a SQL CHAR set to NULL with collation set to collationType.
|
StringDataValue |
getNullClob(StringDataValue dataValue) |
Get a SQL CLOB (UCS_BASIC) with a SQL null value.
|
StringDataValue |
getNullClob(StringDataValue dataValue,
int collationType) |
Get a SQL CLOB set to NULL with collation set to collationType.
|
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 (UCS_BASIC) with a SQL null value.
|
StringDataValue |
getNullLongvarchar(StringDataValue dataValue,
int collationType) |
Get a SQL LONG VARCHAR set to NULL with collation set to collationType.
|
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 (UCS_BASIC) with a SQL null value.
|
StringDataValue |
getNullVarchar(StringDataValue dataValue,
int collationType) |
Get a SQL VARCHAR set to NULL with collation set to collationType.
|
XMLDataValue |
getNullXML(XMLDataValue dataValue) |
Get an XML with a SQL null value.
|
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.
|
DateTimeDataValue |
getTimestampValue(java.lang.String timestampStr,
boolean isJdbcEscape) |
|
DateTimeDataValue |
getTimeValue(java.lang.String timeStr,
boolean isJdbcEscape) |
|
BitDataValue |
getVarbitDataValue(byte[] value,
BitDataValue previous) |
Get a SQL bit with the given value.
|
StringDataValue |
getVarcharDataValue(java.lang.String value) |
Get a SQL varchar with the given value.
|
StringDataValue |
getVarcharDataValue(java.lang.String value,
StringDataValue previous) |
Get a SQLVarhar object to represent a SQL VARCHAR (UCS_BASIC)
with the given value.
|
StringDataValue |
getVarcharDataValue(java.lang.String value,
StringDataValue previous,
int collationType) |
Get a StringDataValue to represent a SQL VARCHAR with the
passed in collationType.
|
XMLDataValue |
getXMLDataValue(XMLDataValue previous) |
Get a null XML value.
|
NumberDataValue getDataValue(java.lang.Integer value, NumberDataValue previous) throws StandardException
StandardException
NumberDataValue getDataValue(char value, NumberDataValue previous) throws StandardException
StandardException
NumberDataValue getDataValue(java.lang.Short value, NumberDataValue previous) throws StandardException
StandardException
NumberDataValue getDataValue(java.lang.Byte value, NumberDataValue previous) throws StandardException
StandardException
NumberDataValue getDataValue(java.lang.Long value, NumberDataValue previous) throws StandardException
StandardException
NumberDataValue getDataValue(java.lang.Float value, NumberDataValue previous) throws StandardException
StandardException
NumberDataValue getDataValue(java.lang.Double value, NumberDataValue previous) throws StandardException
StandardException
- Thrown on errorBooleanDataValue getDataValue(java.lang.Boolean value, BooleanDataValue previous) throws StandardException
StandardException
BitDataValue getLongVarbitDataValue(byte[] value, BitDataValue previous) throws StandardException
StandardException
- Thrown on errorBitDataValue getBlobDataValue(byte[] value, BitDataValue previous) throws StandardException
StandardException
- Thrown on errorBitDataValue getBlobDataValue(java.sql.Blob value, BitDataValue previous) throws StandardException
StandardException
- Thrown on errorStringDataValue getVarcharDataValue(java.lang.String value)
StringDataValue getVarcharDataValue(java.lang.String value, StringDataValue previous) throws StandardException
StandardException
StringDataValue getVarcharDataValue(java.lang.String value, StringDataValue previous, int collationType) throws StandardException
StandardException
StringDataValue getLongvarcharDataValue(java.lang.String value)
StringDataValue getLongvarcharDataValue(java.lang.String value, StringDataValue previous) throws StandardException
StandardException
StringDataValue getLongvarcharDataValue(java.lang.String value, StringDataValue previous, int collationType) throws StandardException
StandardException
StringDataValue getClobDataValue(java.lang.String value, StringDataValue previous) throws StandardException
StandardException
StringDataValue getClobDataValue(java.sql.Clob value, StringDataValue previous) throws StandardException
StandardException
StringDataValue getClobDataValue(java.lang.String value, StringDataValue previous, int collationType) throws StandardException
StandardException
StringDataValue getClobDataValue(java.sql.Clob value, StringDataValue previous, int collationType) throws StandardException
StandardException
UserDataValue getDataValue(java.lang.Object value, UserDataValue previous)
RefDataValue getDataValue(RowLocation value, RefDataValue previous)
NumberDataValue getDataValue(int value, NumberDataValue previous) throws StandardException
StandardException
NumberDataValue getDataValue(long value, NumberDataValue previous) throws StandardException
StandardException
NumberDataValue getDataValue(float value, NumberDataValue previous) throws StandardException
StandardException
- Thrown on errorNumberDataValue getDataValue(double value, NumberDataValue previous) throws StandardException
StandardException
- Thrown on errorNumberDataValue getDataValue(short value, NumberDataValue previous) throws StandardException
StandardException
NumberDataValue getDataValue(byte value, NumberDataValue previous) throws StandardException
StandardException
NumberDataValue getDecimalDataValue(java.lang.Number value, NumberDataValue previous) throws StandardException
StandardException
- Thrown on errorBooleanDataValue getDataValue(boolean value, BooleanDataValue previous) throws StandardException
StandardException
BitDataValue getBitDataValue(byte[] value) throws StandardException
StandardException
- Thrown on errorBitDataValue getBitDataValue(byte[] value, BitDataValue previous) throws StandardException
StandardException
BitDataValue getVarbitDataValue(byte[] value, BitDataValue previous) throws StandardException
StandardException
- Thrown on errorStringDataValue getCharDataValue(java.lang.String value)
StringDataValue getCharDataValue(java.lang.String value, StringDataValue previous) throws StandardException
StandardException
StringDataValue getCharDataValue(java.lang.String value, StringDataValue previous, int collationType) throws StandardException
StandardException
DateTimeDataValue getDataValue(java.sql.Date value, DateTimeDataValue previous) throws StandardException
StandardException
DateTimeDataValue getDataValue(java.sql.Time value, DateTimeDataValue previous) throws StandardException
StandardException
DateTimeDataValue getDataValue(java.sql.Timestamp value, DateTimeDataValue previous) throws StandardException
StandardException
DateTimeDataValue getTimestamp(DataValueDescriptor operand) throws StandardException
operand
- Must be a timestamp or a string convertible to a timestamp.StandardException
DateTimeDataValue getTimestamp(DataValueDescriptor date, DataValueDescriptor time) throws StandardException
date
- Must be convertible to a date.time
- Must be convertible to a time.StandardException
DateTimeDataValue getDate(DataValueDescriptor operand) throws StandardException
operand
- A date, timestamp, string or integer.StandardException
- if the syntax is invalid or the date is out of range.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.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.DateTimeDataValue getTimestampValue(java.lang.String timestampStr, boolean isJdbcEscape) throws StandardException
timestampStr
- A time in string format.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.XMLDataValue getXMLDataValue(XMLDataValue previous) throws StandardException
StandardException
NumberDataValue getNullInteger(NumberDataValue dataValue)
NumberDataValue getNullShort(NumberDataValue dataValue)
NumberDataValue getNullByte(NumberDataValue dataValue)
NumberDataValue getNullLong(NumberDataValue dataValue)
NumberDataValue getNullFloat(NumberDataValue dataValue)
NumberDataValue getNullDouble(NumberDataValue dataValue)
NumberDataValue getNullDecimal(NumberDataValue dataValue)
BooleanDataValue getNullBoolean(BooleanDataValue dataValue)
BitDataValue getNullBit(BitDataValue dataValue) throws StandardException
StandardException
- Thrown on errorBitDataValue getNullVarbit(BitDataValue dataValue) throws StandardException
StandardException
- Thrown on errorBitDataValue getNullLongVarbit(BitDataValue dataValue) throws StandardException
StandardException
- Thrown on errorBitDataValue getNullBlob(BitDataValue dataValue) throws StandardException
StandardException
- Thrown on errorStringDataValue getNullChar(StringDataValue dataValue)
StringDataValue getNullChar(StringDataValue dataValue, int collationType) throws StandardException
StandardException
StringDataValue getNullVarchar(StringDataValue dataValue)
StringDataValue getNullVarchar(StringDataValue dataValue, int collationType) throws StandardException
StandardException
StringDataValue getNullLongvarchar(StringDataValue dataValue)
StringDataValue getNullLongvarchar(StringDataValue dataValue, int collationType) throws StandardException
StandardException
StringDataValue getNullClob(StringDataValue dataValue)
StringDataValue getNullClob(StringDataValue dataValue, int collationType) throws StandardException
StandardException
UserDataValue getNullObject(UserDataValue dataValue)
RefDataValue getNullRef(RefDataValue dataValue)
DateTimeDataValue getNullDate(DateTimeDataValue dataValue)
DateTimeDataValue getNullTime(DateTimeDataValue dataValue)
DateTimeDataValue getNullTimestamp(DateTimeDataValue dataValue)
XMLDataValue getNullXML(XMLDataValue dataValue)
java.text.RuleBasedCollator getCharacterCollator(int collationType) throws StandardException
collationType
- This will be UCS_BASIC or TERRITORY_BASEDStandardException
DataValueDescriptor getNull(int formatId, int collationType) throws StandardException
formatId
- Format id for the DVDcollationType
- this is meaningful only for character types.StandardException
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.