| Installing Upgrading Designing Configuring Deploying Monitoring Administering Troubleshooting Reference JBI Components | |
| Close Print View | |
| Designing: Defining Project Constants |
|
Creating a Runtime Environment
Designing Business Processes in the Sun Business Process Manager
Working with TCP/IP HL7 Collaborations
Developing Sun Master Indexes (Repository)
Developing Sun Master Patient Indexes
Developing OTDs for Application Adapters
Developing OTDs for Communication Adapters
Developing OTDs for Database Adapters
Developing OTDs for Web Server Adapters
Designing with Application Adapters
Designing with Communication Adapters
Designing with Web Server Adapters
Designing with Sun JCA Adapters
Defining Constants and Variables
Project constants are name-value pairs that are visible across the Project. Using a constant allows you to define the value once, and then refer to it from the various Project configurations, rather than having to redefine the value everywhere it is needed. For example, the following figure shows a standard currency defined to be used globally throughout the system.
You can add a constant to a Project by selecting the New > Variable or Constant
option from the Project context menu in the NetBeans IDE, which displays the
following dialog box.
Project Constant Options
|
Constants and variables are automatically added to a Variables and Constants object group
within the Project, as shown in the following figure. Selecting an entry in
the upper panel displays it in the lower panel, where you can modify
it. By clicking OK you overwrite the previous definition with the modified version.
Constants and Variables Object Group Icons
|