DBA Data[Home] [Help]

APPS.IGS_PR_COHINST_RANK_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 : 30-OCT-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_pr_cohinst_rank
      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: 107

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

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

      SELECT   rowid
      FROM     igs_pr_cohinst_rank
      WHERE    person_id = x_person_id
      AND      course_cd = x_course_cd
      AND      cohort_name = x_cohort_name
      AND      load_cal_type = x_load_cal_type
      AND      load_ci_sequence_number = x_load_ci_sequence_number
      FOR UPDATE NOWAIT;
Line: 186

      SELECT   rowid
      FROM     igs_pr_cohinst_rank
      WHERE   ((cohort_name = x_cohort_name) AND
               (load_cal_type = x_load_cal_type) AND
               (load_ci_sequence_number = x_load_ci_sequence_number));
Line: 224

      SELECT   rowid
      FROM     igs_pr_cohinst_rank
      WHERE   ((course_cd = x_course_cd) AND
               (person_id = x_person_id));
Line: 261

    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 : 30-OCT-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_cohort_name,
      x_load_cal_type,
      x_load_ci_sequence_number,
      x_person_id,
      x_course_cd,
      x_as_of_rank_gpa,
      x_cohort_rank,
      x_cohort_override_rank,
      x_comments,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 296

    IF (p_action = 'INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation(
             new_references.person_id,
             new_references.course_cd,
             new_references.cohort_name,
             new_references.load_cal_type,
             new_references.load_ci_sequence_number
           )
         ) THEN
        fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
Line: 311

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

    ELSIF (p_action = 'VALIDATE_INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation (
             new_references.person_id,
             new_references.course_cd,
             new_references.cohort_name,
             new_references.load_cal_type,
             new_references.load_ci_sequence_number
           )
         ) THEN
        fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
Line: 333

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_cohort_name                       IN     VARCHAR2,
    x_load_cal_type                     IN     VARCHAR2,
    x_load_ci_sequence_number           IN     NUMBER,
    x_person_id                         IN     NUMBER,
    x_course_cd                         IN     VARCHAR2,
    x_as_of_rank_gpa                    IN     NUMBER,
    x_cohort_rank                       IN     NUMBER,
    x_cohort_override_rank              IN     NUMBER,
    x_comments                          IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 30-OCT-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: 357

    x_last_updated_by            NUMBER;
Line: 358

    x_last_update_login          NUMBER;
Line: 362

    x_program_update_date        DATE;
Line: 366

    x_last_update_date := SYSDATE;
Line: 368

      x_last_updated_by := 1;
Line: 369

      x_last_update_login := 0;
Line: 371

      x_last_updated_by := fnd_global.user_id;
Line: 372

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

      x_last_update_login := fnd_global.login_id;
Line: 376

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

        x_program_update_date    := NULL;
Line: 389

        x_program_update_date    := SYSDATE;
