DBA Data[Home] [Help]

APPS.IGS_PR_COHORT_INST_PKG SQL Statements

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

Line: 19

    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_inst
      WHERE    rowid = x_rowid;
Line: 46

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 72

    new_references.last_updated_by                   := x_last_updated_by;
Line: 73

    new_references.last_update_login                 := x_last_update_login;
Line: 95

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

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

      SELECT   rowid
      FROM     igs_pr_cohort_inst
      WHERE    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: 189

      SELECT   rowid
      FROM     igs_pr_cohort_inst
      WHERE   ((cohort_name = x_cohort_name));
Line: 225

      SELECT   rowid
      FROM     igs_pr_cohort_inst
      WHERE   ((load_cal_type = x_cal_type) AND
               (load_ci_sequence_number = x_sequence_number));
Line: 259

    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_cohort_status,
      x_rank_status,
      x_run_date,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 291

    IF (p_action = 'INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation(
             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: 304

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

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

    ELSIF (p_action = 'VALIDATE_INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation (
             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: 322

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

  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_cohort_status                     IN     VARCHAR2,
    x_rank_status                       IN     VARCHAR2,
    x_run_date                          IN     DATE,
    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: 350

    x_last_updated_by            NUMBER;
Line: 351

    x_last_update_login          NUMBER;
Line: 355

    x_program_update_date        DATE;
Line: 359

    x_last_update_date := SYSDATE;
Line: 361

      x_last_updated_by := 1;
Line: 362

      x_last_update_login := 0;
Line: 364

      x_last_updated_by := fnd_global.user_id;
Line: 365

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

      x_last_update_login := fnd_global.login_id;
Line: 369

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

        x_program_update_date    := NULL;
Line: 382

        x_program_update_date    := SYSDATE;
Line: 391

      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_cohort_status                     => x_cohort_status,
      x_rank_status                       => x_rank_status,
      x_run_date                          => x_run_date,
      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: 406

    INSERT INTO igs_pr_cohort_inst (
      cohort_name,
      load_cal_type,
      load_ci_sequence_number,
      cohort_status,
      rank_status,
      run_date,
      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.cohort_status,
      new_references.rank_status,
      new_references.run_date,
      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: 440

  END insert_row;
Line: 462

      SELECT
        cohort_status,
        rank_status,
        run_date
      FROM  igs_pr_cohort_inst
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 477

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

  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_cohort_status                     IN     VARCHAR2,
    x_rank_status                       IN     VARCHAR2,
    x_run_date                          IN     DATE,
    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: 522

    x_last_updated_by            NUMBER;
Line: 523

    x_last_update_login          NUMBER;
Line: 527

    x_program_update_date        DATE;
Line: 531

    x_last_update_date := SYSDATE;
Line: 533

      x_last_updated_by := 1;
Line: 534

      x_last_update_login := 0;
Line: 536

      x_last_updated_by := fnd_global.user_id;
Line: 537

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

      x_last_update_login := fnd_global.login_id;
Line: 541

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

      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_cohort_status                     => x_cohort_status,
      x_rank_status                       => x_rank_status,
      x_run_date                          => x_run_date,
      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: 574

        x_program_update_date := old_references.program_update_date;
Line: 576

        x_program_update_date := SYSDATE;
Line: 580

    UPDATE igs_pr_cohort_inst
      SET
        cohort_status                     = new_references.cohort_status,
        rank_status                       = new_references.rank_status,
        run_date                          = new_references.run_date,
        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: 609

  END update_row;
Line: 625

  ||  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_inst
      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: 645

      insert_row (
        x_rowid,
        x_cohort_name,
        x_load_cal_type,
        x_load_ci_sequence_number,
        x_cohort_status,
        x_rank_status,
        x_run_date,
        x_mode
      );
Line: 659

    update_row (
      x_rowid,
      x_cohort_name,
      x_load_cal_type,
      x_load_ci_sequence_number,
      x_cohort_status,
      x_rank_status,
      x_run_date,
      x_mode
    );
Line: 673

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

    DELETE FROM igs_pr_cohort_inst
    WHERE rowid = x_rowid;
Line: 699

  END delete_row;