DBA Data[Home] [Help]

APPS.IGF_GR_MRR_PKG SQL Statements

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

Line: 48

    x_last_update_date                  IN     DATE    ,
    x_last_updated_by                   IN     NUMBER  ,
    x_last_update_login                 IN     NUMBER  ,
    x_current_ssn                       IN     VARCHAR2
  ) AS
  /*
  ||  Created By : avenkatr
  ||  Created On : 14-DEC-2000
  ||  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_gr_mrr_all
      WHERE    rowid = x_rowid;
Line: 76

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 131

    new_references.last_updated_by                   := x_last_updated_by;
Line: 132

    new_references.last_update_login                 := x_last_update_login;
Line: 151

      SELECT   rowid
      FROM     igf_gr_mrr_all
      WHERE    mrr_id = x_mrr_id
      FOR UPDATE NOWAIT;
Line: 213

    x_last_update_date                  IN     DATE    ,
    x_last_updated_by                   IN     NUMBER  ,
    x_last_update_login                 IN     NUMBER  ,
    x_current_ssn                       IN     VARCHAR2
  ) AS
  /*
  ||  Created By : avenkatr
  ||  Created On : 14-DEC-2000
  ||  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_mrr_id,
      x_record_type,
      x_req_inst_pell_id,
      x_mrr_code1,
      x_mrr_code2,
      x_mr_stud_id,
      x_mr_inst_pell_id,
      x_stud_orig_ssn,
      x_orig_name_cd,
      x_inst_pell_id,
      x_inst_name,
      x_inst_addr1,
      x_inst_addr2,
      x_inst_city,
      x_inst_state,
      x_zip_code,
      x_faa_name,
      x_faa_tel,
      x_faa_fax,
      x_faa_internet_addr,
      x_schd_pell_grant,
      x_orig_awd_amt,
      x_tran_num,
      x_efc,
      x_enrl_dt,
      x_orig_creation_dt,
      x_disb_accepted_amt,
      x_last_active_dt,
      x_next_est_disb_dt,
      x_eligibility_used,
      x_ed_use_flags,
      x_stud_last_name,
      x_stud_first_name,
      x_stud_middle_name,
      x_stud_dob,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      x_current_ssn
    );
Line: 276

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_mrr_id                            IN OUT NOCOPY NUMBER,
    x_record_type                       IN     VARCHAR2,
    x_req_inst_pell_id                  IN     VARCHAR2,
    x_mrr_code1                         IN     VARCHAR2,
    x_mrr_code2                         IN     VARCHAR2,
    x_mr_stud_id                        IN     VARCHAR2,
    x_mr_inst_pell_id                   IN     VARCHAR2,
    x_stud_orig_ssn                     IN     VARCHAR2,
    x_orig_name_cd                      IN     VARCHAR2,
    x_inst_pell_id                      IN     VARCHAR2,
    x_inst_name                         IN     VARCHAR2,
    x_inst_addr1                        IN     VARCHAR2,
    x_inst_addr2                        IN     VARCHAR2,
    x_inst_city                         IN     VARCHAR2,
    x_inst_state                        IN     VARCHAR2,
    x_zip_code                          IN     VARCHAR2,
    x_faa_name                          IN     VARCHAR2,
    x_faa_tel                           IN     VARCHAR2,
    x_faa_fax                           IN     VARCHAR2,
    x_faa_internet_addr                 IN     VARCHAR2,
    x_schd_pell_grant                   IN     NUMBER,
    x_orig_awd_amt                      IN     NUMBER,
    x_tran_num                          IN     VARCHAR2,
    x_efc                               IN     NUMBER,
    x_enrl_dt                           IN     DATE,
    x_orig_creation_dt                  IN     DATE,
    x_disb_accepted_amt                 IN     NUMBER,
    x_last_active_dt                    IN     DATE,
    x_next_est_disb_dt                  IN     DATE,
    x_eligibility_used                  IN     NUMBER,
    x_ed_use_flags                      IN     VARCHAR2,
    x_stud_last_name                    IN     VARCHAR2,
    x_stud_first_name                   IN     VARCHAR2,
    x_stud_middle_name                  IN     VARCHAR2,
    x_stud_dob                          IN     DATE,
    x_mode                              IN     VARCHAR2,
    x_current_ssn                       IN     VARCHAR2
  ) AS
  /*
  ||  Created By : avenkatr
  ||  Created On : 14-DEC-2000
  ||  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_gr_mrr_all
      WHERE    mrr_id                            = x_mrr_id;
Line: 355

    x_last_update_date           DATE;
Line: 356

    x_last_updated_by            NUMBER;
Line: 357

    x_last_update_login          NUMBER;
Line: 361

    x_program_update_date        DATE;
Line: 369

    x_last_update_date := SYSDATE;
Line: 371

      x_last_updated_by := 1;
Line: 372

      x_last_update_login := 0;
Line: 374

      x_last_updated_by := fnd_global.user_id;
Line: 375

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

      x_last_update_login := fnd_global.login_id;
Line: 379

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

        x_program_update_date    := NULL;
Line: 392

        x_program_update_date    := SYSDATE;
Line: 400

    SELECT igf_gr_mrr_s.nextval INTO x_mrr_id FROM dual;
Line: 403

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_mrr_id                            => x_mrr_id,
      x_record_type                       => x_record_type,
      x_req_inst_pell_id                  => x_req_inst_pell_id,
      x_mrr_code1                         => x_mrr_code1,
      x_mrr_code2                         => x_mrr_code2,
      x_mr_stud_id                        => x_mr_stud_id,
      x_mr_inst_pell_id                   => x_mr_inst_pell_id,
      x_stud_orig_ssn                     => x_stud_orig_ssn,
      x_orig_name_cd                      => x_orig_name_cd,
      x_inst_pell_id                      => x_inst_pell_id,
      x_inst_name                         => x_inst_name,
      x_inst_addr1                        => x_inst_addr1,
      x_inst_addr2                        => x_inst_addr2,
      x_inst_city                         => x_inst_city,
      x_inst_state                        => x_inst_state,
      x_zip_code                          => x_zip_code,
      x_faa_name                          => x_faa_name,
      x_faa_tel                           => x_faa_tel,
      x_faa_fax                           => x_faa_fax,
      x_faa_internet_addr                 => x_faa_internet_addr,
      x_schd_pell_grant                   => x_schd_pell_grant,
      x_orig_awd_amt                      => x_orig_awd_amt,
      x_tran_num                          => x_tran_num,
      x_efc                               => x_efc,
      x_enrl_dt                           => x_enrl_dt,
      x_orig_creation_dt                  => x_orig_creation_dt,
      x_disb_accepted_amt                 => x_disb_accepted_amt,
      x_last_active_dt                    => x_last_active_dt,
      x_next_est_disb_dt                  => x_next_est_disb_dt,
      x_eligibility_used                  => x_eligibility_used,
      x_ed_use_flags                      => x_ed_use_flags,
      x_stud_last_name                    => x_stud_last_name,
      x_stud_first_name                   => x_stud_first_name,
      x_stud_middle_name                  => x_stud_middle_name,
      x_stud_dob                          => x_stud_dob,
      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,
      x_current_ssn                       => x_current_ssn
      );
Line: 448

    INSERT INTO igf_gr_mrr_all (
      mrr_id,
      record_type,
      req_inst_pell_id,
      mrr_code1,
      mrr_code2,
      mr_stud_id,
      mr_inst_pell_id,
      stud_orig_ssn,
      orig_name_cd,
      inst_pell_id,
      inst_name,
      inst_addr1,
      inst_addr2,
      inst_city,
      inst_state,
      zip_code,
      faa_name,
      faa_tel,
      faa_fax,
      faa_internet_addr,
      schd_pell_grant,
      orig_awd_amt,
      tran_num,
      efc,
      enrl_dt,
      orig_creation_dt,
      disb_accepted_amt,
      last_active_dt,
      next_est_disb_dt,
      eligibility_used,
      ed_use_flags,
      stud_last_name,
      stud_first_name,
      stud_middle_name,
      stud_dob,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      request_id,
      program_id,
      program_application_id,
      program_update_date,
      org_id,
      current_ssn
    ) VALUES (
      new_references.mrr_id,
      new_references.record_type,
      new_references.req_inst_pell_id,
      new_references.mrr_code1,
      new_references.mrr_code2,
      new_references.mr_stud_id,
      new_references.mr_inst_pell_id,
      new_references.stud_orig_ssn,
      new_references.orig_name_cd,
      new_references.inst_pell_id,
      new_references.inst_name,
      new_references.inst_addr1,
      new_references.inst_addr2,
      new_references.inst_city,
      new_references.inst_state,
      new_references.zip_code,
      new_references.faa_name,
      new_references.faa_tel,
      new_references.faa_fax,
      new_references.faa_internet_addr,
      new_references.schd_pell_grant,
      new_references.orig_awd_amt,
      new_references.tran_num,
      new_references.efc,
      new_references.enrl_dt,
      new_references.orig_creation_dt,
      new_references.disb_accepted_amt,
      new_references.last_active_dt,
      new_references.next_est_disb_dt,
      new_references.eligibility_used,
      new_references.ed_use_flags,
      new_references.stud_last_name,
      new_references.stud_first_name,
      new_references.stud_middle_name,
      new_references.stud_dob,
      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,
      l_org_id,
      new_references.current_ssn
    );
Line: 552

  END insert_row;
Line: 604

      SELECT
        record_type,
        req_inst_pell_id,
        mrr_code1,
        mrr_code2,
        mr_stud_id,
        mr_inst_pell_id,
        stud_orig_ssn,
        orig_name_cd,
        inst_pell_id,
        inst_name,
        inst_addr1,
        inst_addr2,
        inst_city,
        inst_state,
        zip_code,
        faa_name,
        faa_tel,
        faa_fax,
        faa_internet_addr,
        schd_pell_grant,
        orig_awd_amt,
        tran_num,
        efc,
        enrl_dt,
        orig_creation_dt,
        disb_accepted_amt,
        last_active_dt,
        next_est_disb_dt,
        eligibility_used,
        ed_use_flags,
        stud_last_name,
        stud_first_name,
        stud_middle_name,
        stud_dob,
        current_ssn
      FROM  igf_gr_mrr_all
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 651

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_mrr_id                            IN     NUMBER,
    x_record_type                       IN     VARCHAR2,
    x_req_inst_pell_id                  IN     VARCHAR2,
    x_mrr_code1                         IN     VARCHAR2,
    x_mrr_code2                         IN     VARCHAR2,
    x_mr_stud_id                        IN     VARCHAR2,
    x_mr_inst_pell_id                   IN     VARCHAR2,
    x_stud_orig_ssn                     IN     VARCHAR2,
    x_orig_name_cd                      IN     VARCHAR2,
    x_inst_pell_id                      IN     VARCHAR2,
    x_inst_name                         IN     VARCHAR2,
    x_inst_addr1                        IN     VARCHAR2,
    x_inst_addr2                        IN     VARCHAR2,
    x_inst_city                         IN     VARCHAR2,
    x_inst_state                        IN     VARCHAR2,
    x_zip_code                          IN     VARCHAR2,
    x_faa_name                          IN     VARCHAR2,
    x_faa_tel                           IN     VARCHAR2,
    x_faa_fax                           IN     VARCHAR2,
    x_faa_internet_addr                 IN     VARCHAR2,
    x_schd_pell_grant                   IN     NUMBER,
    x_orig_awd_amt                      IN     NUMBER,
    x_tran_num                          IN     VARCHAR2,
    x_efc                               IN     NUMBER,
    x_enrl_dt                           IN     DATE,
    x_orig_creation_dt                  IN     DATE,
    x_disb_accepted_amt                 IN     NUMBER,
    x_last_active_dt                    IN     DATE,
    x_next_est_disb_dt                  IN     DATE,
    x_eligibility_used                  IN     NUMBER,
    x_ed_use_flags                      IN     VARCHAR2,
    x_stud_last_name                    IN     VARCHAR2,
    x_stud_first_name                   IN     VARCHAR2,
    x_stud_middle_name                  IN     VARCHAR2,
    x_stud_dob                          IN     DATE,
    x_mode                              IN     VARCHAR2,
    x_current_ssn                       IN     VARCHAR2
  ) AS
  /*
  ||  Created By : avenkatr
  ||  Created On : 14-DEC-2000
  ||  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: 758

    x_last_updated_by            NUMBER;
Line: 759

    x_last_update_login          NUMBER;
Line: 763

    x_program_update_date        DATE;
Line: 767

    x_last_update_date := SYSDATE;
Line: 769

      x_last_updated_by := 1;
Line: 770

      x_last_update_login := 0;
Line: 772

      x_last_updated_by := fnd_global.user_id;
Line: 773

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

      x_last_update_login := fnd_global.login_id;
Line: 777

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_mrr_id                            => x_mrr_id,
      x_record_type                       => x_record_type,
      x_req_inst_pell_id                  => x_req_inst_pell_id,
      x_mrr_code1                         => x_mrr_code1,
      x_mrr_code2                         => x_mrr_code2,
      x_mr_stud_id                        => x_mr_stud_id,
      x_mr_inst_pell_id                   => x_mr_inst_pell_id,
      x_stud_orig_ssn                     => x_stud_orig_ssn,
      x_orig_name_cd                      => x_orig_name_cd,
      x_inst_pell_id                      => x_inst_pell_id,
      x_inst_name                         => x_inst_name,
      x_inst_addr1                        => x_inst_addr1,
      x_inst_addr2                        => x_inst_addr2,
      x_inst_city                         => x_inst_city,
      x_inst_state                        => x_inst_state,
      x_zip_code                          => x_zip_code,
      x_faa_name                          => x_faa_name,
      x_faa_tel                           => x_faa_tel,
      x_faa_fax                           => x_faa_fax,
      x_faa_internet_addr                 => x_faa_internet_addr,
      x_schd_pell_grant                   => x_schd_pell_grant,
      x_orig_awd_amt                      => x_orig_awd_amt,
      x_tran_num                          => x_tran_num,
      x_efc                               => x_efc,
      x_enrl_dt                           => x_enrl_dt,
      x_orig_creation_dt                  => x_orig_creation_dt,
      x_disb_accepted_amt                 => x_disb_accepted_amt,
      x_last_active_dt                    => x_last_active_dt,
      x_next_est_disb_dt                  => x_next_est_disb_dt,
      x_eligibility_used                  => x_eligibility_used,
      x_ed_use_flags                      => x_ed_use_flags,
      x_stud_last_name                    => x_stud_last_name,
      x_stud_first_name                   => x_stud_first_name,
      x_stud_middle_name                  => x_stud_middle_name,
      x_stud_dob                          => x_stud_dob,
      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,
      x_current_ssn                       => x_current_ssn
    );
Line: 840

        x_program_update_date := old_references.program_update_date;
Line: 842

        x_program_update_date := SYSDATE;
Line: 846

    UPDATE igf_gr_mrr_all
      SET
        record_type                       = new_references.record_type,
        req_inst_pell_id                  = new_references.req_inst_pell_id,
        mrr_code1                         = new_references.mrr_code1,
        mrr_code2                         = new_references.mrr_code2,
        mr_stud_id                        = new_references.mr_stud_id,
        mr_inst_pell_id                   = new_references.mr_inst_pell_id,
        stud_orig_ssn                     = new_references.stud_orig_ssn,
        orig_name_cd                      = new_references.orig_name_cd,
        inst_pell_id                      = new_references.inst_pell_id,
        inst_name                         = new_references.inst_name,
        inst_addr1                        = new_references.inst_addr1,
        inst_addr2                        = new_references.inst_addr2,
        inst_city                         = new_references.inst_city,
        inst_state                        = new_references.inst_state,
        zip_code                          = new_references.zip_code,
        faa_name                          = new_references.faa_name,
        faa_tel                           = new_references.faa_tel,
        faa_fax                           = new_references.faa_fax,
        faa_internet_addr                 = new_references.faa_internet_addr,
        schd_pell_grant                   = new_references.schd_pell_grant,
        orig_awd_amt                      = new_references.orig_awd_amt,
        tran_num                          = new_references.tran_num,
        efc                               = new_references.efc,
        enrl_dt                           = new_references.enrl_dt,
        orig_creation_dt                  = new_references.orig_creation_dt,
        disb_accepted_amt                 = new_references.disb_accepted_amt,
        last_active_dt                    = new_references.last_active_dt,
        next_est_disb_dt                  = new_references.next_est_disb_dt,
        eligibility_used                  = new_references.eligibility_used,
        ed_use_flags                      = new_references.ed_use_flags,
        stud_last_name                    = new_references.stud_last_name,
        stud_first_name                   = new_references.stud_first_name,
        stud_middle_name                  = new_references.stud_middle_name,
        stud_dob                          = new_references.stud_dob,
        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,
        current_ssn                       = x_current_ssn
      WHERE rowid = x_rowid;
Line: 896

  END update_row;
Line: 942

  ||  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_gr_mrr_all
      WHERE    mrr_id                            = x_mrr_id;
Line: 960

      insert_row (
        x_rowid,
        x_mrr_id,
        x_record_type,
        x_req_inst_pell_id,
        x_mrr_code1,
        x_mrr_code2,
        x_mr_stud_id,
        x_mr_inst_pell_id,
        x_stud_orig_ssn,
        x_orig_name_cd,
        x_inst_pell_id,
        x_inst_name,
        x_inst_addr1,
        x_inst_addr2,
        x_inst_city,
        x_inst_state,
        x_zip_code,
        x_faa_name,
        x_faa_tel,
        x_faa_fax,
        x_faa_internet_addr,
        x_schd_pell_grant,
        x_orig_awd_amt,
        x_tran_num,
        x_efc,
        x_enrl_dt,
        x_orig_creation_dt,
        x_disb_accepted_amt,
        x_last_active_dt,
        x_next_est_disb_dt,
        x_eligibility_used,
        x_ed_use_flags,
        x_stud_last_name,
        x_stud_first_name,
        x_stud_middle_name,
        x_stud_dob,
        x_mode,
        x_current_ssn
      );
Line: 1004

    update_row (
      x_rowid,
      x_mrr_id,
      x_record_type,
      x_req_inst_pell_id,
      x_mrr_code1,
      x_mrr_code2,
      x_mr_stud_id,
      x_mr_inst_pell_id,
      x_stud_orig_ssn,
      x_orig_name_cd,
      x_inst_pell_id,
      x_inst_name,
      x_inst_addr1,
      x_inst_addr2,
      x_inst_city,
      x_inst_state,
      x_zip_code,
      x_faa_name,
      x_faa_tel,
      x_faa_fax,
      x_faa_internet_addr,
      x_schd_pell_grant,
      x_orig_awd_amt,
      x_tran_num,
      x_efc,
      x_enrl_dt,
      x_orig_creation_dt,
      x_disb_accepted_amt,
      x_last_active_dt,
      x_next_est_disb_dt,
      x_eligibility_used,
      x_ed_use_flags,
      x_stud_last_name,
      x_stud_first_name,
      x_stud_middle_name,
      x_stud_dob,
      x_mode,
      x_current_ssn
    );
Line: 1048

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : avenkatr
  ||  Created On : 14-DEC-2000
  ||  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: 1067

    DELETE FROM igf_gr_mrr_all
    WHERE rowid = x_rowid;
Line: 1074

  END delete_row;