DBA Data[Home] [Help]

APPS.IGS_PR_COHORT_PKG SQL Statements

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

Line: 24

    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_cohort
      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: 158

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

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

      SELECT   rowid
      FROM     igs_pr_cohort
      WHERE    cohort_name = x_cohort_name
      FOR UPDATE NOWAIT;
Line: 243

      SELECT   rowid
      FROM     igs_pr_cohort
      WHERE   ((stat_type = x_stat_type));
Line: 278

      SELECT   rowid
      FROM     igs_pr_cohort
      WHERE   ((rule_sequence_number = x_sequence_number));
Line: 316

    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_description,
      x_org_unit_cd,
      x_stat_type,
      x_timeframe,
      x_dflt_display_type,
      x_dense_rank_ind,
      x_incl_on_transcript_ind,
      x_incl_on_stud_acad_hist_ind,
      x_rule_sequence_number,
      x_closed_ind,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 353

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

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

    ELSIF (p_action = 'DELETE') THEN
      -- Call all the procedures related to Before Delete.
      check_child_existance;
Line: 372

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

    ELSIF (p_action = 'VALIDATE_UPDATE') THEN
      check_constraints;
Line: 385

    ELSIF (p_action = 'VALIDATE_DELETE') THEN
      check_child_existance;
Line: 392

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_cohort_name                       IN     VARCHAR2,
    x_description                       IN     VARCHAR2,
    x_org_unit_cd                       IN     VARCHAR2,
    x_stat_type                         IN     VARCHAR2,
    x_timeframe                         IN     VARCHAR2,
    x_dflt_display_type                 IN     VARCHAR2,
    x_dense_rank_ind                    IN     VARCHAR2,
    x_incl_on_transcript_ind            IN     VARCHAR2,
    x_incl_on_stud_acad_hist_ind        IN     VARCHAR2,
    x_rule_sequence_number              IN     NUMBER,
    x_closed_ind                        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: 418

    x_last_updated_by            NUMBER;
Line: 419

    x_last_update_login          NUMBER;
Line: 423

    x_last_update_date := SYSDATE;
Line: 425

      x_last_updated_by := 1;
Line: 426

      x_last_update_login := 0;
Line: 428

      x_last_updated_by := fnd_global.user_id;
Line: 429

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

      x_last_update_login := fnd_global.login_id;
Line: 433

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

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_cohort_name                       => x_cohort_name,
      x_description                       => x_description,
      x_org_unit_cd                       => x_org_unit_cd,
      x_stat_type                         => x_stat_type,
      x_timeframe                         => x_timeframe,
      x_dflt_display_type                 => x_dflt_display_type,
      x_dense_rank_ind                    => x_dense_rank_ind,
      x_incl_on_transcript_ind            => x_incl_on_transcript_ind,
      x_incl_on_stud_acad_hist_ind        => x_incl_on_stud_acad_hist_ind,
      x_rule_sequence_number              => x_rule_sequence_number,
      x_closed_ind                        => x_closed_ind,
      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: 463

    INSERT INTO igs_pr_cohort (
      cohort_name,
      description,
      org_unit_cd,
      stat_type,
      timeframe,
      dflt_display_type,
      dense_rank_ind,
      incl_on_transcript_ind,
      incl_on_stud_acad_hist_ind,
      rule_sequence_number,
      closed_ind,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.cohort_name,
      new_references.description,
      new_references.org_unit_cd,
      new_references.stat_type,
      new_references.timeframe,
      new_references.dflt_display_type,
      new_references.dense_rank_ind,
      new_references.incl_on_transcript_ind,
      new_references.incl_on_stud_acad_hist_ind,
      new_references.rule_sequence_number,
      new_references.closed_ind,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    ) RETURNING ROWID INTO x_rowid;
Line: 499

  END insert_row;
Line: 526

      SELECT
        description,
        org_unit_cd,
        stat_type,
        timeframe,
        dflt_display_type,
        dense_rank_ind,
        incl_on_transcript_ind,
        incl_on_stud_acad_hist_ind,
        rule_sequence_number,
        closed_ind
      FROM  igs_pr_cohort
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 548

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_cohort_name                       IN     VARCHAR2,
    x_description                       IN     VARCHAR2,
    x_org_unit_cd                       IN     VARCHAR2,
    x_stat_type                         IN     VARCHAR2,
    x_timeframe                         IN     VARCHAR2,
    x_dflt_display_type                 IN     VARCHAR2,
    x_dense_rank_ind                    IN     VARCHAR2,
    x_incl_on_transcript_ind            IN     VARCHAR2,
    x_incl_on_stud_acad_hist_ind        IN     VARCHAR2,
    x_rule_sequence_number              IN     NUMBER,
    x_closed_ind                        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: 605

    x_last_updated_by            NUMBER;
Line: 606

    x_last_update_login          NUMBER;
Line: 610

    x_last_update_date := SYSDATE;
Line: 612

      x_last_updated_by := 1;
Line: 613

      x_last_update_login := 0;
Line: 615

      x_last_updated_by := fnd_global.user_id;
Line: 616

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

      x_last_update_login := fnd_global.login_id;
Line: 620

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_cohort_name                       => x_cohort_name,
      x_description                       => x_description,
      x_org_unit_cd                       => x_org_unit_cd,
      x_stat_type                         => x_stat_type,
      x_timeframe                         => x_timeframe,
      x_dflt_display_type                 => x_dflt_display_type,
      x_dense_rank_ind                    => x_dense_rank_ind,
      x_incl_on_transcript_ind            => x_incl_on_transcript_ind,
      x_incl_on_stud_acad_hist_ind        => x_incl_on_stud_acad_hist_ind,
      x_rule_sequence_number              => x_rule_sequence_number,
      x_closed_ind                        => x_closed_ind,
      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: 650

    UPDATE igs_pr_cohort
      SET
        description                       = new_references.description,
        org_unit_cd                       = new_references.org_unit_cd,
        stat_type                         = new_references.stat_type,
        timeframe                         = new_references.timeframe,
        dflt_display_type                 = new_references.dflt_display_type,
        dense_rank_ind                    = new_references.dense_rank_ind,
        incl_on_transcript_ind            = new_references.incl_on_transcript_ind,
        incl_on_stud_acad_hist_ind        = new_references.incl_on_stud_acad_hist_ind,
        rule_sequence_number              = new_references.rule_sequence_number,
        closed_ind                        = new_references.closed_ind,
        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: 671

  END update_row;
Line: 692

  ||  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_cohort
      WHERE    cohort_name                       = x_cohort_name;
Line: 710

      insert_row (
        x_rowid,
        x_cohort_name,
        x_description,
        x_org_unit_cd,
        x_stat_type,
        x_timeframe,
        x_dflt_display_type,
        x_dense_rank_ind,
        x_incl_on_transcript_ind,
        x_incl_on_stud_acad_hist_ind,
        x_rule_sequence_number,
        x_closed_ind,
        x_mode
      );
Line: 729

    update_row (
      x_rowid,
      x_cohort_name,
      x_description,
      x_org_unit_cd,
      x_stat_type,
      x_timeframe,
      x_dflt_display_type,
      x_dense_rank_ind,
      x_incl_on_transcript_ind,
      x_incl_on_stud_acad_hist_ind,
      x_rule_sequence_number,
      x_closed_ind,
      x_mode
    );
Line: 748

  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: 767

    DELETE FROM igs_pr_cohort
    WHERE rowid = x_rowid;
Line: 774

  END delete_row;