DBA Data[Home] [Help]

APPS.IGF_AW_FISAP_REP_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 : Uday Kiran Reddy
  ||  Created On : 13-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     igf_aw_fisap_rep
      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: 131

      SELECT   rowid
      FROM     igf_aw_fisap_rep
      WHERE    fisap_dtls_id = x_fisap_dtls_id
      FOR UPDATE NOWAIT;
Line: 166

      SELECT   rowid
      FROM     igf_aw_fisap_rep
      WHERE   ((batch_id = x_batch_id));
Line: 206

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : Uday Kiran Reddy
  ||  Created On : 13-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_fisap_dtls_id,
      x_batch_id,
      x_isir_id,
      x_dependency_status,
      x_career_level,
      x_auto_zero_efc_flag,
      x_fisap_income_amt,
      x_enrollment_status,
      x_perkins_disb_amt,
      x_fws_disb_amt,
      x_fseog_disb_amt,
      x_part_ii_section_f_flag,
      x_part_vi_section_a_flag,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 245

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_fisap_dtls_id                     IN OUT NOCOPY NUMBER,
    x_batch_id                          IN     NUMBER,
    x_isir_id                           IN     NUMBER,
    x_dependency_status                 IN     VARCHAR2,
    x_career_level                      IN     VARCHAR2,
    x_auto_zero_efc_flag                IN     VARCHAR2,
    x_fisap_income_amt                  IN     NUMBER,
    x_enrollment_status                 IN     VARCHAR2,
    x_perkins_disb_amt                  IN     NUMBER,
    x_fws_disb_amt                      IN     NUMBER,
    x_fseog_disb_amt                    IN     NUMBER,
    x_part_ii_section_f_flag            IN     VARCHAR2,
    x_part_vi_section_a_flag            IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : Uday Kiran Reddy
  ||  Created On : 13-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: 302

    x_last_updated_by            NUMBER;
Line: 303

    x_last_update_login          NUMBER;
Line: 307

    x_program_update_date        DATE;
Line: 311

    x_last_update_date := SYSDATE;
Line: 313

      x_last_updated_by := 1;
Line: 314

      x_last_update_login := 0;
Line: 316

      x_last_updated_by := fnd_global.user_id;
Line: 317

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

      x_last_update_login := fnd_global.login_id;
Line: 321

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

        x_program_update_date    := NULL;
Line: 334

        x_program_update_date    := SYSDATE;
Line: 338

      fnd_message.set_token ('ROUTINE', 'IGF_AW_FISAP_REP_PKG.INSERT_ROW');
Line: 346

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_fisap_dtls_id                     => x_fisap_dtls_id,
      x_batch_id                          => x_batch_id,
      x_isir_id                           => x_isir_id,
      x_dependency_status                 => x_dependency_status,
      x_career_level                      => x_career_level,
      x_auto_zero_efc_flag                => x_auto_zero_efc_flag,
      x_fisap_income_amt                  => x_fisap_income_amt,
      x_enrollment_status                 => x_enrollment_status,
      x_perkins_disb_amt                  => x_perkins_disb_amt,
      x_fws_disb_amt                      => x_fws_disb_amt,
      x_fseog_disb_amt                    => x_fseog_disb_amt,
      x_part_ii_section_f_flag            => x_part_ii_section_f_flag,
      x_part_vi_section_a_flag            => x_part_vi_section_a_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: 368

    INSERT INTO igf_aw_fisap_rep (
      fisap_dtls_id,
      batch_id,
      isir_id,
      dependency_status,
      career_level,
      auto_zero_efc_flag,
      fisap_income_amt,
      enrollment_status,
      perkins_disb_amt,
      fws_disb_amt,
      fseog_disb_amt,
      part_ii_section_f_flag,
      part_vi_section_a_flag,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      request_id,
      program_id,
      program_application_id,
      program_update_date
    ) VALUES (
      igf_aw_fisap_rep_s.NEXTVAL,
      new_references.batch_id,
      new_references.isir_id,
      new_references.dependency_status,
      new_references.career_level,
      new_references.auto_zero_efc_flag,
      new_references.fisap_income_amt,
      new_references.enrollment_status,
      new_references.perkins_disb_amt,
      new_references.fws_disb_amt,
      new_references.fseog_disb_amt,
      new_references.part_ii_section_f_flag,
      new_references.part_vi_section_a_flag,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login ,
      x_request_id,
      x_program_id,
      x_program_application_id,
      x_program_update_date
    ) RETURNING ROWID, fisap_dtls_id INTO x_rowid, x_fisap_dtls_id;
Line: 416

  END insert_row;
