13.07.2015 Views

Using Caché Studio - InterSystems Documentation

Using Caché Studio - InterSystems Documentation

Using Caché Studio - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Adding SQL Triggers and Foreign Keys to a ClassThe New SQL Foreign Key wizard prompts you for information. When you have filled in the requiredinformation, click Finish (default values are provided for any information you have not specified).12.4.1.1 Name and Description PageThe New SQL Foreign Key wizard prompts you for the following information (you can later modifyany of these values):Foreign Key NameDescription(required) Name of the foreign key. This name must be a valid foreign key name and mustnot conflict with the name of previously defined foreign key.For a general discussion on names see the <strong>Caché</strong> Classes chapter in <strong>Using</strong> <strong>Caché</strong> Objects.(optional) Description of the new foreign key. This description is used when the class' documentationis displayed in the online class library documentation.A description can include HTML formatting tags. For more details see <strong>Using</strong> HTML inDescriptions in the Class Definition Language reference.12.4.1.2 Attributes PageThe second page asks you to select one or more properties of the class that you want constrained bythe foreign key.12.4.1.3 Key Construction PageThe third page asks you to select both the class and a key (unique index) in that class that specify thevalues used to constrain the foreign key properties.12.4.1.4 Results of Running the New SQL Foreign Key WizardAfter running the New SQL Foreign Key wizard, the Class Editor window is updated to include thenew foreign key definition.If you want to make further modifications to this foreign key you can do this using either the ClassEditor or the Class Inspector.74 <strong>Using</strong> <strong>Caché</strong> <strong>Studio</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!