DBA Data[Home] [Help]

APPS.IGS_PE_EV_FORM_STAT_PKG SQL Statements

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

Line: 22

    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 : 28-NOV-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_pe_ev_form_stat
      WHERE    rowid = x_rowid;
Line: 49

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 78

    new_references.last_updated_by                   := x_last_updated_by;
Line: 79

    new_references.last_update_login                 := x_last_update_login;
Line: 84

  PROCEDURE afterrowinsertupdate(p_insert BOOLEAN ,p_update BOOLEAN) AS

   CURSOR person_type(l_person_id  igs_pe_ev_form.person_id%TYPE) IS
   SELECT typ.rowid,typ.* FROM
   igs_pe_typ_instances_all typ , igs_pe_person_types per_typ
   WHERE
   typ.person_id = l_person_id AND
   per_typ.system_type = 'EXCHG_VISITOR' AND
   typ.person_type_code = per_typ.person_type_code AND
   typ.end_date IS NULL ;
Line: 101

     IF p_insert = TRUE THEN
          IF new_references.action_type IN ('ED','TR') THEN
             DECLARE
             CURSOR ev_form IS
             SELECT a.rowid,a.* FROM IGS_PE_EV_FORM a
             WHERE a.ev_form_id = new_references.ev_form_id;
Line: 118

                igs_pe_ev_form_pkg.update_row (
                    x_rowid                          => l_ev_form.rowid ,
                    x_ev_form_id                     => l_ev_form.ev_form_id ,
                    x_person_id                      => l_ev_form.person_id ,
                    x_print_form                     => l_ev_form.print_form ,
                    x_form_effective_date            => l_ev_form.form_effective_date ,
                    x_form_status                    => l_form_status ,
                    x_create_reason                  => l_ev_form.create_reason ,
                    x_is_valid                       => l_ev_form.is_valid ,
                    x_prgm_sponsor_amt               => l_ev_form.prgm_sponsor_amt ,
                    x_govt_org1_amt                  => l_ev_form.govt_org1_amt ,
                    x_govt_org1_code                 => l_ev_form.govt_org1_code ,
                    x_govt_org2_amt                  => l_ev_form.govt_org2_amt ,
                    x_govt_org2_code                 => l_ev_form.govt_org2_code ,
                    x_intl_org1_amt                  => l_ev_form.intl_org1_amt  ,
                    x_intl_org1_code                 => l_ev_form.intl_org1_code ,
                    x_intl_org2_amt                  => l_ev_form.intl_org2_amt  ,
                    x_intl_org2_code                 => l_ev_form.intl_org2_code ,
                    x_ev_govt_amt                    => l_ev_form.ev_govt_amt ,
                    x_bi_natnl_com_amt               => l_ev_form.bi_natnl_com_amt ,
                    x_other_govt_amt                 => l_ev_form.other_govt_amt ,
                    x_personal_funds_amt             => l_ev_form.personal_funds_amt ,
                    x_ev_form_number                 => l_ev_form.ev_form_number ,
                    x_prgm_start_date                => l_ev_form.prgm_start_date ,
                    x_prgm_end_date                  => l_ev_form.prgm_end_date  ,
                    x_last_reprint_date              => l_ev_form.last_reprint_date ,
                    x_reprint_reason                 => l_ev_form.reprint_reason ,
                    x_reprint_remarks                => l_ev_form.reprint_remarks ,
                    x_position_code                  => l_ev_form.position_code ,
                    x_position_remarks               => l_ev_form.position_remarks ,
                    x_subject_field_code             => l_ev_form.subject_field_code ,
                    x_subject_field_remarks          => l_ev_form.subject_field_remarks ,
                    x_matriculation                  => l_ev_form.matriculation  ,
                    x_remarks                        => l_ev_form.remarks  ,
                    x_mode                           => 'R',
                    x_category_code                  => l_ev_form.category_code,
                    x_init_prgm_start_date           => l_ev_form.init_prgm_start_date,
		    x_govt_org1_othr_name	     => l_ev_form.govt_org1_othr_name,
		    x_govt_org2_othr_name            => l_ev_form.govt_org2_othr_name,
		    x_intl_org1_othr_name            => l_ev_form.intl_org1_othr_name,
		    x_intl_org2_othr_name            => l_ev_form.intl_org2_othr_name,
		    x_no_show_flag		     => l_ev_form.no_show_flag,
		    x_other_govt_name		     => l_ev_form.other_govt_name,
		    x_sevis_school_id		     => l_ev_form.SEVIS_SCHOOL_IDENTIFIER
                    );
