RecordInsertList.new Method

Creates a new object to hold records for insertion into the database.

Syntax

public void new(
    TableId tableId, 
   [boolean skipInsertMethod, 
    boolean skipDatabaseLog, 
    boolean skipEvents, 
    boolean skipAosValidation, 
    boolean skipRLSValidation, 
    Common table])

Run On

Called

Parameters

  • skipInsertMethod
    Type: boolean
    A Boolean that determines whether the insert method on the table should be ignored or not.
  • skipDatabaseLog
    Type: boolean
    A Boolean that determines whether the insertion is recorded in the database log.
    If you do not record it in the log, performance is better.
  • skipEvents
    Type: boolean
    A Boolean that determines whether create, update, and delete events should be generated during the import operation.
    If events are not generated, performance is better. However, not generating events means that alerts cannot be created for the data changes.

Examples

The following example creates a new RecordInsertList for the EventRuleField table. The insert method for the table is executed when these records are inserted, and the insert is recorded in the database log. However, CUD events are not generated for the insertion.

recordInsertList = new RecordInsertList( 
    tablenum(EventRuleField), 
    false, 
    false, 
    true);

See Also

Reference

RecordInsertList Class