DBA Data[Home] [Help]

APPS.IGS_FI_APP_RULES_PKG SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 19

    x_last_update_date                  IN     DATE        DEFAULT NULL,
    x_last_updated_by                   IN     NUMBER      DEFAULT NULL,
    x_last_update_login                 IN     NUMBER      DEFAULT NULL
  ) AS
  /*
  ||  Created By : BDEVARAK
  ||  Created On : 26-APR-2001
  ||  Purpose : Initialises the Old and New references for the columns of the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */

    CURSOR cur_old_ref_values IS
      SELECT   *
      FROM     IGS_FI_APP_RULES
      WHERE    rowid = x_rowid;
Line: 46

    IF ((cur_old_ref_values%NOTFOUND) AND (p_action NOT IN ('INSERT', 'VALIDATE_INSERT'))) THEN
      CLOSE cur_old_ref_values;
Line: 48

      fnd_message.set_name ('FND', 'FORM_RECORD_DELETED');
Line: 64

    IF (p_action = 'UPDATE') THEN
      new_references.creation_date                   := old_references.creation_date;
Line: 72

    new_references.last_update_date                  := x_last_update_date;
Line: 73

    new_references.last_updated_by                   := x_last_updated_by;
Line: 74

    new_references.last_update_login                 := x_last_update_login;
Line: 94

      SELECT 'x'
      FROM   igs_fi_app_rules
      WHERE  appl_hierarchy_id = cp_appl_hier_id
      AND    rule_type         = cp_rule_type
      AND    fee_type          = cp_fee_type
      AND    enabled_flag      = 'Y';
Line: 153

      SELECT   rowid
      FROM     igs_fi_app_rules
      WHERE    appl_hierarchy_id = x_appl_hierarchy_id
      AND      rule_type = x_rule_type
      AND      rule_sequence = x_rule_sequence
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 234

      fnd_message.set_name ('FND', 'FORM_RECORD_DELETED');
Line: 247

	     Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
Line: 269

      SELECT   rowid
      FROM     igs_fi_app_rules
      WHERE    appl_rule_id = x_appl_rule_id
      FOR UPDATE NOWAIT;
Line: 307

      SELECT   rowid
      FROM     igs_fi_app_rules
      WHERE    appl_hierarchy_id = x_appl_hierarchy_id
      AND      fee_type = x_fee_type
      AND      rule_type = x_rule_type
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 343

      SELECT   rowid
      FROM     igs_fi_app_rules
      WHERE   ((appl_hierarchy_id = x_appl_hierarchy_id));
Line: 376

    x_last_update_date                  IN     DATE        DEFAULT NULL,
    x_last_updated_by                   IN     NUMBER      DEFAULT NULL,
    x_last_update_login                 IN     NUMBER      DEFAULT NULL
  ) AS
  /*
  ||  Created By : BDEVARAK
  ||  Created On : 26-APR-2001
  ||  Purpose : Initialises the columns, Checks Constraints, Calls the
  ||            Trigger Handlers for the table, before any DML operation.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  ||   smadathi    18-FEB-2003     Bug 2473845. Added logic to re initialize l_rowid to null.
  */
  BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_appl_rule_id,
      x_appl_hierarchy_id,
      x_rule_sequence,
      x_fee_type,
      x_enabled_flag,
      x_rule_type,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 409

    IF (p_action = 'INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation(
             new_references.appl_rule_id
           )
         ) THEN
        fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
Line: 425

    ELSIF (p_action = 'UPDATE') THEN
      -- Call all the procedures related to Before Update.
      check_uniqueness;
Line: 433

    ELSIF (p_action = 'VALIDATE_INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation (
             new_references.appl_rule_id
           )
         ) THEN
        fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
Line: 444

    ELSIF (p_action = 'VALIDATE_UPDATE') THEN
      check_uniqueness;
Line: 451

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_appl_rule_id                      IN OUT NOCOPY NUMBER,
    x_appl_hierarchy_id                 IN     NUMBER,
    x_rule_sequence                     IN     NUMBER,
    x_fee_type                          IN     VARCHAR2,
    x_enabled_flag                      IN     VARCHAR2,
    x_rule_type				IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : BDEVARAK
  ||  Created On : 26-APR-2001
  ||  Purpose : Handles the INSERT DML logic for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
    CURSOR c IS
      SELECT   rowid
      FROM     igs_fi_app_rules
      WHERE    appl_rule_id                      = x_appl_rule_id;
Line: 475

    x_last_update_date           DATE;
Line: 476

    x_last_updated_by            NUMBER;
Line: 477

    x_last_update_login          NUMBER;
Line: 481

    x_last_update_date := SYSDATE;
Line: 483

      x_last_updated_by := 1;
Line: 484

      x_last_update_login := 0;
Line: 486

      x_last_updated_by := fnd_global.user_id;
Line: 487

      IF (x_last_updated_by IS NULL) THEN
        x_last_updated_by := -1;
