DBA Data[Home] [Help]

APPS.IGS_FI_FAI_DTLS_PKG SQL Statements

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

Line: 26

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 27-JUN-2005
  ||  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_fi_fai_dtls
      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: 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: 124

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

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

      SELECT   rowid
      FROM     igs_fi_fai_dtls
      WHERE    fee_as_item_dtl_id = x_fee_as_item_dtl_id
      FOR UPDATE NOWAIT;
Line: 195

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 27-JUN-2005
  ||  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_fee_as_item_dtl_id,
      x_fee_ass_item_id,
      x_fee_cat,
      x_course_cd,
      x_crs_version_number,
      x_unit_attempt_status,
      x_org_unit_cd,
      x_class_standing,
      x_location_cd,
      x_uoo_id,
      x_unit_set_cd,
      x_us_version_number,
      x_chg_elements,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 234

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_fee_as_item_dtl_id                IN OUT NOCOPY NUMBER,
    x_fee_ass_item_id                   IN     NUMBER,
    x_fee_cat                           IN     VARCHAR2,
    x_course_cd                         IN     VARCHAR2,
    x_crs_version_number                IN     NUMBER,
    x_unit_attempt_status               IN     VARCHAR2,
    x_org_unit_cd                       IN     VARCHAR2,
    x_class_standing                    IN     VARCHAR2,
    x_location_cd                       IN     VARCHAR2,
    x_uoo_id                            IN     NUMBER,
    x_unit_set_cd                       IN     VARCHAR2,
    x_us_version_number                 IN     NUMBER,
    x_chg_elements                      IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 27-JUN-2005
  ||  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: 291

    x_last_updated_by            NUMBER;
Line: 292

    x_last_update_login          NUMBER;
Line: 296

    x_last_update_date := SYSDATE;
Line: 298

      x_last_updated_by := 1;
Line: 299

      x_last_update_login := 0;
Line: 301

      x_last_updated_by := fnd_global.user_id;
Line: 302

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

      x_last_update_login := fnd_global.login_id;
Line: 306

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

      fnd_message.set_token ('ROUTINE', 'IGS_FI_FAI_DTLS_PKG.INSERT_ROW');
Line: 319

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_fee_as_item_dtl_id                => x_fee_as_item_dtl_id,
      x_fee_ass_item_id                   => x_fee_ass_item_id,
      x_fee_cat                           => x_fee_cat,
      x_course_cd                         => x_course_cd,
      x_crs_version_number                => x_crs_version_number,
      x_unit_attempt_status               => x_unit_attempt_status,
      x_org_unit_cd                       => x_org_unit_cd,
      x_class_standing                    => x_class_standing,
      x_location_cd                       => x_location_cd,
      x_uoo_id                            => x_uoo_id,
      x_unit_set_cd                       => x_unit_set_cd,
      x_us_version_number                 => x_us_version_number,
      x_chg_elements                      => x_chg_elements,
      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: 341

    INSERT INTO igs_fi_fai_dtls (
      fee_as_item_dtl_id,
      fee_ass_item_id,
      fee_cat,
      course_cd,
      crs_version_number,
      unit_attempt_status,
      org_unit_cd,
      class_standing,
      location_cd,
      uoo_id,
      unit_set_cd,
      us_version_number,
      chg_elements,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      igs_fi_fai_dtls_s.NEXTVAL,
      new_references.fee_ass_item_id,
      new_references.fee_cat,
      new_references.course_cd,
      new_references.crs_version_number,
      new_references.unit_attempt_status,
      new_references.org_unit_cd,
      new_references.class_standing,
      new_references.location_cd,
      new_references.uoo_id,
      new_references.unit_set_cd,
      new_references.us_version_number,
      new_references.chg_elements,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    ) RETURNING ROWID, fee_as_item_dtl_id INTO x_rowid, x_fee_as_item_dtl_id;
Line: 381

  END insert_row;
