DBA Data[Home] [Help]

APPS.IGF_AP_ST_INST_APPL_PKG SQL Statements

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

Line: 26

    x_last_update_date                  IN     DATE        DEFAULT NULL,
    x_last_updated_by                   IN     NUMBER      DEFAULT NULL,
    x_last_update_login                 IN     NUMBER      DEFAULT NULL,
    x_application_code                  IN     VARCHAR2    DEFAULT NULL
  ) AS
  /*
  ||  Created By : skoppula
  ||  Created On : 05-DEC-2000
  ||  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_AP_ST_INST_APPL_ALL
      WHERE    rowid = x_rowid;
Line: 54

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 79

    new_references.last_updated_by                   := x_last_updated_by;
Line: 80

    new_references.last_update_login                 := x_last_update_login;
Line: 129

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

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

      SELECT   rowid
      FROM     igf_ap_st_inst_appl_all
      WHERE    inst_app_id = x_inst_app_id
      FOR UPDATE NOWAIT;
Line: 198

      SELECT   rowid
      FROM     igf_ap_st_inst_appl_all
      WHERE    base_id = x_base_id
      AND      question_id = x_question_id
      AND      application_code = x_application_code
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 235

      SELECT   rowid
      FROM     igf_ap_st_inst_appl_all
      WHERE   ((question_id = x_question_id));
Line: 270

      SELECT   rowid
      FROM     igf_ap_st_inst_appl_all
      WHERE   ((base_id = x_base_id));
Line: 305

 	    SELECT   rowid
 	    FROM     igf_ap_st_inst_appl_all
 	    WHERE   ((base_id = x_base_id)
      AND     (application_code=x_application_code));
Line: 337

    x_last_update_date                  IN     DATE        DEFAULT NULL,
    x_last_updated_by                   IN     NUMBER      DEFAULT NULL,
    x_last_update_login                 IN     NUMBER      DEFAULT NULL,
    x_application_code                  IN     VARCHAR2    DEFAULT NULL
  ) AS
  /*
  ||  Created By : skoppula
  ||  Created On : 05-DEC-2000
  ||  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_inst_app_id,
      x_base_id,
      x_question_id,
      x_question_value,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      x_application_code
    );
Line: 369

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_inst_app_id                       IN OUT NOCOPY NUMBER,
    x_base_id                           IN     NUMBER,
    x_question_id                       IN     NUMBER,
    x_question_value                    IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 DEFAULT 'R',
    x_application_code                  IN     VARCHAR2 DEFAULT NULL
  ) AS
  /*
  ||  Created By : skoppula
  ||  Created On : 05-DEC-2000
  ||  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     igf_ap_st_inst_appl_all
      WHERE    inst_app_id                       = x_inst_app_id;
Line: 426

    x_last_update_date           DATE;
Line: 427

    x_last_updated_by            NUMBER;
Line: 428

    x_last_update_login          NUMBER;
Line: 434

    x_last_update_date := SYSDATE;
Line: 436

      x_last_updated_by := 1;
Line: 437

      x_last_update_login := 0;
Line: 439

      x_last_updated_by := fnd_global.user_id;
Line: 440

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

      x_last_update_login := fnd_global.login_id;
Line: 444

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

    SELECT igf_ap_st_inst_appl_s.nextval INTO x_inst_app_id FROM DUAL;
Line: 454

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_inst_app_id                       => x_inst_app_id,
      x_base_id                           => x_base_id,
      x_question_id                       => x_question_id,
      x_question_value                    => x_question_value,
      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,
      x_application_code                  => x_application_code
    );
Line: 468

    INSERT INTO igf_ap_st_inst_appl_all (
      inst_app_id,
      base_id,
      question_id,
      question_value,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      org_id,
      application_code
    ) VALUES (
      new_references.inst_app_id,
      new_references.base_id,
      new_references.question_id,
      new_references.question_value,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      l_org_id,
      new_references.application_code
    );
Line: 502

  END insert_row;
Line: 523

      SELECT
        base_id,
        question_id,
        question_value,
        org_id,
        application_code
      FROM  igf_ap_st_inst_appl_all
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 541

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_inst_app_id                       IN     NUMBER,
    x_base_id                           IN     NUMBER,
    x_question_id                       IN     NUMBER,
    x_question_value                    IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 DEFAULT 'R',
    x_application_code                  IN     VARCHAR2 DEFAULT NULL
  ) AS
  /*
  ||  Created By : skoppula
  ||  Created On : 05-DEC-2000
  ||  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: 586

    x_last_updated_by            NUMBER;
Line: 587

    x_last_update_login          NUMBER;
Line: 592

    x_last_update_date := SYSDATE;
Line: 594

      x_last_updated_by := 1;
Line: 595

      x_last_update_login := 0;
Line: 597

      x_last_updated_by := fnd_global.user_id;
Line: 598

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

      x_last_update_login := fnd_global.login_id;
Line: 602

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_inst_app_id                       => x_inst_app_id,
      x_base_id                           => x_base_id,
      x_question_id                       => x_question_id,
      x_question_value                    => x_question_value,
      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,
      x_application_code                  => x_application_code
    );
Line: 626

    UPDATE igf_ap_st_inst_appl_all
      SET
        base_id                           = new_references.base_id,
        question_id                       = new_references.question_id,
        question_value                    = new_references.question_value,
        last_update_date                  = x_last_update_date,
        last_updated_by                   = x_last_updated_by,
        last_update_login                 = x_last_update_login,
        application_code                  = new_references.application_code
      WHERE rowid = x_rowid;
Line: 641

  END update_row;
Line: 656

  ||  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_ap_st_inst_appl_all
      WHERE    inst_app_id                       = x_inst_app_id;
Line: 674

      insert_row (
        x_rowid,
        x_inst_app_id,
        x_base_id,
        x_question_id,
        x_question_value,
        x_mode,
        x_application_code
      );
Line: 687

    update_row (
      x_rowid,
      x_inst_app_id,
      x_base_id,
      x_question_id,
      x_question_value,
      x_mode,
      x_application_code
    );
Line: 700

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : skoppula
  ||  Created On : 05-DEC-2000
  ||  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: 719

    DELETE FROM igf_ap_st_inst_appl_all
    WHERE rowid = x_rowid;
Line: 726

  END delete_row;