13.07.2015 Views

Using Caché Studio - InterSystems Documentation

Using Caché Studio - InterSystems Documentation

Using Caché Studio - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Class Definition SyntaxProjection JavaClient As %Projection.Java(LOCATION="c:\java");B.3.9 SQL Trigger StatementThe Trigger statement defines an SQL Trigger for a persistent class. Its declaration contains the nameof the trigger.The body of a Trigger contains the code.Trigger OnInsert [ Event = INSERT ]{// trigger code}B.3.9.1 SQL Trigger Keyword ListA Trigger statement can include an optional keyword list:Trigger OnDelete [ Event = DELETE, TIME = AFTER ]{// trigger code}The following table displays the keywords that can appear in the keyword list. Do not provide a valuefor keywords marked as Boolean:SQL Trigger KeywordsKeywordEventFinalForeachInternalLanguageNewTableOldTableOrderSqlNameTimeUpdateColumnListPossible ValuesDELETE | INSERT | UPDATE | INSERT/UPDATE |INSERT/DELETE | UPDATE/DELETE | INSERT/UPDATE/DELETEBoolean. If present, specifies that this class cannot havesubclasses.row | statementBooleancache | tsqlStringStringIntegerSQL IdentifierAFTER | BEFORENull or a comma-delimited list of one or more column names.166 <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!