public interface SessionExports
Using this interface, all SESSION attributes are available for query on client side.
Modifier and Type | Method and Description |
---|---|
void |
setDateFormat(character dateFormat)
The SESSION:DATE-FORMAT sets the order of date components for conversion to/from strings.
|
void |
setSessionDisplayTimeZone(NumberType displayTimezone)
Sets the
DISPLAY-TIMEZONE attribute for the user's context. |
void |
setSessionTimeSource(character timeSource)
Sets the
TIME-SOURCE attribute for the user's context. |
void |
setSessionTimeZone(NumberType offset)
Sets the SESSION:TIMEZONE used as the default offset in minutes from
UTC for this user's context.
|
void |
setYearOffset(NumberType year)
Implementation of SESSION:YEAR-OFFSET attribute setter.
|
void setDateFormat(character dateFormat)
The order of the 3 date sub-components as a 3 character string using "M", "D" and "Y" once each. The order from index 0 to index 2 represents the left to right ordering of the components. So the leftmost date component will be defined by the character at index position 0.
The value set is specific to the current user's context.
dateFormat
- Defines the order of date components for conversion to/from strings.void setSessionTimeZone(NumberType offset)
offset
- The new timezone offset which must be between -840 and 840 inclusive.
The value may also be unknown
which is the equivalent of resetting
this attribute to the default.void setSessionTimeSource(character timeSource)
TIME-SOURCE
attribute for the user's context.
This attribute is can be read and written but it is not honored for date/time processing in
P2J. The intention of the attribute is to define the system from which time values will be
obtained. In P2J, time values are always obtained from the application server.timeSource
- The new value to set. If null
, then the empty string will be used,
which in the 4GL has the same affect as "local".void setSessionDisplayTimeZone(NumberType displayTimezone)
DISPLAY-TIMEZONE
attribute for the user's context.
This attribute is used for displaying DATETIME-TZ values that do not have
the timezone specified in the display format.displayTimezone
- The new value to set.void setYearOffset(NumberType year)
date.getWindowingYear()
).year
- The new start year for the two-digit windowing range.