Skip Headers
Oracle® TopLink Developer's Guide
10g (10.1.3.1.0)
B28218-01
  Go To Documentation Library
Library
Go To Product List
Product
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
 
Next
Next
 

Working With TopLink Workbench

Figure 4-1 shows the primary parts of TopLink Workbench window.

Figure 4-1 TopLink Workbench Window

Description of Figure 4-1 follows
Description of "Figure 4-1 TopLink Workbench Window"

The numbered callouts in Figure 4-1 identify the following user interface components:

  1. Menu bar

    The menu bar contains menus for each TopLink Workbench function. Some objects also contain context-sensitive menus. See "Using the Menus" for more information.

  2. Toolbars

    The toolbars contain shortcuts to specific functions. See "Using the Toolbars" for more information.

  3. Navigator window section

    The Navigator window section shows the project navigation tree for all open projects (see "Using the Navigator"). Click the plus ( + ) or minus ( – ) sign next to an object (or double-click the object) to expand or collapse the tree. When you select an object in the Navigator window section, its properties appear in the Editor window.

  4. Editor window section

    The Editor window section contains specific property sheets and option tabs for the currently selected object. See "Using the Editor" for more information.

  5. Problems window section

    The Problems window section shows messages and errors for the currently selected object in the Navigator window section (see "Using the Problems Window"). Chapter 14, "TopLink Workbench Error Reference" contains detailed information on each error message.

Using the Menus

TopLink Workbench contains two types of menus:

Menu Bar Menus

The menu bar, located at the top of the TopLink Workbench window, provides menus for each TopLink Workbench function. Some menus (such as Selected) are context-sensitive; the available options may vary, depending on the currently selected object.

Figure 4-2 Sample Menu Bar Menu

Description of Figure 4-2 follows
Description of "Figure 4-2 Sample Menu Bar Menu"

Context Menus

When you right-click objects in the Navigator window, a context menu appears with functions specific to the selected object.

Figure 4-3 Sample Context Menu

Description of Figure 4-3 follows
Description of "Figure 4-3 Sample Context Menu"

Using the Toolbars

TopLink Workbench contains the following toolbars at the top of the window:

Toolbars provide tool tips: each toolbar button provides a brief description when you position the mouse pointer over it.

Standard Toolbar

The standard toolbar furnishes quick access to the standard menu options (File, Edit, Selected, and so on).

Table 4-1 Standard Toolbar Buttons

Button Description Available for ...
New Project button.

New

All

Open Project button

Open

All

Save button

Save

All

Save As button

Save as

All

Save All button

Save all

All

Close Project button

Close

All

Close All button

Close all

All

Online help

Help topics

All

Export Deployment XML button

Export deployment XML

Projects

Refresh Selected Classes button

Refresh classes

Projects

Add or Update Classes button

Add or refresh classes

Projects

Create New Class button

Create new class

Projects


Context Toolbar

The context toolbar provides quick access to functions for the currently selected object in the Navigator (see "Using the Navigator"). The available buttons will vary, depending on which item you have selected.

You can also right-click the item and choose the appropriate option from the context menu.

Table 4-2 Context Toolbar Buttons

Button Description Available for ...
Login to Database button

Login to database

Databases

Logout of Database button

Logout of database

Databases

Add Table button

Add new table

Databases

Add or Update Tables from Database button

Add or update tables from database

Databases

Refresh from Database button

Refresh from database

Database tables

Remove Table button

Remove table

Database tables

Rename button

Rename

Database tables

Add database platform button

Add database platform

Database platform repositories

Rename button

Rename repository

Database platform repositories

Delete platform button

Delete platform

Database platform repositories

Clone platform button

Clone platform

Database platform repositories

Add database type button

Add database type

Database platform repositories

Import Schema button

Import schema

Schemas

Aggregate Descriptor button

Relational aggregate descriptor

Descriptors

Class Descriptor button

Relational class descriptor

Descriptors

EJB Descriptor button

Relational EJB descriptor

Descriptors

EIS composite descriptor button

EIS composite descriptor

Descriptors

EIS Root Descriptor button

EIS root descriptor

Descriptors

EIS EJB Descriptor button

EIS EJB descriptor

Descriptors

XML descriptor button

XML descriptor

Descriptors

Direct to Field Mapping button

Direct-to-field mapping

Attributes in relational descriptors

Object type Mapping button

Object type mappingFoot 1 

Attributes in relational descriptors

Type Conversion Mapping button

Type conversion mappingFootref 1

Attributes in relational descriptors

Serialized Mapping button

Serialized mappingFootref 1

Attributes in relational descriptors

Direct-to-XMLType Mapping button

Direct-to-XMLType mapping

Attributes in relational descriptors

Direct Collection Mapping button

Direct collection mapping

Attributes in relational descriptors

Direct Map Mapping button

Direct map mapping

Attributes in relational descriptors

Aggregate Mapping button

Aggregate mapping

Attributes in relational descriptors

One-to-one Mapping button

One-to-one mapping

Attributes in relational descriptors

Variable One-to-one Mapping button

Variable one-to-one mapping

Attributes in relational descriptors

One-to-many Mapping button

One-to-many mapping

Attributes in relational descriptors

Many-to-many Mapping button

Many-to-many mapping

Attributes in relational descriptors

Direct Mapping button

Direct mapping

Attributes in EIS descriptors

