JavaScript Extension Development API for Oracle Visual Builder Cloud Service - Classic Applications

Source: entity/js/api/RelationDeleteRule.js

define([], function () {

    'use strict';

    /**
     * Defines the delete behaviour for child records when the a parent record is deleted.
     *
     * @AbcsExtension stable
     * @version 17.3.5
     * @exports entity/js/api/RelationDeleteRule
     *
     * @constructor
     * @private
     */
    var RelationDeleteRule = function () {
        AbcsLib.throwStaticClassError();
    };

    /**
     * Restrict.  If a parent row has child rows that reference it, delete of that parent row will be prevented.
     *
     * @static
     * @constant
     * @type {String}
     */
    RelationDeleteRule.RESTRICT = 'restrict';

    /**
     * Cascade.  If a parent row has child rows that reference it, delete of that parent row will cause the child rows to be deleted also.
     *
     * @static
     * @constant
     * @type {String}
     */
    RelationDeleteRule.CASCADE = 'cascade';

    /**
     * Set null.  If a parent row has child rows that reference it, delete of that parent row will cause the child rows reference to the parent to be cleared and set to null.
     *
     * @static
     * @constant
     * @type {String}
     */
    RelationDeleteRule.SET_NULL = 'set_null';

    return RelationDeleteRule;

});