Default Value Plug-ins

Default value plug-ins supply the default values used when no values are available. Default value plug-ins are provided for the following domains (all of the plug-ins are in the curam.util.client.domain.defaults package):

Table 1. Out-of-the-Box Default Value Plug-ins
Domain Plug-in Class Assumed Value Displayed Value

SVR_BLOB

SvrBlobDefault

Empty BLOB

Empty BLOB

SVR_BOOLEAN

SvrBooleanDefault

False

False

SVR_CHAR

SvrCharDefault

Character zero

Character zero

SVR_DATE

SvrDateDefault

Zero date

Current date

SVR_DATETIME

SvrDateTimeDefault

Zero date-time

Current date-midnight

SVR_DATETIME

SvrDateTimeDefaultCurrTime

Zero date-time

Current date - Current time

SVR_DOUBLE

SvrDoubleDefault

Zero

Zero

SVR_FLOAT

SvrFloatDefault

Zero

Zero

SVR_INT8

SvrInt8Default

Zero

Zero

SVR_INT16

SvrInt16Default

Zero

Zero

SVR_INT32

SvrInt32Default

Zero

Zero

SVR_INT64

SvrInt64Default

Zero

Zero

SVR_MONEY

SvrMoneyDefault

Zero

Zero

SVR_STRING

SvrStringDefault

Empty string

Empty string

SVR_UNBOUNDED_STRING

SvrStringDefault

Empty string

Empty string

CODETABLE_CODE

CodeTableCodeDefault

Empty code string

Empty code string

Within the Cúram application, the zero date and time is represented as midnight on January 1,0001; this is interpreted as if no date and time has been set at all.

Also, the default value for a code-table code is an empty code string; a different mechanism is used to define default code-table codes during code-table administration.

SvrDateTimeDefault plug-in is time zone aware and the displayed value it returns is offset by the difference between the user and server time zones. The configured converter plug-in is expected to also consider time zone settings and offset the value accordingly. The end result is that the time part of date-time value is set to midnight regardless the time zone settings.