DBA Data[Home] [Help]

APPS.IGS_HE_EXT_RUN_EXCP_PKG SQL Statements

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

Line: 24

    x_last_update_date                  IN     DATE        ,
    x_last_updated_by                   IN     NUMBER      ,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 26-FEB-2002
  ||  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_EXT_RUN_EXCP
      WHERE    rowid = x_rowid;
Line: 51

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 82

    new_references.last_updated_by                   := x_last_updated_by;
Line: 83

    new_references.last_update_login                 := x_last_update_login;
Line: 101

      SELECT   rowid
      FROM     igs_he_ext_run_excp
      WHERE    ext_exception_id = x_ext_exception_id
      FOR UPDATE NOWAIT;
Line: 139

    x_last_update_date                  IN     DATE        ,
    x_last_updated_by                   IN     NUMBER      ,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 26-FEB-2002
  ||  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_ext_exception_id,
      x_extract_run_id,
      x_person_id,
      x_person_number,
      x_course_cd,
      x_crv_version_number,
      x_unit_cd,
      x_uv_version_number,
      x_line_number,
      x_field_number,
      x_exception_reason,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 176

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_ext_exception_id                  IN OUT NOCOPY NUMBER,
    x_extract_run_id                    IN     NUMBER,
    x_person_id                         IN     NUMBER,
    x_person_number                     IN     VARCHAR2,
    x_course_cd                         IN     VARCHAR2,
    x_crv_version_number                IN     NUMBER,
    x_unit_cd                           IN     VARCHAR2,
    x_uv_version_number                 IN     NUMBER,
    x_line_number                       IN     NUMBER,
    x_field_number                      IN     NUMBER,
    x_exception_reason                  IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 26-FEB-2002
  ||  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_ext_run_excp
      WHERE    ext_exception_id                  = x_ext_exception_id;
Line: 230

    x_last_update_date           DATE;
Line: 231

    x_last_updated_by            NUMBER;
Line: 232

    x_last_update_login          NUMBER;
Line: 236

    x_last_update_date := SYSDATE;
Line: 238

      x_last_updated_by := 1;
Line: 239

      x_last_update_login := 0;
Line: 241

      x_last_updated_by := fnd_global.user_id;
Line: 242

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

      x_last_update_login := fnd_global.login_id;
Line: 246

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

    SELECT    igs_he_ext_run_excp_s.NEXTVAL
    INTO      x_ext_exception_id
    FROM      dual;
Line: 260

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_ext_exception_id                  => x_ext_exception_id,
      x_extract_run_id                    => x_extract_run_id,
      x_person_id                         => x_person_id,
      x_person_number                     => x_person_number,
      x_course_cd                         => x_course_cd,
      x_crv_version_number                => x_crv_version_number,
      x_unit_cd                           => x_unit_cd,
      x_uv_version_number                 => x_uv_version_number,
      x_line_number                       => x_line_number,
      x_field_number                      => x_field_number,
      x_exception_reason                  => x_exception_reason,
      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: 280

    INSERT INTO igs_he_ext_run_excp (
      ext_exception_id,
      extract_run_id,
      person_id,
      person_number,
      course_cd,
      crv_version_number,
      unit_cd,
      uv_version_number,
      line_number,
      field_number,
      exception_reason,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.ext_exception_id,
      new_references.extract_run_id,
      new_references.person_id,
      new_references.person_number,
      new_references.course_cd,
      new_references.crv_version_number,
      new_references.unit_cd,
      new_references.uv_version_number,
      new_references.line_number,
      new_references.field_number,
      new_references.exception_reason,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 324

  END insert_row;
Line: 351

      SELECT
        extract_run_id,
        person_id,
        person_number,
        course_cd,
        crv_version_number,
        unit_cd,
        uv_version_number,
        line_number,
        field_number,
        exception_reason
      FROM  igs_he_ext_run_excp
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 373

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_ext_exception_id                  IN     NUMBER,
    x_extract_run_id                    IN     NUMBER,
    x_person_id                         IN     NUMBER,
    x_person_number                     IN     VARCHAR2,
    x_course_cd                         IN     VARCHAR2,
    x_crv_version_number                IN     NUMBER,
    x_unit_cd                           IN     VARCHAR2,
    x_uv_version_number                 IN     NUMBER,
    x_line_number                       IN     NUMBER,
    x_field_number                      IN     NUMBER,
    x_exception_reason                  IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 26-FEB-2002
  ||  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: 430

    x_last_updated_by            NUMBER;
Line: 431

    x_last_update_login          NUMBER;
Line: 435

    x_last_update_date := SYSDATE;
Line: 437

      x_last_updated_by := 1;
Line: 438

      x_last_update_login := 0;
Line: 440

      x_last_updated_by := fnd_global.user_id;
Line: 441

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

      x_last_update_login := fnd_global.login_id;
Line: 445

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_ext_exception_id                  => x_ext_exception_id,
      x_extract_run_id                    => x_extract_run_id,
      x_person_id                         => x_person_id,
      x_person_number                     => x_person_number,
      x_course_cd                         => x_course_cd,
      x_crv_version_number                => x_crv_version_number,
      x_unit_cd                           => x_unit_cd,
      x_uv_version_number                 => x_uv_version_number,
      x_line_number                       => x_line_number,
      x_field_number                      => x_field_number,
      x_exception_reason                  => x_exception_reason,
      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: 475

    UPDATE igs_he_ext_run_excp
      SET
        extract_run_id                    = new_references.extract_run_id,
        person_id                         = new_references.person_id,
        person_number                     = new_references.person_number,
        course_cd                         = new_references.course_cd,
        crv_version_number                = new_references.crv_version_number,
        unit_cd                           = new_references.unit_cd,
        uv_version_number                 = new_references.uv_version_number,
        line_number                       = new_references.line_number,
        field_number                      = new_references.field_number,
        exception_reason                  = new_references.exception_reason,
        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: 496

  END update_row;
Line: 517

  ||  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_ext_run_excp
      WHERE    ext_exception_id                  = x_ext_exception_id;
Line: 535

      insert_row (
        x_rowid,
        x_ext_exception_id,
        x_extract_run_id,
        x_person_id,
        x_person_number,
        x_course_cd,
        x_crv_version_number,
        x_unit_cd,
        x_uv_version_number,
        x_line_number,
        x_field_number,
        x_exception_reason,
        x_mode
      );
Line: 554

    update_row (
      x_rowid,
      x_ext_exception_id,
      x_extract_run_id,
      x_person_id,
      x_person_number,
      x_course_cd,
      x_crv_version_number,
      x_unit_cd,
      x_uv_version_number,
      x_line_number,
      x_field_number,
      x_exception_reason,
      x_mode
    );
Line: 573

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 26-FEB-2002
  ||  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: 592

    DELETE FROM igs_he_ext_run_excp
    WHERE rowid = x_rowid;
Line: 599

  END delete_row;