ModuleControl, DataValueFactorypublic final class DataValueFactoryImpl extends java.lang.Object implements DataValueFactory, ModuleControl
DataValueFactory| Modifier and Type | Field | Description |
|---|---|---|
private java.text.RuleBasedCollator |
collatorForCharacterTypes |
|
private java.util.Locale |
databaseLocale |
|
private LocaleFinder |
localeFinder |
| Constructor | Description |
|---|---|
DataValueFactoryImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
boot(boolean create,
java.util.Properties properties) |
Boot this module with the given properties.
|
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) |
Return a StringDataValue to represent a SQL CHAR
with the given collation re-using previous if not null.
|
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) |
Return a StringDataValue to represent a SQL CLOB
with the given collation re-using previous if not null.
|
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.
|
(package private) static Context |
getContext(java.lang.String contextID) |
Privileged lookup of a Context.
|
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) |
Implement the date SQL function: construct a SQL date from a string, number, or timestamp.
|
DateTimeDataValue |
getDateValue(java.lang.String dateStr,
boolean isJdbcEscape) |
|
NumberDataValue |
getDecimalDataValue(java.lang.Number value,
NumberDataValue previous) |
Get a SQL DECIMAL with the given value.
|
private LocaleFinder |
getLocaleFinder() |
|
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) |
Return a StringDataValue to represent a SQL LONG VARCHAR
with the given collation re-using previous if not null.
|
private static ModuleFactory |
getMonitor() |
Privileged Monitor lookup.
|
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 previous,
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 previous,
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.
|
static DataValueDescriptor |
getNullDVDWithUCS_BASICcollation(int formatId) |
This method will return a DVD based on the formatId.
|
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 previous,
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 previous,
int collationType) |
Get a SQL VARCHAR set to NULL with collation set to collationType.
|
XMLDataValue |
getNullXML(XMLDataValue dataValue) |
getNullXML:
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) |
Return a StringDataValue to represent a SQL VARCHAR
with the given collation re-using previous if not null.
|
XMLDataValue |
getXMLDataValue(XMLDataValue previous) |
getXMLDataValue:
Get a null XML value.
|
void |
stop() |
Stop the module.
|
private java.text.RuleBasedCollator |
verifyCollatorSupport(int strength) |
Verify that JVM has support for the Collator for the database's locale.
|
private LocaleFinder localeFinder
private java.util.Locale databaseLocale
private java.text.RuleBasedCollator collatorForCharacterTypes
public void boot(boolean create,
java.util.Properties properties)
throws StandardException
ModuleControlAn implementation's boot method can throw StandardException. If it is thrown the module is not registered by the monitor and therefore cannot be found through a findModule(). In this case the module's stop() method is not called, thus throwing this exception must free up any resources.
When create is true the contents of the properties object
will be written to the service.properties of the persistent
service. Thus any code that requires an entry in service.properties
must explicitly place the value in this properties set
using the put method.
Typically the properties object contains one or more default
properties sets, which are not written out to service.properties.
These default sets are how callers modify the create process. In a
JDBC connection database create the first set of defaults is a properties
object that contains the attributes that were set on the jdbc:derby: URL.
This attributes properties set has the second default properties set as
its default. This set (which could be null) contains the properties
that the user set on their DriverManager.getConnection() call, and are thus
not owned by Derby code, and thus must not be modified by Derby
code.
When create is false the properties object contains all the properties set in the service.properties file plus a limited number of attributes from the JDBC URL attributes or connection properties set. This avoids properties set by the user compromising the boot process. An example of a property passed in from the JDBC world is the bootPassword for encrypted databases.
Code should not hold onto the passed in properties reference after boot time as its contents may change underneath it. At least after the complete boot is completed, the links to all the default sets will be removed.
boot in interface ModuleControlStandardException - Module cannot be started.Monitor,
ModuleFactorypublic void stop()
ModuleControlstop in interface ModuleControlMonitor,
ModuleFactorypublic NumberDataValue getDataValue(int value, NumberDataValue previous) throws StandardException
DataValueFactorygetDataValue in interface DataValueFactoryStandardExceptionDataValueFactory.getDataValue(java.lang.Integer, org.apache.derby.iapi.types.NumberDataValue)public NumberDataValue getDataValue(java.lang.Integer value, NumberDataValue previous) throws StandardException
DataValueFactorygetDataValue in interface DataValueFactoryStandardExceptionpublic NumberDataValue getDataValue(char value, NumberDataValue previous) throws StandardException
DataValueFactorygetDataValue in interface DataValueFactoryStandardExceptionpublic NumberDataValue getDataValue(short value, NumberDataValue previous) throws StandardException
DataValueFactorygetDataValue in interface DataValueFactoryStandardExceptionpublic NumberDataValue getDataValue(java.lang.Short value, NumberDataValue previous) throws StandardException
DataValueFactorygetDataValue in interface DataValueFactoryStandardExceptionpublic NumberDataValue getDataValue(byte value, NumberDataValue previous) throws StandardException
DataValueFactorygetDataValue in interface DataValueFactoryStandardExceptionpublic NumberDataValue getDataValue(java.lang.Byte value, NumberDataValue previous) throws StandardException
DataValueFactorygetDataValue in interface DataValueFactoryStandardExceptionpublic NumberDataValue getDataValue(long value, NumberDataValue previous) throws StandardException
DataValueFactorygetDataValue in interface DataValueFactoryStandardExceptionpublic NumberDataValue getDataValue(java.lang.Long value, NumberDataValue previous) throws StandardException
DataValueFactorygetDataValue in interface DataValueFactoryStandardExceptionpublic NumberDataValue getDataValue(float value, NumberDataValue previous) throws StandardException
DataValueFactorygetDataValue in interface DataValueFactoryStandardException - Thrown on errorpublic NumberDataValue getDataValue(java.lang.Float value, NumberDataValue previous) throws StandardException
DataValueFactorygetDataValue in interface DataValueFactoryStandardExceptionpublic NumberDataValue getDataValue(double value, NumberDataValue previous) throws StandardException
DataValueFactorygetDataValue in interface DataValueFactoryStandardException - Thrown on errorpublic NumberDataValue getDataValue(java.lang.Double value, NumberDataValue previous) throws StandardException
DataValueFactorygetDataValue in interface DataValueFactoryStandardException - Thrown on errorpublic final NumberDataValue getDecimalDataValue(java.lang.Number value, NumberDataValue previous) throws StandardException
DataValueFactorygetDecimalDataValue in interface DataValueFactoryStandardException - Thrown on errorpublic BooleanDataValue getDataValue(boolean value, BooleanDataValue previous) throws StandardException
DataValueFactorygetDataValue in interface DataValueFactoryStandardExceptionpublic BooleanDataValue getDataValue(java.lang.Boolean value, BooleanDataValue previous) throws StandardException
DataValueFactorygetDataValue in interface DataValueFactoryStandardExceptionpublic BitDataValue getBitDataValue(byte[] value) throws StandardException
DataValueFactorygetBitDataValue in interface DataValueFactoryStandardException - Thrown on errorpublic BitDataValue getBitDataValue(byte[] value, BitDataValue previous) throws StandardException
getBitDataValue in interface DataValueFactoryStandardExceptionpublic BitDataValue getVarbitDataValue(byte[] value, BitDataValue previous) throws StandardException
DataValueFactorygetVarbitDataValue in interface DataValueFactoryStandardException - Thrown on errorpublic BitDataValue getLongVarbitDataValue(byte[] value, BitDataValue previous) throws StandardException
DataValueFactorygetLongVarbitDataValue in interface DataValueFactoryStandardException - Thrown on errorpublic BitDataValue getBlobDataValue(byte[] value, BitDataValue previous) throws StandardException
DataValueFactorygetBlobDataValue in interface DataValueFactoryStandardException - Thrown on errorpublic BitDataValue getBlobDataValue(java.sql.Blob value, BitDataValue previous) throws StandardException
DataValueFactorygetBlobDataValue in interface DataValueFactoryStandardException - Thrown on errorpublic StringDataValue getCharDataValue(java.lang.String value)
DataValueFactorygetCharDataValue in interface DataValueFactorypublic StringDataValue getCharDataValue(java.lang.String value, StringDataValue previous) throws StandardException
DataValueFactorygetCharDataValue in interface DataValueFactoryStandardExceptionpublic StringDataValue getCharDataValue(java.lang.String value, StringDataValue previous, int collationType) throws StandardException
getCharDataValue in interface DataValueFactoryStandardExceptionpublic StringDataValue getVarcharDataValue(java.lang.String value)
DataValueFactorygetVarcharDataValue in interface DataValueFactorypublic StringDataValue getVarcharDataValue(java.lang.String value, StringDataValue previous) throws StandardException
DataValueFactorygetVarcharDataValue in interface DataValueFactoryStandardExceptionpublic StringDataValue getVarcharDataValue(java.lang.String value, StringDataValue previous, int collationType) throws StandardException
getVarcharDataValue in interface DataValueFactoryStandardExceptionpublic StringDataValue getLongvarcharDataValue(java.lang.String value)
DataValueFactorygetLongvarcharDataValue in interface DataValueFactorypublic StringDataValue getLongvarcharDataValue(java.lang.String value, StringDataValue previous) throws StandardException
DataValueFactorygetLongvarcharDataValue in interface DataValueFactoryStandardExceptionpublic StringDataValue getLongvarcharDataValue(java.lang.String value, StringDataValue previous, int collationType) throws StandardException
getLongvarcharDataValue in interface DataValueFactoryStandardExceptionpublic StringDataValue getClobDataValue(java.lang.String value, StringDataValue previous) throws StandardException
DataValueFactorygetClobDataValue in interface DataValueFactoryStandardExceptionpublic StringDataValue getClobDataValue(java.sql.Clob value, StringDataValue previous) throws StandardException
DataValueFactorygetClobDataValue in interface DataValueFactoryStandardExceptionpublic StringDataValue getClobDataValue(java.sql.Clob value, StringDataValue previous, int collationType) throws StandardException
DataValueFactorygetClobDataValue in interface DataValueFactoryStandardExceptionpublic StringDataValue getClobDataValue(java.lang.String value, StringDataValue previous, int collationType) throws StandardException
getClobDataValue in interface DataValueFactoryStandardExceptionpublic DateTimeDataValue getDataValue(java.sql.Date value, DateTimeDataValue previous) throws StandardException
DataValueFactorygetDataValue in interface DataValueFactoryStandardExceptionpublic DateTimeDataValue getDataValue(java.sql.Time value, DateTimeDataValue previous) throws StandardException
DataValueFactorygetDataValue in interface DataValueFactoryStandardExceptionpublic DateTimeDataValue getDataValue(java.sql.Timestamp value, DateTimeDataValue previous) throws StandardException
DataValueFactorygetDataValue in interface DataValueFactoryStandardExceptionpublic DateTimeDataValue getDate(DataValueDescriptor operand) throws StandardException
getDate in interface DataValueFactoryoperand - Must be a date, a number, or a string convertible to a date.StandardException - standard error policypublic DateTimeDataValue getTimestamp(DataValueDescriptor operand) throws StandardException
getTimestamp in interface DataValueFactoryoperand - Must be a timestamp or a string convertible to a timestamp.StandardException - standard error policypublic DateTimeDataValue getTimestamp(DataValueDescriptor date, DataValueDescriptor time) throws StandardException
DataValueFactorygetTimestamp in interface DataValueFactorydate - Must be convertible to a date.time - Must be convertible to a time.StandardExceptionpublic UserDataValue getDataValue(java.lang.Object value, UserDataValue previous)
DataValueFactorygetDataValue in interface DataValueFactorypublic RefDataValue getDataValue(RowLocation value, RefDataValue previous)
DataValueFactorygetDataValue in interface DataValueFactorypublic NumberDataValue getNullInteger(NumberDataValue dataValue)
DataValueFactorygetNullInteger in interface DataValueFactorypublic NumberDataValue getNullShort(NumberDataValue dataValue)
DataValueFactorygetNullShort in interface DataValueFactorypublic NumberDataValue getNullLong(NumberDataValue dataValue)
DataValueFactorygetNullLong in interface DataValueFactorypublic NumberDataValue getNullByte(NumberDataValue dataValue)
DataValueFactorygetNullByte in interface DataValueFactorypublic NumberDataValue getNullFloat(NumberDataValue dataValue)
DataValueFactorygetNullFloat in interface DataValueFactorypublic NumberDataValue getNullDouble(NumberDataValue dataValue)
DataValueFactorygetNullDouble in interface DataValueFactorypublic final NumberDataValue getNullDecimal(NumberDataValue dataValue)
DataValueFactorygetNullDecimal in interface DataValueFactorypublic BooleanDataValue getNullBoolean(BooleanDataValue dataValue)
DataValueFactorygetNullBoolean in interface DataValueFactorypublic BitDataValue getNullBit(BitDataValue dataValue) throws StandardException
DataValueFactorygetNullBit in interface DataValueFactoryStandardException - Thrown on errorpublic BitDataValue getNullVarbit(BitDataValue dataValue) throws StandardException
DataValueFactorygetNullVarbit in interface DataValueFactoryStandardException - Thrown on errorpublic BitDataValue getNullLongVarbit(BitDataValue dataValue) throws StandardException
DataValueFactorygetNullLongVarbit in interface DataValueFactoryStandardException - Thrown on errorpublic BitDataValue getNullBlob(BitDataValue dataValue) throws StandardException
DataValueFactorygetNullBlob in interface DataValueFactoryStandardException - Thrown on errorpublic StringDataValue getNullChar(StringDataValue dataValue)
DataValueFactorygetNullChar in interface DataValueFactorypublic StringDataValue getNullChar(StringDataValue previous, int collationType) throws StandardException
getNullChar in interface DataValueFactoryStandardExceptionpublic StringDataValue getNullVarchar(StringDataValue dataValue)
DataValueFactorygetNullVarchar in interface DataValueFactorypublic StringDataValue getNullVarchar(StringDataValue previous, int collationType) throws StandardException
getNullVarchar in interface DataValueFactoryStandardExceptionpublic StringDataValue getNullLongvarchar(StringDataValue dataValue)
DataValueFactorygetNullLongvarchar in interface DataValueFactorypublic StringDataValue getNullLongvarchar(StringDataValue previous, int collationType) throws StandardException
getNullLongvarchar in interface DataValueFactoryStandardExceptionpublic StringDataValue getNullClob(StringDataValue dataValue)
DataValueFactorygetNullClob in interface DataValueFactorypublic StringDataValue getNullClob(StringDataValue previous, int collationType) throws StandardException
getNullClob in interface DataValueFactoryStandardExceptionpublic UserDataValue getNullObject(UserDataValue dataValue)
DataValueFactorygetNullObject in interface DataValueFactorypublic RefDataValue getNullRef(RefDataValue dataValue)
DataValueFactorygetNullRef in interface DataValueFactorypublic DateTimeDataValue getNullDate(DateTimeDataValue dataValue)
DataValueFactorygetNullDate in interface DataValueFactorypublic DateTimeDataValue getNullTime(DateTimeDataValue dataValue)
DataValueFactorygetNullTime in interface DataValueFactorypublic DateTimeDataValue getNullTimestamp(DateTimeDataValue dataValue)
DataValueFactorygetNullTimestamp in interface DataValueFactorypublic DateTimeDataValue getDateValue(java.lang.String dateStr, boolean isJdbcEscape) throws StandardException
getDateValue in interface DataValueFactorydateStr - 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
getTimeValue in interface DataValueFactorytimeStr - 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
getTimestampValue in interface DataValueFactorytimestampStr - 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.public XMLDataValue getXMLDataValue(XMLDataValue previous) throws StandardException
getXMLDataValue in interface DataValueFactoryprevious - An XMLDataValue instance to re-use.StandardException - Thrown on errorpublic XMLDataValue getNullXML(XMLDataValue dataValue)
getNullXML in interface DataValueFactorydataValue - An XMLDataValue instance to re-use.public java.text.RuleBasedCollator getCharacterCollator(int collationType)
throws StandardException
DataValueFactorygetCharacterCollator in interface DataValueFactorycollationType - This will be UCS_BASIC or TERRITORY_BASEDStandardExceptionDataValueFactory.getCharacterCollator(int)private java.text.RuleBasedCollator verifyCollatorSupport(int strength)
throws StandardException
strength - Collator strength or -1 for locale default.StandardException - if JVM does not have support for Collatorpublic DataValueDescriptor getNull(int formatId, int collationType) throws StandardException
DataValueFactorygetNull in interface DataValueFactoryformatId - Format id for the DVDcollationType - this is meaningful only for character types.StandardExceptionDataValueFactory.getNull(int, int)public static DataValueDescriptor getNullDVDWithUCS_BASICcollation(int formatId)
formatId - Return a DVD based on the format idprivate LocaleFinder getLocaleFinder()
static Context getContext(java.lang.String contextID)
private static ModuleFactory getMonitor()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.