DBA Data[Home] [Help]

APPS.IGF_AW_DP_TERMS_PKG SQL Statements

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

Line: 18

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : veramach
  ||  Created On : 31-OCT-2003
  ||  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     igf_aw_dp_terms
      WHERE    rowid = x_rowid;
Line: 45

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 70

    new_references.last_updated_by                   := x_last_updated_by;
Line: 71

    new_references.last_update_login                 := x_last_update_login;
Line: 94

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

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

      SELECT   rowid
      FROM     igf_aw_dp_terms
      WHERE    adterms_id = x_adterms_id
      FOR UPDATE NOWAIT;
Line: 215

      SELECT   rowid
      FROM     igf_aw_dp_terms
      WHERE    adplans_id          = x_adplans_id
      AND      ld_cal_type         = x_ld_cal_type
      AND      ld_sequence_number  = x_ld_sequence_number
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 251

      SELECT   rowid
      FROM     igf_aw_dp_terms
      WHERE   ((adplans_id = x_adplans_id));
Line: 286

      SELECT   rowid
      FROM     igf_aw_dp_terms
      WHERE   ((ld_cal_type = x_cal_type) AND
               (ld_sequence_number = x_sequence_number));
Line: 318

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : veramach
  ||  Created On : 31-OCT-2003
  ||  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)
  */
  BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_adterms_id,
      x_adplans_id,
      x_ld_cal_type,
      x_ld_sequence_number,
      x_ld_perct_num,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 349

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

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

    ELSIF (p_action = 'DELETE') THEN
      -- Call all the procedures related to Before Delete.
      check_child_existance;
Line: 368

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

    ELSIF (p_action = 'VALIDATE_DELETE') THEN
      check_child_existance;
Line: 386

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_adterms_id                        IN OUT NOCOPY NUMBER,
    x_adplans_id                        IN     NUMBER,
    x_ld_cal_type                       IN     VARCHAR2,
    x_ld_sequence_number                IN     NUMBER,
    x_ld_perct_num                      IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : veramach
  ||  Created On : 31-OCT-2003
  ||  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)
  */

    x_last_update_date           DATE;
Line: 406

    x_last_updated_by            NUMBER;
Line: 407

    x_last_update_login          NUMBER;
Line: 411

    x_last_update_date := SYSDATE;
Line: 413

      x_last_updated_by := 1;
Line: 414

      x_last_update_login := 0;
Line: 416

      x_last_updated_by := fnd_global.user_id;
Line: 417

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

      x_last_update_login := fnd_global.login_id;
Line: 421

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

      fnd_message.set_token ('ROUTINE', 'IGF_AW_DP_TERMS_PKG.INSERT_ROW');
Line: 434

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_adterms_id                        => x_adterms_id,
      x_adplans_id                        => x_adplans_id,
      x_ld_cal_type                       => x_ld_cal_type,
      x_ld_sequence_number                => x_ld_sequence_number,
      x_ld_perct_num                      => x_ld_perct_num,
      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: 448

    INSERT INTO igf_aw_dp_terms (
      adterms_id,
      adplans_id,
      ld_cal_type,
      ld_sequence_number,
      ld_perct_num,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      igf_aw_dp_terms_s.NEXTVAL,
      new_references.adplans_id,
      new_references.ld_cal_type,
      new_references.ld_sequence_number,
      new_references.ld_perct_num,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    ) RETURNING ROWID, adterms_id INTO x_rowid, x_adterms_id;
Line: 472

  END insert_row;
Line: 493

      SELECT
        adplans_id,
        ld_cal_type,
        ld_sequence_number,
        ld_perct_num
      FROM  igf_aw_dp_terms
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 509

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_adterms_id                        IN     NUMBER,
    x_adplans_id                        IN     NUMBER,
    x_ld_cal_type                       IN     VARCHAR2,
    x_ld_sequence_number                IN     NUMBER,
    x_ld_perct_num                      IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : veramach
  ||  Created On : 31-OCT-2003
  ||  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: 554

    x_last_updated_by            NUMBER;
Line: 555

    x_last_update_login          NUMBER;
Line: 559

    x_last_update_date := SYSDATE;
Line: 561

      x_last_updated_by := 1;
Line: 562

      x_last_update_login := 0;
Line: 564

      x_last_updated_by := fnd_global.user_id;
Line: 565

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

      x_last_update_login := fnd_global.login_id;
Line: 569

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

      fnd_message.set_token ('ROUTINE', 'IGF_AW_DP_TERMS_PKG.UPDATE_ROW');
Line: 580

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_adterms_id                        => x_adterms_id,
      x_adplans_id                        => x_adplans_id,
      x_ld_cal_type                       => x_ld_cal_type,
      x_ld_sequence_number                => x_ld_sequence_number,
      x_ld_perct_num                      => x_ld_perct_num,
      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: 594

    UPDATE igf_aw_dp_terms
      SET
        adplans_id                        = new_references.adplans_id,
        ld_cal_type                       = new_references.ld_cal_type,
        ld_sequence_number                = new_references.ld_sequence_number,
        ld_perct_num                      = new_references.ld_perct_num,
        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: 609

  END update_row;
Line: 624

  ||  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     igf_aw_dp_terms
      WHERE    adterms_id                        = x_adterms_id;
Line: 642

      insert_row (
        x_rowid,
        x_adterms_id,
        x_adplans_id,
        x_ld_cal_type,
        x_ld_sequence_number,
        x_ld_perct_num,
        x_mode
      );
Line: 655

    update_row (
      x_rowid,
      x_adterms_id,
      x_adplans_id,
      x_ld_cal_type,
      x_ld_sequence_number,
      x_ld_perct_num,
      x_mode
    );
Line: 668

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : veramach
  ||  Created On : 31-OCT-2003
  ||  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: 687

    DELETE FROM igf_aw_dp_terms
    WHERE rowid = x_rowid;
Line: 694

  END delete_row;