Line: 398

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_cohort_name                       => x_cohort_name,
      x_load_cal_type                     => x_load_cal_type,
      x_load_ci_sequence_number           => x_load_ci_sequence_number,
      x_person_id                         => x_person_id,
      x_course_cd                         => x_course_cd,
      x_as_of_rank_gpa                    => x_as_of_rank_gpa,
      x_cohort_rank                       => x_cohort_rank,
      x_cohort_override_rank              => x_cohort_override_rank,
      x_comments                          => x_comments,
      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: 416

    INSERT INTO igs_pr_cohinst_rank (
      cohort_name,
      load_cal_type,
      load_ci_sequence_number,
      person_id,
      course_cd,
      as_of_rank_gpa,
      cohort_rank,
      cohort_override_rank,
      comments,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      request_id,
      program_id,
      program_application_id,
      program_update_date
    ) VALUES (
      new_references.cohort_name,
      new_references.load_cal_type,
      new_references.load_ci_sequence_number,
      new_references.person_id,
      new_references.course_cd,
      new_references.as_of_rank_gpa,
      new_references.cohort_rank,
      new_references.cohort_override_rank,
      new_references.comments,
      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 INTO x_rowid;
Line: 456

  END insert_row;
Line: 481

      SELECT
        as_of_rank_gpa,
        cohort_rank,
        cohort_override_rank,
        comments
      FROM  igs_pr_cohinst_rank
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 497

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_cohort_name                       IN     VARCHAR2,
    x_load_cal_type                     IN     VARCHAR2,
    x_load_ci_sequence_number           IN     NUMBER,
    x_person_id                         IN     NUMBER,
    x_course_cd                         IN     VARCHAR2,
    x_as_of_rank_gpa                    IN     NUMBER,
    x_cohort_rank                       IN     NUMBER,
    x_cohort_override_rank              IN     NUMBER,
    x_comments                          IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 30-OCT-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: 546

    x_last_updated_by            NUMBER;
Line: 547

    x_last_update_login          NUMBER;
Line: 551

    x_program_update_date        DATE;
Line: 555

    x_last_update_date := SYSDATE;
Line: 557

      x_last_updated_by := 1;
Line: 558

      x_last_update_login := 0;
Line: 560

      x_last_updated_by := fnd_global.user_id;
Line: 561

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

      x_last_update_login := fnd_global.login_id;
Line: 565

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_cohort_name                       => x_cohort_name,
      x_load_cal_type                     => x_load_cal_type,
      x_load_ci_sequence_number           => x_load_ci_sequence_number,
      x_person_id                         => x_person_id,
      x_course_cd                         => x_course_cd,
      x_as_of_rank_gpa                    => x_as_of_rank_gpa,
      x_cohort_rank                       => x_cohort_rank,
      x_cohort_override_rank              => x_cohort_override_rank,
      x_comments                          => x_comments,
      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: 601

        x_program_update_date := old_references.program_update_date;
Line: 603

        x_program_update_date := SYSDATE;
Line: 607

    UPDATE igs_pr_cohinst_rank
      SET
        as_of_rank_gpa                    = new_references.as_of_rank_gpa,
        cohort_rank                       = new_references.cohort_rank,
        cohort_override_rank              = new_references.cohort_override_rank,
        comments                          = new_references.comments,
        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: 631

           SELECT person_number, full_name
	   FROM   igs_pe_person_base_v
	   WHERE  person_id = cp_person_id;
Line: 638

           SELECT distinct person_party_id
	   FROm FND_USER
	   WHERE user_id = FND_GLOBAL.USER_ID;
Line: 644

           SELECT meaning
           FROM igs_lookups_view
           WHERE lookup_code = 'ADMIN'
           AND   lookup_type = 'IGS_PT_SS_ROLE_TYPES';
Line: 681

  END update_row;
Line: 700

  ||  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_pr_cohinst_rank
      WHERE    person_id                         = x_person_id
      AND      course_cd                         = x_course_cd
      AND      cohort_name                       = x_cohort_name
      AND      load_cal_type                     = x_load_cal_type
      AND      load_ci_sequence_number           = x_load_ci_sequence_number;
Line: 722

      insert_row (
        x_rowid,
        x_cohort_name,
        x_load_cal_type,
        x_load_ci_sequence_number,
        x_person_id,
        x_course_cd,
        x_as_of_rank_gpa,
        x_cohort_rank,
        x_cohort_override_rank,
        x_comments,
        x_mode
      );
Line: 739

    update_row (
      x_rowid,
      x_cohort_name,
      x_load_cal_type,
      x_load_ci_sequence_number,
      x_person_id,
      x_course_cd,
      x_as_of_rank_gpa,
      x_cohort_rank,
      x_cohort_override_rank,
      x_comments,
      x_mode
    );
Line: 756

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 30-OCT-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: 775

    DELETE FROM igs_pr_cohinst_rank
    WHERE rowid = x_rowid;
Line: 782

  END delete_row;