EGL Reference Guide for iSeries
When you are editing a build descriptor part, you can assign values to the
following Java run-time properties, which are detailed in Java run-time
properties (details):
- vgj.jdbc.database.SN
- vgj.datemask.gregorian.long.locale
- vgj.datemask.gregorian.short.locale
- vgj.datemask.julian.long.locale
- vgj.datemask.julian.short.locale
To edit the properties, do as follows:
- When you are working in the EGL or EGL Web perspective, open an EGL build
file with the EGL build parts editor. If you do not have a file open,
do as follows in the Project Navigator:
- Right-click on the EGL build file
- Select Open With > EGL Build Parts Editor
- By default, the Outline view is open in the EGL perspective. If you
are working in the EGL Web perspective, open the Outline view by selecting
Show View > Outline from the Window menu. In
the Outline view, right-click on a build descriptor and select
Open. The EGL part editor displays the general build
descriptor options for the current part definition.
- Click the Show Java Run-time Properties button on the editor
toolbar.
- To add the Java run-time property
vgj.jdbc.database.SN, do
this:
- In the screen area that is titled "Database mappings for connect", click
theAdd button
- Type a "Server name" that you use when coding the system word
sysLib.connectionService; this value is substituted for
SN in the name of the generated property
- If the row in the Database mappings for connect list is not highlighted,
click once to select the row, then click the JNDI name or URL field once to
put the field into edit mode. Type a value whose meaning is different
for J2EE connections as compared with non-J2EE connections:
- In relation to J2EE connections (as is needed in a production
environment), the value is the name to which the datasource is bound in the
JNDI registry; for example, jdbc/MyDB
- In relation to a standard JDBC connection (as may be used for debugging),
the value is the connection URL; for example, jdbc:db2:MyDB
- To assign the date masks used when you code either
sysVar.currentFormattedDate (for a Gregorian date) or
sysVar.currentFormattedJulianDate (for a Julian date); or EGL
validates a page item or a text-form field that has a length of 10 or more and
a dateFormat property of systemGregorian or
systemJulian, do this:
- In the screen area that is titled "Date Masks", click the Add
button
- In the Locale column, select one of the codes in the listbox; the
selected value is substituted for locale in the
date-mask properties listed earlier. Only one of your entries is used
at run time: the entry for which the value of
locale matches the value of the Java run-time property
vgj.nls.code
- If the row in the Date Masks list is not highlighted, click once to select
the row, then click the Long Gregorian Mask field once to put the field into
edit mode. Either select a mask from the listbox or type a mask;
characters other than D, Y, or digits can be used as separators, and the
default value is specific to the locale
- If the row in the Date Masks list is not highlighted, click once to select
the row, then click the Long Julian Mask field once to put the field into edit
mode. Either select a mask from the listbox or type a mask;
characters other than D, Y, or digits can be used as separators, and the
default value is specific to the locale
- To assign the date masks used when EGL validates a page item or a
text-form field that has a length less than 10 and a dateFormat
property of systemGregorian or systemJulian, do
this:
- In the screen area that is titled "Date Masks", click the Add
button
- In the Locale column, select one of the codes in the listbox; the
selected value is substituted for locale in the
date-mask properties listed earlier. Only one of your entries is used
at run time: the entry for which the value of
locale matches the value of the Java run-time property
vgj.nls.code
- If the row in the Date Masks list is not highlighted, click once to select
the row, then click the Short Gregorian Mask field once to put the field into
edit mode. Either select a mask from the listbox or type a mask;
characters other than D, Y, or digits can be used as separators, and the
default value is specific to the locale
- If the row in the Date Masks list is not highlighted, click once to select
the row, then click the Short Julian Mask field once to put the field into
edit mode. Either select a mask from the listbox or type a mask;
characters other than D, Y, or digits can be used as separators, and the
default value is specific to the locale
- To remove an assignment, click on it, then click the Remove
button.
Related concepts
Build descriptor part
Java run-time properties
Related tasks
Editing general build descriptor options
Switching to the EGL or EGL Web perspective
Related reference
EGL build-file format
Java run-time properties (details)
sysLib.connectionService
sysVar.currentFormattedDate
sysVar.currentFormattedJulianDate
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.