DBA Data[Home] [Help]

APPS.IGF_AP_INST_VER_ITEM_PKG SQL Statements

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

Line: 21

    x_last_update_date                  IN     DATE     ,
    x_last_updated_by                   IN     NUMBER   ,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : brajendr
  ||  Created On : 01-FEB-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     IGF_AP_INST_VER_ITEM_ALL
      WHERE    rowid = x_rowid;
Line: 48

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 76

    new_references.last_updated_by                   := x_last_updated_by;
Line: 77

    new_references.last_update_login                 := x_last_update_login;
Line: 100

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

      SELECT   rowid
      FROM     igf_ap_inst_ver_item_all
      WHERE    isir_map_col = x_isir_map_col
      AND      base_id = x_base_id
      FOR UPDATE NOWAIT;
Line: 158

      SELECT   rowid
      FROM     igf_ap_inst_ver_item_all
      WHERE   ((base_id = x_base_id));
Line: 192

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : brajendr
  ||  Created On : 01-FEB-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)
  */
  BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_base_id,
      x_udf_vern_item_seq_num,
      x_item_value,
      x_waive_flag,
      x_isir_map_col,
      x_incl_in_tolerance,
      x_legacy_record_flag,
      x_use_blank_flag,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 226

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_base_id                           IN     NUMBER,
    x_udf_vern_item_seq_num             IN     NUMBER,
    x_item_value                        IN     VARCHAR2,
    x_waive_flag                        IN     VARCHAR2,
    x_isir_map_col                      IN     VARCHAR2,
    x_incl_in_tolerance                 IN     VARCHAR2,
    x_legacy_record_flag                IN     VARCHAR2,
    x_use_blank_flag                    IN     VARCHAR2 ,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : brajendr
  ||  Created On : 01-FEB-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     igf_ap_inst_ver_item_all
      WHERE    isir_map_col = x_isir_map_col
      AND      base_id = x_base_id;
Line: 284

    x_last_update_date           DATE;
Line: 285

    x_last_updated_by            NUMBER;
Line: 286

    x_last_update_login          NUMBER;
Line: 292

    x_last_update_date := SYSDATE;
Line: 294

      x_last_updated_by := 1;
Line: 295

      x_last_update_login := 0;
Line: 297

      x_last_updated_by := fnd_global.user_id;
Line: 298

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

      x_last_update_login := fnd_global.login_id;
Line: 302

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

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_base_id                           => x_base_id,
      x_udf_vern_item_seq_num             => x_udf_vern_item_seq_num,
      x_item_value                        => x_item_value,
      x_waive_flag                        => x_waive_flag,
      x_incl_in_tolerance                 => x_incl_in_tolerance,
      x_isir_map_col                      => x_isir_map_col,
      x_legacy_record_flag                => x_legacy_record_flag,
      x_use_blank_flag                    => x_use_blank_flag,
      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: 329

    INSERT INTO igf_ap_inst_ver_item_all (
      base_id,
      udf_vern_item_seq_num,
      item_value,
      waive_flag,
      isir_map_col,
      incl_in_tolerance,
      legacy_record_flag,
      use_blank_flag,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      org_id
    ) VALUES (
      new_references.base_id,
      new_references.udf_vern_item_seq_num,
      new_references.item_value,
      new_references.waive_flag,
      new_references.isir_map_col,
      new_references.incl_in_tolerance,
      new_references.legacy_record_flag,
      new_references.use_blank_flag,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      l_org_id
    );
Line: 369

  END insert_row;
Line: 394

      SELECT
        item_value,
        waive_flag,
        isir_map_col,
        incl_in_tolerance,
        legacy_record_flag,
        use_blank_flag,
        org_id
      FROM  igf_ap_inst_ver_item_all
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 414

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_base_id                           IN     NUMBER,
    x_udf_vern_item_seq_num             IN     NUMBER,
    x_item_value                        IN     VARCHAR2,
    x_waive_flag                        IN     VARCHAR2,
    x_isir_map_col                      IN     VARCHAR2,
    x_incl_in_tolerance                 IN     VARCHAR2,
    x_legacy_record_flag                IN     VARCHAR2,
    x_use_blank_flag                    IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : brajendr
  ||  Created On : 01-FEB-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: 464

    x_last_updated_by            NUMBER;
Line: 465

    x_last_update_login          NUMBER;
Line: 470

    x_last_update_date := SYSDATE;
Line: 472

      x_last_updated_by := 1;
Line: 473

      x_last_update_login := 0;
Line: 475

      x_last_updated_by := fnd_global.user_id;
Line: 476

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

      x_last_update_login := fnd_global.login_id;
Line: 480

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_base_id                           => x_base_id,
      x_udf_vern_item_seq_num             => x_udf_vern_item_seq_num,
      x_item_value                        => x_item_value,
      x_waive_flag                        => x_waive_flag,
      x_isir_map_col                      => x_isir_map_col,
      x_incl_in_tolerance                 => x_incl_in_tolerance,
      x_legacy_record_flag                => x_legacy_record_flag,
      x_use_blank_flag                    => x_use_blank_flag,
      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: 507

    UPDATE igf_ap_inst_ver_item_all
      SET
        item_value                        = new_references.item_value,
        waive_flag                        = new_references.waive_flag,
        isir_map_col                      = new_references.isir_map_col,
        incl_in_tolerance                 = new_references.incl_in_tolerance,
        legacy_record_flag                = new_references.legacy_record_flag,
        use_blank_flag                    = new_references.use_blank_flag,
        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: 524

  END update_row;
Line: 542

  ||  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_inst_ver_item_all
      WHERE    isir_map_col = x_isir_map_col
      AND      base_id = x_base_id;
Line: 561

      insert_row (
        x_rowid,
        x_base_id,
        x_udf_vern_item_seq_num,
        x_item_value,
        x_waive_flag,
        x_isir_map_col,
        x_incl_in_tolerance,
        x_legacy_record_flag,
        x_use_blank_flag,
        x_mode
      );
Line: 577

    update_row (
      x_rowid,
      x_base_id,
      x_udf_vern_item_seq_num,
      x_item_value,
      x_waive_flag,
      x_isir_map_col,
      x_incl_in_tolerance,
      x_legacy_record_flag,
      x_use_blank_flag,
      x_mode
    );
Line: 593

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : brajendr
  ||  Created On : 01-FEB-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,
      x_base_id                           => NULL,
      x_udf_vern_item_seq_num             => NULL,
      x_item_value                        => NULL,
      x_waive_flag                        => NULL,
      x_isir_map_col                      => NULL,
      x_incl_in_tolerance                 => NULL,
      x_legacy_record_flag                => NULL,
      x_use_blank_flag                    => NULL,
      x_creation_date                     => NULL,
      x_created_by                        => NULL,
      x_last_update_date                  => NULL,
      x_last_updated_by                   => NULL,
      x_last_update_login                 => NULL
    );
Line: 625

    DELETE FROM igf_ap_inst_ver_item_all
    WHERE rowid = x_rowid;
Line: 632

  END delete_row;