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.

12Adding SQL Triggers and ForeignKeys to a ClassEvery persistent <strong>Caché</strong> class is automatically projected as an SQL table. This chapter discusses howyou can use <strong>Studio</strong> with those parts of a class definition that control its SQL behavior.12.1 SQL AliasesYou can give classes as well as most class members an alternate name for use by SQL. This is usefulbecause:• There is a long list of SQL reserved words that cannot be used as identifiers.• <strong>Caché</strong> does not support the underscore character in class or class member names.To specify an SQL table name for a class, view the Class information in the Class Inspector and editthe value for the SqlTableName keyword.To specify an SQL name for a class member, select the desired property in the Class Inspector andedit the value for its appropriate SQL name keyword (such as SqlFieldName for properties andSqlName for indices).<strong>Using</strong> <strong>Caché</strong> <strong>Studio</strong> 69

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

Saved successfully!

Ooh no, something went wrong!