Line: 172

                 igs_pe_typ_instances_pkg.UPDATE_ROW
                 (
                 X_ROWID                        => l_person_type.rowid,
                 X_PERSON_ID                    => l_person_type.person_id,
                 X_COURSE_CD                    => l_person_type.course_cd,
                 X_TYPE_INSTANCE_ID             => l_person_type.type_instance_id,
                 X_PERSON_TYPE_CODE             => l_person_type.person_type_code,
                 X_CC_VERSION_NUMBER            => l_person_type.cc_version_number,
                 X_FUNNEL_STATUS                => l_person_type.funnel_status,
                 X_ADMISSION_APPL_NUMBER        => l_person_type.admission_appl_number,
                 X_NOMINATED_COURSE_CD          => l_person_type.nominated_course_cd,
                 X_NCC_VERSION_NUMBER           => l_person_type.ncc_version_number,
                 X_SEQUENCE_NUMBER              => l_person_type.sequence_number,
                 X_START_DATE                   => l_ev_form.form_effective_date,
                 X_END_DATE                     => l_end_date ,
                 X_CREATE_METHOD                => l_person_type.create_method,
                 X_ENDED_BY                     => lv_userid,
                 X_END_METHOD                   => l_end_method,
                 X_EMPLMNT_CATEGORY_CODE        => l_person_type.emplmnt_category_code
		 );
Line: 196

     ELSIF p_update = TRUE THEN
           null;
Line: 199

  END afterrowinsertupdate;
Line: 246

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

      SELECT   rowid
      FROM     igs_pe_ev_form_stat
      WHERE    ev_form_stat_id = x_ev_form_stat_id
      FOR UPDATE NOWAIT;
Line: 304

      SELECT   rowid
      FROM     igs_pe_ev_form_stat
      WHERE    ev_form_id = x_ev_form_id
      AND      action_date = x_action_date
      AND      action_type = x_action_type
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 341

      SELECT   rowid
      FROM     igs_pe_ev_form_stat
      WHERE   ((ev_form_id = x_ev_form_id));
Line: 377

    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 : 28-NOV-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_ev_form_stat_id,
      x_ev_form_id,
      x_action_date,
      x_action_type,
      x_prgm_start_date,
      x_prgm_end_date,
      x_remarks,
      x_termination_reason,
      x_end_program_reason,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 412

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

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

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

    ELSIF (p_action = 'VALIDATE_UPDATE') THEN
      check_uniqueness;
Line: 446

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_ev_form_stat_id                   IN OUT NOCOPY NUMBER,
    x_ev_form_id                        IN     NUMBER,
    x_action_date                       IN     DATE,
    x_action_type                       IN     VARCHAR2,
    x_prgm_start_date                   IN     DATE,
    x_prgm_end_date                     IN     DATE,
    x_remarks                           IN     VARCHAR2,
    x_termination_reason                IN     VARCHAR2,
    x_end_program_reason                IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 28-NOV-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)
  */

    x_last_update_date           DATE;
Line: 470

    x_last_updated_by            NUMBER;
Line: 471

    x_last_update_login          NUMBER;
Line: 475

    x_last_update_date := SYSDATE;
Line: 477

      x_last_updated_by := 1;
Line: 478

      x_last_update_login := 0;
Line: 480

      x_last_updated_by := fnd_global.user_id;
Line: 481

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

      x_last_update_login := fnd_global.login_id;
