When you map a global to database ABC
, you configure a given namespace so that Caché writes this global to and reads this global from the database ABC, which is not the default database for your namespace. When you define this global mapping
, Caché does not move the global (if it already exists) to the designated database; instead the mapping instructs Caché where to read and write the global in the future.
To map a global:
Access the Management Portal.
in the row for the namespace in which you want to define this mapping.
Enter the Global name
(omitting the initial caret from the name). You can use the *
character to choose multiple globals.
The global does not have to exist when you map it (that is, it can be the name of a global you plan to create).
Typically you create mappings for data globals for persistent classes, because you want to store that data in non-default databases. Often you can guess the name of the data globals, but remember that Caché automatically uses a hashed form of the class name if the name is too long. It is worthwhile to check the storage definitions for those classes to make sure you have the exact names of the globals that they use. See Storage,
earlier in this book.
To save the mappings, select
The following shows an example global mapping, as seen in the Management Portal, which does not display the initial caret of global names:
This mapping means the following: