Managing Caché Object Class Definitions


VC/m includes two component drivers for Caché object class definitions. The CDL component driver should be used for Caché 4, and the CLS driver for Caché 5 onwards.

Note: The CDL component driver manipulates the System property of classes it controls in order to prevent unauthorized changes being made in Object Architect.

Each of the components must be set up with a type of "CDL" or "CLS". The component name is made up of the package name, followed by a dot, followed by the Caché class name, e.g. Package.Object.

For each location where the Caché classes can be run, configure the location definition so that all CDL or CLS components have a storage format of "M" and a physical address of the namespace where they should be placed.

Setting CDL Components to Compile After Transfer


For CDL components, a transfer callout is required which will compile the components after they have been transferred.

1. In the folders panel, navigate to Setup->Properties.

2. Click on Transfer and a new dialog should open.

3. In Transfer Initialization field, add the following routine call:
init^%vc1xCDL

4. OPTIONAL: To run the compilation in the background rather than in the foreground, add the following routine call to the Transfer Termination field:
compile^%vc1xCDL

Note: For CDL components the compile is run as a background job and often takes place some considerable time after VC/m has made the transfer.

Note: Classes which are generated from Caché Server Pages should be managed as CSP components, not as classes