Line: 490

      x_last_update_login := fnd_global.login_id;
Line: 491

      IF (x_last_update_login IS NULL) THEN
        x_last_update_login := -1;
Line: 500

    SELECT    igs_fi_app_rules_s.NEXTVAL
    INTO      x_appl_rule_id
    FROM      dual;
Line: 505

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_appl_rule_id                      => x_appl_rule_id,
      x_appl_hierarchy_id                 => x_appl_hierarchy_id,
      x_rule_sequence                     => x_rule_sequence,
      x_fee_type                          => x_fee_type,
      x_enabled_flag                      => x_enabled_flag,
      x_rule_type                         => x_rule_type,
      x_creation_date                     => x_last_update_date,
      x_created_by                        => x_last_updated_by,
      x_last_update_date                  => x_last_update_date,
      x_last_updated_by                   => x_last_updated_by,
      x_last_update_login                 => x_last_update_login
    );
Line: 520

    INSERT INTO igs_fi_app_rules (
      appl_rule_id,
      appl_hierarchy_id,
      rule_sequence,
      fee_type,
      enabled_flag,
      rule_type,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.appl_rule_id,
      new_references.appl_hierarchy_id,
      new_references.rule_sequence,
      new_references.fee_type,
      new_references.enabled_flag,
      new_references.rule_type,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 554

  END insert_row;
Line: 576

      SELECT
        appl_hierarchy_id,
        rule_sequence,
        fee_type,
        enabled_flag,
	rule_type
      FROM  igs_fi_app_rules
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 593

      fnd_message.set_name('FND', 'FORM_RECORD_DELETED');
Line: 620

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_appl_rule_id                      IN     NUMBER,
    x_appl_hierarchy_id                 IN     NUMBER,
    x_rule_sequence                     IN     NUMBER,
    x_fee_type                          IN     VARCHAR2,
    x_enabled_flag                      IN     VARCHAR2,
    x_rule_type				IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : BDEVARAK
  ||  Created On : 26-APR-2001
  ||  Purpose : Handles the UPDATE DML logic for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
    x_last_update_date           DATE ;
Line: 640

    x_last_updated_by            NUMBER;
Line: 641

    x_last_update_login          NUMBER;
Line: 645

    x_last_update_date := SYSDATE;
Line: 647

      x_last_updated_by := 1;
Line: 648

      x_last_update_login := 0;
Line: 650

      x_last_updated_by := fnd_global.user_id;
Line: 651

      IF x_last_updated_by IS NULL THEN
        x_last_updated_by := -1;
Line: 654

      x_last_update_login := fnd_global.login_id;
Line: 655

      IF (x_last_update_login IS NULL) THEN
        x_last_update_login := -1;
Line: 665

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_appl_rule_id                      => x_appl_rule_id,
      x_appl_hierarchy_id                 => x_appl_hierarchy_id,
      x_rule_sequence                     => x_rule_sequence,
      x_fee_type                          => x_fee_type,
      x_enabled_flag                      => x_enabled_flag,
      x_rule_type                         => x_rule_type,
      x_creation_date                     => x_last_update_date,
      x_created_by                        => x_last_updated_by,
      x_last_update_date                  => x_last_update_date,
      x_last_updated_by                   => x_last_updated_by,
      x_last_update_login                 => x_last_update_login
    );
Line: 680

    UPDATE igs_fi_app_rules
      SET
        appl_hierarchy_id                 = new_references.appl_hierarchy_id,
        rule_sequence                     = new_references.rule_sequence,
        fee_type                          = new_references.fee_type,
        enabled_flag                      = new_references.enabled_flag,
	rule_type			  = new_references.rule_type,
        last_update_date                  = x_last_update_date,
        last_updated_by                   = x_last_updated_by,
        last_update_login                 = x_last_update_login
      WHERE rowid = x_rowid;
Line: 696

  END update_row;
Line: 712

  ||  Purpose : Adds a row if there is no existing row, otherwise updates existing row in the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
    CURSOR c1 IS
      SELECT   rowid
      FROM     igs_fi_app_rules
      WHERE    appl_rule_id                      = x_appl_rule_id;
Line: 730

      insert_row (
        x_rowid,
        x_appl_rule_id,
        x_appl_hierarchy_id,
        x_rule_sequence,
        x_fee_type,
        x_enabled_flag,
        x_rule_type,
        x_mode
      );
Line: 744

    update_row (
      x_rowid,
      x_appl_rule_id,
      x_appl_hierarchy_id,
      x_rule_sequence,
      x_fee_type,
      x_enabled_flag,
      x_rule_type,
      x_mode
    );
Line: 758

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : BDEVARAK
  ||  Created On : 26-APR-2001
  ||  Purpose : Handles the DELETE DML logic for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
  BEGIN

    before_dml (
      p_action => 'DELETE',
      x_rowid => x_rowid
    );
Line: 777

    DELETE FROM igs_fi_app_rules
    WHERE rowid = x_rowid;
Line: 784

  END delete_row;