DBA Data[Home] [Help]

APPS.IGS_HE_EX_RN_DAT_LN_PKG SQL Statements

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

Line: 17

    x_manually_inserted                 IN     VARCHAR2     ,
    x_exclude_from_file                 IN     VARCHAR2     ,
    x_crv_version_number                IN     NUMBER       ,
    x_student_inst_number               IN     VARCHAR2     ,
    x_uv_version_number                 IN     NUMBER       ,
    x_unit_cd                           IN     VARCHAR2     ,
    x_recalculate_flag                  IN     VARCHAR2     ,
    x_creation_date                     IN     DATE         ,
    x_created_by                        IN     NUMBER       ,
    x_last_update_date                  IN     DATE         ,
    x_last_updated_by                   IN     NUMBER       ,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 15-JUN-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_HE_EX_RN_DAT_LN
      WHERE    rowid = x_rowid;
Line: 53

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

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

    new_references.manually_inserted                 := x_manually_inserted;
Line: 77

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

    new_references.last_update_date                  := x_last_update_date;
Line: 86

    new_references.last_updated_by                   := x_last_updated_by;
Line: 87

    new_references.last_update_login                 := x_last_update_login;
Line: 110

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

      SELECT   rowid
      FROM     igs_he_ex_rn_dat_ln
      WHERE    extract_run_id = x_extract_run_id
      AND      line_number = x_line_number
      FOR UPDATE NOWAIT;
Line: 188

      SELECT   rowid
      FROM     igs_he_ex_rn_dat_ln
      WHERE   ((extract_run_id = x_extract_run_id));
Line: 219

    x_manually_inserted                 IN     VARCHAR2     ,
    x_exclude_from_file                 IN     VARCHAR2     ,
    x_crv_version_number                IN     NUMBER       ,
    x_student_inst_number               IN     VARCHAR2     ,
    x_uv_version_number                 IN     NUMBER       ,
    x_unit_cd                           IN     VARCHAR2     ,
    x_recalculate_flag                  IN     VARCHAR2     ,
    x_creation_date                     IN     DATE         ,
    x_created_by                        IN     NUMBER       ,
    x_last_update_date                  IN     DATE         ,
    x_last_updated_by                   IN     NUMBER       ,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 15-JUN-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_rn_dat_ln_id,
      x_extract_run_id,
      x_record_id,
      x_line_number,
      x_person_id,
      x_course_cd,
      x_manually_inserted,
      x_exclude_from_file,
      x_crv_version_number,
      x_student_inst_number,
      x_uv_version_number,
      x_unit_cd,
      x_recalculate_flag,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 267

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

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_rn_dat_ln_id                      IN OUT NOCOPY NUMBER,
    x_extract_run_id                    IN     NUMBER,
    x_record_id                         IN     VARCHAR2,
    x_line_number                       IN     NUMBER,
    x_person_id                         IN     NUMBER,
    x_course_cd                         IN     VARCHAR2,
    x_manually_inserted                 IN     VARCHAR2,
    x_exclude_from_file                 IN     VARCHAR2,
    x_crv_version_number                IN     NUMBER,
    x_student_inst_number               IN     VARCHAR2,
    x_uv_version_number                 IN     NUMBER,
    x_unit_cd                           IN     VARCHAR2,
    x_recalculate_flag                  IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 15-JUN-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_he_ex_rn_dat_ln
      WHERE    extract_run_id                    = x_extract_run_id
      AND      line_number                       = x_line_number;
Line: 335

    x_last_update_date           DATE;
Line: 336

    x_last_updated_by            NUMBER;
Line: 337

    x_last_update_login          NUMBER;
Line: 341

    x_last_update_date := SYSDATE;
Line: 343

      x_last_updated_by := 1;
Line: 344

      x_last_update_login := 0;
Line: 346

      x_last_updated_by := fnd_global.user_id;
Line: 347

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

      x_last_update_login := fnd_global.login_id;
Line: 351

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

    Select igs_he_ex_rn_dat_ln_s.nextval INTO x_rn_dat_ln_id from dual ;
Line: 365

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_rn_dat_ln_id                      => x_rn_dat_ln_id,
      x_extract_run_id                    => x_extract_run_id,
      x_record_id                         => x_record_id,
      x_line_number                       => x_line_number,
      x_person_id                         => x_person_id,
      x_course_cd                         => x_course_cd,
      x_manually_inserted                 => x_manually_inserted,
      x_exclude_from_file                 => x_exclude_from_file,
      x_crv_version_number                => x_crv_version_number,
      x_student_inst_number               => x_student_inst_number,
      x_uv_version_number                 => x_uv_version_number,
      x_unit_cd                           => x_unit_cd,
      x_recalculate_flag                  => NVL (x_recalculate_flag,'N' ),
      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: 387

    INSERT INTO igs_he_ex_rn_dat_ln (
      rn_dat_ln_id,
      extract_run_id,
      record_id,
      line_number,
      person_id,
      course_cd,
      manually_inserted,
      exclude_from_file,
      crv_version_number,
      student_inst_number,
      uv_version_number,
      unit_cd,
      recalculate_flag,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.rn_dat_ln_id,
      new_references.extract_run_id,
      new_references.record_id,
      new_references.line_number,
      new_references.person_id,
      new_references.course_cd,
      new_references.manually_inserted,
      new_references.exclude_from_file,
      new_references.crv_version_number,
      new_references.student_inst_number,
      new_references.uv_version_number,
      new_references.unit_cd,
      new_references.recalculate_flag,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 435

  END insert_row;
Line: 446

    x_manually_inserted                 IN     VARCHAR2,
    x_exclude_from_file                 IN     VARCHAR2,
    x_crv_version_number                IN     NUMBER,
    x_student_inst_number               IN     VARCHAR2,
    x_uv_version_number                 IN     NUMBER,
    x_unit_cd                           IN     VARCHAR2,
    x_recalculate_flag                  IN     VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 15-JUN-2001
  ||  Purpose : Handles the LOCK mechanism for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
    CURSOR c1 IS
      SELECT
        rn_dat_ln_id,
        record_id,
        person_id,
        course_cd,
        manually_inserted,
        exclude_from_file,
        crv_version_number,
        student_inst_number,
        uv_version_number,
        unit_cd,
        recalculate_flag
      FROM  igs_he_ex_rn_dat_ln
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 487

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

        AND (tlinfo.manually_inserted = x_manually_inserted)
        AND (tlinfo.exclude_from_file = x_exclude_from_file)
        AND ((tlinfo.crv_version_number = x_crv_version_number) OR ((tlinfo.crv_version_number IS NULL) AND (X_crv_version_number IS NULL)))
        AND ((tlinfo.student_inst_number = x_student_inst_number) OR ((tlinfo.student_inst_number IS NULL) AND (X_student_inst_number IS NULL)))
        AND ((tlinfo.uv_version_number = x_uv_version_number) OR ((tlinfo.uv_version_number IS NULL) AND (X_uv_version_number IS NULL)))
        AND ((tlinfo.unit_cd = x_unit_cd) OR ((tlinfo.unit_cd IS NULL) AND (X_unit_cd IS NULL)))
        AND (tlinfo.recalculate_flag = x_recalculate_flag)
       ) THEN
      NULL;