Line: 445

      SELECT
        batch_id,
        isir_id,
        dependency_status,
        career_level,
        auto_zero_efc_flag,
        fisap_income_amt,
        enrollment_status,
        perkins_disb_amt,
        fws_disb_amt,
        fseog_disb_amt,
        part_ii_section_f_flag,
        part_vi_section_a_flag
      FROM  igf_aw_fisap_rep
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 469

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_fisap_dtls_id                     IN     NUMBER,
    x_batch_id                          IN     NUMBER,
    x_isir_id                           IN     NUMBER,
    x_dependency_status                 IN     VARCHAR2,
    x_career_level                      IN     VARCHAR2,
    x_auto_zero_efc_flag                IN     VARCHAR2,
    x_fisap_income_amt                  IN     NUMBER,
    x_enrollment_status                 IN     VARCHAR2,
    x_perkins_disb_amt                  IN     NUMBER,
    x_fws_disb_amt                      IN     NUMBER,
    x_fseog_disb_amt                    IN     NUMBER,
    x_part_ii_section_f_flag            IN     VARCHAR2,
    x_part_vi_section_a_flag            IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : Uday Kiran Reddy
  ||  Created On : 13-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: 530

    x_last_updated_by            NUMBER;
Line: 531

    x_last_update_login          NUMBER;
Line: 535

    x_program_update_date        DATE;
Line: 539

    x_last_update_date := SYSDATE;
Line: 541

      x_last_updated_by := 1;
Line: 542

      x_last_update_login := 0;
Line: 544

      x_last_updated_by := fnd_global.user_id;
Line: 545

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

      x_last_update_login := fnd_global.login_id;
Line: 549

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

      fnd_message.set_token ('ROUTINE', 'IGF_AW_FISAP_REP_PKG.UPDATE_ROW');
Line: 560

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_fisap_dtls_id                     => x_fisap_dtls_id,
      x_batch_id                          => x_batch_id,
      x_isir_id                           => x_isir_id,
      x_dependency_status                 => x_dependency_status,
      x_career_level                      => x_career_level,
      x_auto_zero_efc_flag                => x_auto_zero_efc_flag,
      x_fisap_income_amt                  => x_fisap_income_amt,
      x_enrollment_status                 => x_enrollment_status,
      x_perkins_disb_amt                  => x_perkins_disb_amt,
      x_fws_disb_amt                      => x_fws_disb_amt,
      x_fseog_disb_amt                    => x_fseog_disb_amt,
      x_part_ii_section_f_flag            => x_part_ii_section_f_flag,
      x_part_vi_section_a_flag            => x_part_vi_section_a_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: 590

        x_program_update_date := old_references.program_update_date;
Line: 592

        x_program_update_date := SYSDATE;
Line: 596

    UPDATE igf_aw_fisap_rep
      SET
        batch_id                          = new_references.batch_id,
        isir_id                           = new_references.isir_id,
        dependency_status                 = new_references.dependency_status,
        career_level                      = new_references.career_level,
        auto_zero_efc_flag                = new_references.auto_zero_efc_flag,
        fisap_income_amt                  = new_references.fisap_income_amt,
        enrollment_status                 = new_references.enrollment_status,
        perkins_disb_amt                  = new_references.perkins_disb_amt,
        fws_disb_amt                      = new_references.fws_disb_amt,
        fseog_disb_amt                    = new_references.fseog_disb_amt,
        part_ii_section_f_flag            = new_references.part_ii_section_f_flag,
        part_vi_section_a_flag            = new_references.part_vi_section_a_flag,
        last_update_date                  = x_last_update_date,
        last_updated_by                   = x_last_updated_by,
        last_update_login                 = x_last_update_login ,
        request_id                        = x_request_id,
        program_id                        = x_program_id,
        program_application_id            = x_program_application_id,
        program_update_date               = x_program_update_date
      WHERE rowid = x_rowid;
Line: 623

  END update_row;
Line: 646

  ||  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_aw_fisap_rep
      WHERE    fisap_dtls_id                     = x_fisap_dtls_id;
Line: 664

      insert_row (
        x_rowid,
        x_fisap_dtls_id,
        x_batch_id,
        x_isir_id,
        x_dependency_status,
        x_career_level,
        x_auto_zero_efc_flag,
        x_fisap_income_amt,
        x_enrollment_status,
        x_perkins_disb_amt,
        x_fws_disb_amt,
        x_fseog_disb_amt,
        x_part_ii_section_f_flag,
        x_part_vi_section_a_flag,
        x_mode
      );
Line: 685

    update_row (
      x_rowid,
      x_fisap_dtls_id,
      x_batch_id,
      x_isir_id,
      x_dependency_status,
      x_career_level,
      x_auto_zero_efc_flag,
      x_fisap_income_amt,
      x_enrollment_status,
      x_perkins_disb_amt,
      x_fws_disb_amt,
      x_fseog_disb_amt,
      x_part_ii_section_f_flag,
      x_part_vi_section_a_flag,
      x_mode
    );
Line: 706

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : Uday Kiran Reddy
  ||  Created On : 13-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: 725

    DELETE FROM igf_aw_fisap_rep
    WHERE rowid = x_rowid;
Line: 732

  END delete_row;