Line: 485

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

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_ev_form_stat_id                   => x_ev_form_stat_id,
      x_ev_form_id                        => x_ev_form_id,
      x_action_date                       => x_action_date,
      x_action_type                       => x_action_type,
      x_prgm_start_date                   => x_prgm_start_date,
      x_prgm_end_date                     => x_prgm_end_date,
      x_remarks                           => x_remarks,
      x_termination_reason                => x_termination_reason,
      x_end_program_reason                => x_end_program_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: 516

 INSERT INTO igs_pe_ev_form_stat (
      ev_form_stat_id,
      ev_form_id,
      action_date,
      action_type,
      prgm_start_date,
      prgm_end_date,
      remarks,
      termination_reason,
      end_program_reason,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      igs_pe_ev_form_stat_s.NEXTVAL,
      new_references.ev_form_id,
      new_references.action_date,
      new_references.action_type,
      new_references.prgm_start_date,
      new_references.prgm_end_date,
      new_references.remarks,
      new_references.termination_reason,
      new_references.end_program_reason,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    ) RETURNING ROWID, ev_form_stat_id INTO x_rowid, x_ev_form_stat_id;
Line: 552

    afterrowinsertupdate(p_insert => TRUE, p_update => FALSE);
Line: 567

 END insert_row;
Line: 592

      SELECT
        ev_form_id,
        action_date,
        action_type,
        prgm_start_date,
        prgm_end_date,
        remarks,
        termination_reason,
        end_program_reason
      FROM  igs_pe_ev_form_stat
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 612

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_ev_form_stat_id                   IN     NUMBER,
    x_ev_form_id                        IN     NUMBER,
    x_action_date                       IN     DATE,
    x_action_type                       IN     VARCHAR2,
    x_prgm_start_date                   IN     DATE,
    x_prgm_end_date                     IN     DATE,
    x_remarks                           IN     VARCHAR2,
    x_termination_reason                IN     VARCHAR2,
    x_end_program_reason                IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 28-NOV-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: 665

    x_last_updated_by            NUMBER;
Line: 666

    x_last_update_login          NUMBER;
Line: 670

    x_last_update_date := SYSDATE;
Line: 672

      x_last_updated_by := 1;
Line: 673

      x_last_update_login := 0;
Line: 675

      x_last_updated_by := fnd_global.user_id;
Line: 676

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

      x_last_update_login := fnd_global.login_id;
Line: 680

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_ev_form_stat_id                   => x_ev_form_stat_id,
      x_ev_form_id                        => x_ev_form_id,
      x_action_date                       => x_action_date,
      x_action_type                       => x_action_type,
      x_prgm_start_date                   => x_prgm_start_date,
      x_prgm_end_date                     => x_prgm_end_date,
      x_remarks                           => x_remarks,
      x_termination_reason                => x_termination_reason,
      x_end_program_reason                => x_end_program_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: 711

 UPDATE igs_pe_ev_form_stat
      SET
        ev_form_id                        = new_references.ev_form_id,
        action_date                       = new_references.action_date,
        action_type                       = new_references.action_type,
        prgm_start_date                   = new_references.prgm_start_date,
        prgm_end_date                     = new_references.prgm_end_date,
        remarks                           = new_references.remarks,
        termination_reason                = new_references.termination_reason,
        end_program_reason                = new_references.end_program_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: 750

 END update_row;
Line: 769

  ||  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_pe_ev_form_stat
      WHERE    ev_form_stat_id                   = x_ev_form_stat_id;
Line: 787

      insert_row (
        x_rowid,
        x_ev_form_stat_id,
        x_ev_form_id,
        x_action_date,
        x_action_type,
        x_prgm_start_date,
        x_prgm_end_date,
        x_remarks,
        x_termination_reason,
        x_end_program_reason,
        x_mode
      );
Line: 804

    update_row (
      x_rowid,
      x_ev_form_stat_id,
      x_ev_form_id,
      x_action_date,
      x_action_type,
      x_prgm_start_date,
      x_prgm_end_date,
      x_remarks,
      x_termination_reason,
      x_end_program_reason,
      x_mode
    );
Line: 821

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2,
  x_mode IN VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 28-NOV-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: 844

 DELETE FROM igs_pe_ev_form_stat
    WHERE rowid = x_rowid;
Line: 858

  END delete_row;