Line: 520

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_rn_dat_ln_id                      IN     NUMBER,
    x_extract_run_id                    IN     NUMBER,
    x_record_id                         IN     VARCHAR2,
    x_line_number                       IN     NUMBER,
    x_person_id                         IN     NUMBER,
    x_course_cd                         IN     VARCHAR2,
    x_manually_inserted                 IN     VARCHAR2,
    x_exclude_from_file                 IN     VARCHAR2,
    x_crv_version_number                IN     NUMBER,
    x_student_inst_number               IN     VARCHAR2,
    x_uv_version_number                 IN     NUMBER,
    x_unit_cd                           IN     VARCHAR2,
    x_recalculate_flag                  IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 15-JUN-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: 547

    x_last_updated_by            NUMBER;
Line: 548

    x_last_update_login          NUMBER;
Line: 552

    x_last_update_date := SYSDATE;
Line: 554

      x_last_updated_by := 1;
Line: 555

      x_last_update_login := 0;
Line: 557

      x_last_updated_by := fnd_global.user_id;
Line: 558

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

      x_last_update_login := fnd_global.login_id;
Line: 562

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_rn_dat_ln_id                      => x_rn_dat_ln_id,
      x_extract_run_id                    => x_extract_run_id,
      x_record_id                         => x_record_id,
      x_line_number                       => x_line_number,
      x_person_id                         => x_person_id,
      x_course_cd                         => x_course_cd,
      x_manually_inserted                 => x_manually_inserted,
      x_exclude_from_file                 => x_exclude_from_file,
      x_crv_version_number                => x_crv_version_number,
      x_student_inst_number               => x_student_inst_number,
      x_uv_version_number                 => x_uv_version_number,
      x_unit_cd                           => x_unit_cd,
      x_recalculate_flag                  => NVL (x_recalculate_flag,'N' ),
      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 igs_he_ex_rn_dat_ln
      SET
        rn_dat_ln_id                      = new_references.rn_dat_ln_id,
        record_id                         = new_references.record_id,
        person_id                         = new_references.person_id,
        course_cd                         = new_references.course_cd,
        manually_inserted                 = new_references.manually_inserted,
        exclude_from_file                 = new_references.exclude_from_file,
        crv_version_number                = new_references.crv_version_number,
        student_inst_number               = new_references.student_inst_number,
        uv_version_number                 = new_references.uv_version_number,
        unit_cd                           = new_references.unit_cd,
        recalculate_flag                  = new_references.recalculate_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: 616

  END update_row;
Line: 627

    x_manually_inserted                 IN     VARCHAR2,
    x_exclude_from_file                 IN     VARCHAR2,
    x_crv_version_number                IN     NUMBER,
    x_student_inst_number               IN     VARCHAR2,
    x_uv_version_number                 IN     NUMBER,
    x_unit_cd                           IN     VARCHAR2,
    x_recalculate_flag                  IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 15-JUN-2001
  ||  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_he_ex_rn_dat_ln
      WHERE    extract_run_id                    = x_extract_run_id
      AND      line_number                       = x_line_number;
Line: 658

      insert_row (
        x_rowid,
        x_rn_dat_ln_id,
        x_extract_run_id,
        x_record_id,
        x_line_number,
        x_person_id,
        x_course_cd,
        x_manually_inserted,
        x_exclude_from_file,
        x_crv_version_number,
        x_student_inst_number,
        x_uv_version_number,
        x_unit_cd,
        x_recalculate_flag,
        x_mode
      );
Line: 679

    update_row (
      x_rowid,
      x_rn_dat_ln_id,
      x_extract_run_id,
      x_record_id,
      x_line_number,
      x_person_id,
      x_course_cd,
      x_manually_inserted,
      x_exclude_from_file,
      x_crv_version_number,
      x_student_inst_number,
      x_uv_version_number,
      x_unit_cd,
      x_recalculate_flag,
      x_mode
    );
Line: 700

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 15-JUN-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: 719

    DELETE FROM igs_he_ex_rn_dat_ln
    WHERE rowid = x_rowid;
Line: 726

  END delete_row;