Direct Collection Mapping button

Direct collection mapping

Attributes in EIS descriptors

Composite Object Mapping button

Composite object mapping

Attributes in EIS descriptors

Composite Collection Mapping button

Composite collection mapping

Attributes in EIS descriptors

One-to-one Mapping button

One-to-one mapping

Attributes in EIS descriptors

One-to-many Mapping button

One-to-many mapping

Attributes in EIS descriptors

Direct-to-XML Mapping button

Direct-to-XML mapping

Attributes in XML descriptors

Direct Collection Mapping button

Direct collection mapping

Attributes in XML descriptors

Composite Object Mapping button

Composite object mapping

Attributes in XML descriptors

Composite Collection Mapping button

Composite collection mapping

Attributes in XML descriptors

Any Object Mapping button

Any object mapping

Attributes in XML descriptors

Any Collection Mapping button

Any collection mapping

Attributes in XML descriptors

Transformation Mapping button

Transformation mapping

Attributes in all descriptors

Unmap button

Unmap

Attributes in all descriptors

Session button

Session

Sessions configurations

Session Broker button

Session Broker

Sessions configurations

Named Connection Pool button

Named connection pool

Server sessions

Sequence Connection Pool button

Sequence connection pool

Server sessions

Write Connection Pool button

Write connection pool

Server sessions

Rename button

Rename

Database sessions, session brokers

Delete Session button

Delete session

Database sessions, session brokers


Footnote 1 Deprecated. For more information, see "Using a Converter Mapping"

Using the Navigator

TopLink displays the items included in each project (descriptors, mappings, data source, and so on) in the Navigator on the left side of the TopLink Workbench window, as Figure 4-4 shows.

Figure 4-4 Sample Navigator

Description of Figure 4-4 follows
Description of "Figure 4-4 Sample Navigator"

The numbered callouts on Figure 4-4 identify the following user interface components:

  1. Project (relational project)

  2. Package

  3. TopLink Descriptor (relational descriptor)

  4. Attribute/mapping (direct to field mapping)

  5. Unsaved/changed item

  6. Database

  7. Database table

Click the plus ( + ) or minus ( – ) sign next to the item, or double-click the item name to expand or collapse the item.

TopLink Workbench identifies items that have been changed but not yet saved by adding an asterisk ( * ) in front of the item name.

When you select an item in the Navigator, its properties appear in the Editor (see "Using the Editor").

To perform specific functions for an item, select the item in the Navigator and do one of the following:

  • Right-click on the object and select the function from the context menu (see "Context Menus").

  • Choose a function from the Selected menu (see "Menu Bar Menus").

For information on using the Navigator with a database in relational projects, see "Working With Database Tables in the Navigator Window".

For information on using the Navigator with an XML schema in EIS projects (using XML records) and XML projects, see "Working With XML Schemas in the Navigator".

Active and Inactive Descriptors

Inactive descriptors appear dimmed in the Navigator. Inactive descriptors are not registered with the session when the project is loaded into Java. This feature lets you define and test subsets of descriptors. To activate or deactivate a descriptor, right-click the descriptor and select Activate/Deactivate Descriptor from the context menu.

Figure 4-5 Sample Active and Inactive Descriptors

Description of Figure 4-5 follows
Description of "Figure 4-5 Sample Active and Inactive Descriptors"

Figure 4-5 numbered callouts show the following user interface components:

  1. Inactive descriptor

  2. Active descriptor

Errors and Missing Information

Caution / Warning icon

If an element in the project (such as a descriptor or mapping) contains an error or some deficiency (sometimes called neediness), a warning icon appears beside the element icon in the Navigator, and TopLink Workbench displays a message in the Problems window (see "Using the Problems Window").

Chapter 14, "TopLink Workbench Error Reference", contains more information on each TopLink Workbench error message.

Using the Editor

The Editor, on the right side of the TopLink Workbench window, displays the property sheet associated with the currently selected item in the Navigator, as Figure 4-6 shows.

Figure 4-6 numbered callouts identify the following user interface components:

  1. Selected element (from the Navigator)

  2. Editor property tabs

Using the Problems Window

Caution / Warning icon

If an element in the project (such as a descriptor or mapping) contains an error or some deficiency (sometimes called neediness), the TopLink Workbench displays a caution icon (represented by a yellow triangle with a black exclamation point in the middle) to the left of the deficient element in the Navigator (see "Using the Navigator") and displays a message in the Problems window as Figure 4-7 shows.

If you select the error, then TopLink Workbench displays the complete error message in the Problems window. Chapter 14, "TopLink Workbench Error Reference" contains detailed information on each error message.

Figure 4-7 Sample Deficient Mapping

Description of Figure 4-7 follows
Description of "Figure 4-7 Sample Deficient Mapping"

Double-click any error message in the Problems window to automatically highlight the specific node in the Navigator. To display or hide the Problems window, select Window > Show Problems from the menu.

You can also create a status report (see "Generating the Project Status Report") that includes all errors in a selected project.

Using the Online Help

TopLink Workbench contains an extensive online Help system to assist you in developing TopLink applications. You can use the online Help system in a hosted or local environment (see "Help Preferences").

To receive help on any field, tab, or element in TopLink Workbench, right-click the element and select Help from the context menu or press F1.

Help button
To review the complete TopLink documentation and Quick Start, click Help.