DBA Data[Home] [Help]

APPS.IGS_DA_REQ_STDNTS_PKG SQL Statements

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

Line: 23

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER,
    x_error_code                        IN     VARCHAR2
  ) AS
  /*
  ||  Created By :
  ||  Created On : 27-MAR-2003
  ||  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_da_req_stdnts
      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: 106

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

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

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

      SELECT   rowid
      FROM     igs_da_req_stdnts
      WHERE    igs_da_req_stdnts_id = x_igs_da_req_stdnts_id
      FOR UPDATE NOWAIT;
Line: 187

      SELECT   rowid
      FROM     igs_da_req_stdnts
      WHERE   ((program_code = x_course_cd))
      OR      ((wif_program_code = x_course_cd));
Line: 224

      SELECT   rowid
      FROM     igs_da_req_stdnts
      WHERE   ((batch_id = x_batch_id) AND
               (wif_id = x_wif_id));
Line: 246

  PROCEDURE BeforeInsert(p_inserting BOOLEAN , p_updating BOOLEAN) AS


   CURSOR cur_setup IS
     SELECT program_definition_ind
     FROM igs_da_setup;
Line: 258

  IF ( p_inserting = TRUE ) THEN

     OPEN cur_setup;
Line: 305

 END BeforeInsert;
Line: 323

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER,
    x_error_code                        IN     VARCHAR2
  ) AS
  /*
  ||  Created By :
  ||  Created On : 27-MAR-2003
  ||  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_batch_id,
      x_igs_da_req_stdnts_id,
      x_person_id,
      x_program_code,
      x_wif_program_code,
      x_special_program_code,
      x_major_unit_set_cd,
      x_program_major_code,
      x_report_text,
      x_wif_id,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      x_error_code
    );
Line: 361

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_batch_id                          IN     NUMBER,
    x_igs_da_req_stdnts_id              IN OUT NOCOPY NUMBER,
    x_person_id                         IN     NUMBER,
    x_program_code                      IN     VARCHAR2,
    x_wif_program_code                  IN     VARCHAR2,
    x_special_program_code              IN     VARCHAR2,
    x_major_unit_set_cd                 IN     VARCHAR2,
    x_program_major_code                IN     VARCHAR2,
    x_report_text                       IN     CLOB,
    x_wif_id                            IN     NUMBER,
    x_mode                              IN     VARCHAR2,
    x_error_code                        IN     VARCHAR2
  ) AS
  /*
  ||  Created By :
  ||  Created On : 27-MAR-2003
  ||  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: 416

    x_last_updated_by            NUMBER;
Line: 417

    x_last_update_login          NUMBER;
Line: 421

    x_last_update_date := SYSDATE;
Line: 423

      x_last_updated_by := 1;
Line: 424

      x_last_update_login := 0;
Line: 426

      x_last_updated_by := fnd_global.user_id;
Line: 427

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

      x_last_update_login := fnd_global.login_id;
Line: 431

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

      fnd_message.set_token ('ROUTINE', 'IGS_DA_REQ_STDNTS_PKG.INSERT_ROW');
Line: 444

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_batch_id                          => x_batch_id,
      x_igs_da_req_stdnts_id              => x_igs_da_req_stdnts_id,
      x_person_id                         => x_person_id,
      x_program_code                      => x_program_code,
      x_wif_program_code                  => x_wif_program_code,
      x_special_program_code              => x_special_program_code,
      x_major_unit_set_cd                 => x_major_unit_set_cd,
      x_program_major_code                => x_program_major_code,
      x_report_text                       => x_report_text,
      x_wif_id                            => x_wif_id,
      x_error_code                        => x_error_code,
      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: 467

    BeforeInsert(TRUE,FALSE);
Line: 470

    INSERT INTO igs_da_req_stdnts (
      batch_id,
      igs_da_req_stdnts_id,
      person_id,
      program_code,
      wif_program_code,
      special_program_code,
      major_unit_set_cd,
      program_major_code,
      report_text,
      wif_id,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      error_code
    ) VALUES (
      new_references.batch_id,
      igs_da_req_stdnts_s.NEXTVAL,
      new_references.person_id,
      new_references.program_code,
      new_references.wif_program_code,
      new_references.special_program_code,
      new_references.major_unit_set_cd,
      new_references.program_major_code,
      new_references.report_text,
      new_references.wif_id,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      new_references.error_code
    ) RETURNING ROWID, igs_da_req_stdnts_id INTO x_rowid, x_igs_da_req_stdnts_id;
Line: 506

  END insert_row;
Line: 533

      SELECT
        batch_id,
        person_id,
        program_code,
        wif_program_code,
        special_program_code,
        major_unit_set_cd,
        program_major_code,
        report_text,
        wif_id,
        error_code
      FROM  igs_da_req_stdnts
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 555

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_batch_id                          IN     NUMBER,
    x_igs_da_req_stdnts_id              IN     NUMBER,
    x_person_id                         IN     NUMBER,
    x_program_code                      IN     VARCHAR2,
    x_wif_program_code                  IN     VARCHAR2,
    x_special_program_code              IN     VARCHAR2,
    x_major_unit_set_cd                 IN     VARCHAR2,
    x_program_major_code                IN     VARCHAR2,
    x_report_text                       IN     CLOB,
    x_wif_id                            IN     NUMBER,
    x_mode                              IN     VARCHAR2,
    x_error_code                        IN     VARCHAR2
  ) AS
  /*
  ||  Created By :
  ||  Created On : 27-MAR-2003
  ||  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: 611

    x_last_updated_by            NUMBER;
Line: 612

    x_last_update_login          NUMBER;
Line: 616

    x_last_update_date := SYSDATE;
Line: 618

      x_last_updated_by := 1;
Line: 619

      x_last_update_login := 0;
Line: 621

      x_last_updated_by := fnd_global.user_id;
Line: 622

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

      x_last_update_login := fnd_global.login_id;
Line: 626

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

      fnd_message.set_token ('ROUTINE', 'IGS_DA_REQ_STDNTS_PKG.UPDATE_ROW');
Line: 639

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_batch_id                          => x_batch_id,
      x_igs_da_req_stdnts_id              => x_igs_da_req_stdnts_id,
      x_person_id                         => x_person_id,
      x_program_code                      => x_program_code,
      x_wif_program_code                  => x_wif_program_code,
      x_special_program_code              => x_special_program_code,
      x_major_unit_set_cd                 => x_major_unit_set_cd,
      x_program_major_code                => x_program_major_code,
      x_report_text                       => x_report_text,
      x_wif_id                            => x_wif_id,
      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_error_code                        => x_error_code
    );
Line: 659

    UPDATE igs_da_req_stdnts
      SET
        batch_id                          = new_references.batch_id,
        person_id                         = new_references.person_id,
        program_code                      = new_references.program_code,
        wif_program_code                  = new_references.wif_program_code,
        special_program_code              = new_references.special_program_code,
        major_unit_set_cd                 = new_references.major_unit_set_cd,
        program_major_code                = new_references.program_major_code,
        report_text                       = new_references.report_text,
        wif_id                            = new_references.wif_id,
        last_update_date                  = x_last_update_date,
        last_updated_by                   = x_last_updated_by,
        last_update_login                 = x_last_update_login,
        error_code                        = x_error_code
      WHERE rowid = x_rowid;
Line: 680

  END update_row;
Line: 701

  ||  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_da_req_stdnts
      WHERE    igs_da_req_stdnts_id              = x_igs_da_req_stdnts_id;
Line: 719

      insert_row (
        x_rowid,
        x_batch_id,
        x_igs_da_req_stdnts_id,
        x_person_id,
        x_program_code,
        x_wif_program_code,
        x_special_program_code,
        x_major_unit_set_cd,
        x_program_major_code,
        x_report_text,
        x_wif_id,
        x_mode,
        x_error_code
      );
Line: 738

    update_row (
      x_rowid,
      x_batch_id,
      x_igs_da_req_stdnts_id,
      x_person_id,
      x_program_code,
      x_wif_program_code,
      x_special_program_code,
      x_major_unit_set_cd,
      x_program_major_code,
      x_report_text,
      x_wif_id,
      x_mode,
      x_error_code
    );
Line: 757

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By :
  ||  Created On : 27-MAR-2003
  ||  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: 776

    DELETE FROM igs_da_req_stdnts
    WHERE rowid = x_rowid;
Line: 783

  END delete_row;