Options

Two options are available for attributes of the AuditMappings class in the model:

IfExclude from modify is set for an audit mappings field, then the value of this field will not be changed by a modify / nsmodify / nkmodify operation. i.e. the field will be set when a record is inserted, and will never be changed by subsequent updates. Similarly ifExclude from insert is set then the value of the field will not be set by a insert / nsinsert operation but will be changed by any subsequent updates. The default value for each of these options is false.

Note that it is not possible to cause audit mapping fields to be excluded from operations of stereotype ns. Handcrafted SQL in these operations can still be used to access audit mapping fields directly.

Note: If your audit mappings include a time stamp then you should populate this field with the value returned by TransactionInfo. getProgramTimeStamp(). This will ensure that all audit mapping-enabled tables modified during the transaction will have the same time stamp value even though the tables will not have been written to at the exact same time.