Line: 410

      SELECT
        fee_ass_item_id,
        fee_cat,
        course_cd,
        crs_version_number,
        unit_attempt_status,
        org_unit_cd,
        class_standing,
        location_cd,
        uoo_id,
        unit_set_cd,
        us_version_number,
        chg_elements
      FROM  igs_fi_fai_dtls
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 434

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_fee_as_item_dtl_id                IN     NUMBER,
    x_fee_ass_item_id                   IN     NUMBER,
    x_fee_cat                           IN     VARCHAR2,
    x_course_cd                         IN     VARCHAR2,
    x_crs_version_number                IN     NUMBER,
    x_unit_attempt_status               IN     VARCHAR2,
    x_org_unit_cd                       IN     VARCHAR2,
    x_class_standing                    IN     VARCHAR2,
    x_location_cd                       IN     VARCHAR2,
    x_uoo_id                            IN     NUMBER,
    x_unit_set_cd                       IN     VARCHAR2,
    x_us_version_number                 IN     NUMBER,
    x_chg_elements                      IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 27-JUN-2005
  ||  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: 495

    x_last_updated_by            NUMBER;
Line: 496

    x_last_update_login          NUMBER;
Line: 500

    x_last_update_date := SYSDATE;
Line: 502

      x_last_updated_by := 1;
Line: 503

      x_last_update_login := 0;
Line: 505

      x_last_updated_by := fnd_global.user_id;
Line: 506

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

      x_last_update_login := fnd_global.login_id;
Line: 510

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

      fnd_message.set_token ('ROUTINE', 'IGS_FI_FAI_DTLS_PKG.UPDATE_ROW');
Line: 521

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_fee_as_item_dtl_id                => x_fee_as_item_dtl_id,
      x_fee_ass_item_id                   => x_fee_ass_item_id,
      x_fee_cat                           => x_fee_cat,
      x_course_cd                         => x_course_cd,
      x_crs_version_number                => x_crs_version_number,
      x_unit_attempt_status               => x_unit_attempt_status,
      x_org_unit_cd                       => x_org_unit_cd,
      x_class_standing                    => x_class_standing,
      x_location_cd                       => x_location_cd,
      x_uoo_id                            => x_uoo_id,
      x_unit_set_cd                       => x_unit_set_cd,
      x_us_version_number                 => x_us_version_number,
      x_chg_elements                      => x_chg_elements,
      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: 543

    UPDATE igs_fi_fai_dtls
      SET
        fee_ass_item_id                   = new_references.fee_ass_item_id,
        fee_cat                           = new_references.fee_cat,
        course_cd                         = new_references.course_cd,
        crs_version_number                = new_references.crs_version_number,
        unit_attempt_status               = new_references.unit_attempt_status,
        org_unit_cd                       = new_references.org_unit_cd,
        class_standing                    = new_references.class_standing,
        location_cd                       = new_references.location_cd,
        uoo_id                            = new_references.uoo_id,
        unit_set_cd                       = new_references.unit_set_cd,
        us_version_number                 = new_references.us_version_number,
        chg_elements                      = new_references.chg_elements,
        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: 566

  END update_row;
Line: 589

  ||  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_fi_fai_dtls
      WHERE    fee_as_item_dtl_id                = x_fee_as_item_dtl_id;
Line: 607

      insert_row (
        x_rowid,
        x_fee_as_item_dtl_id,
        x_fee_ass_item_id,
        x_fee_cat,
        x_course_cd,
        x_crs_version_number,
        x_unit_attempt_status,
        x_org_unit_cd,
        x_class_standing,
        x_location_cd,
        x_uoo_id,
        x_unit_set_cd,
        x_us_version_number,
        x_chg_elements,
        x_mode
      );
Line: 628

    update_row (
      x_rowid,
      x_fee_as_item_dtl_id,
      x_fee_ass_item_id,
      x_fee_cat,
      x_course_cd,
      x_crs_version_number,
      x_unit_attempt_status,
      x_org_unit_cd,
      x_class_standing,
      x_location_cd,
      x_uoo_id,
      x_unit_set_cd,
      x_us_version_number,
      x_chg_elements,
      x_mode
    );
Line: 649

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 27-JUN-2005
  ||  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: 668

    DELETE FROM igs_fi_fai_dtls
    WHERE rowid = x_rowid;
Line: 675

  END delete_row;