DBA Data[Home] [Help]

APPS.IGF_AW_DP_TEACH_PRDS_PKG SQL Statements

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

Line: 21

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : veramach
  ||  Created On : 31-OCT-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     igf_aw_dp_teach_prds
      WHERE    rowid = x_rowid;
Line: 48

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 76

    new_references.last_updated_by                   := x_last_updated_by;
Line: 77

    new_references.last_update_login                 := x_last_update_login;
Line: 100

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

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

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

      SELECT   rowid
      FROM     igf_aw_dp_teach_prds
      WHERE    adteach_id = x_adteach_id
      FOR UPDATE NOWAIT;
Line: 207

      SELECT   rowid
      FROM     igf_aw_dp_teach_prds
      WHERE   ((adterms_id = x_adterms_id));
Line: 242

      SELECT   rowid
      FROM     igf_aw_dp_teach_prds
      WHERE   ((tp_cal_type = x_cal_type) AND
               (tp_sequence_number = x_sequence_number));
Line: 277

      SELECT   rowid
      FROM     igf_aw_dp_teach_prds
      WHERE   ((date_offset_cd = x_dt_alias));
Line: 319

    SELECT   rowid
    FROM     igf_aw_dp_teach_prds
    WHERE    adterms_id          = x_adterms_id
    AND      tp_cal_type         = x_tp_cal_type
    AND      tp_sequence_number  = x_tp_sequence_number
    AND      NVL(date_offset_cd,'*') = NVL(x_date_offset_cd,'*')
    AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 356

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : veramach
  ||  Created On : 31-OCT-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_adteach_id,
      x_adterms_id,
      x_tp_cal_type,
      x_tp_sequence_number,
      x_tp_perct_num,
      x_date_offset_cd,
      x_attendance_type_code,
      x_credit_points_num,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 390

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_adteach_id                        IN OUT NOCOPY NUMBER,
    x_adterms_id                        IN     NUMBER,
    x_tp_cal_type                       IN     VARCHAR2,
    x_tp_sequence_number                IN     NUMBER,
    x_tp_perct_num                      IN     NUMBER,
    x_date_offset_cd                    IN     VARCHAR2,
    x_attendance_type_code              IN     VARCHAR2,
    x_credit_points_num                 IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : veramach
  ||  Created On : 31-OCT-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: 445

    x_last_updated_by            NUMBER;
Line: 446

    x_last_update_login          NUMBER;
Line: 450

    x_last_update_date := SYSDATE;
Line: 452

      x_last_updated_by := 1;
Line: 453

      x_last_update_login := 0;
Line: 455

      x_last_updated_by := fnd_global.user_id;
Line: 456

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

      x_last_update_login := fnd_global.login_id;
Line: 460

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

      fnd_message.set_token ('ROUTINE', 'IGF_AW_DP_TEACH_PRDS_PKG.INSERT_ROW');
Line: 473

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_adteach_id                        => x_adteach_id,
      x_adterms_id                        => x_adterms_id,
      x_tp_cal_type                       => x_tp_cal_type,
      x_tp_sequence_number                => x_tp_sequence_number,
      x_tp_perct_num                      => x_tp_perct_num,
      x_date_offset_cd                    => x_date_offset_cd,
      x_attendance_type_code              => x_attendance_type_code,
      x_credit_points_num                 => x_credit_points_num,
      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: 490

    INSERT INTO igf_aw_dp_teach_prds (
      adteach_id,
      adterms_id,
      tp_cal_type,
      tp_sequence_number,
      tp_perct_num,
      date_offset_cd,
      attendance_type_code,
      credit_points_num,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      igf_aw_dp_teach_prds_s.NEXTVAL,
      new_references.adterms_id,
      new_references.tp_cal_type,
      new_references.tp_sequence_number,
      new_references.tp_perct_num,
      new_references.date_offset_cd,
      new_references.attendance_type_code,
      new_references.credit_points_num,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    ) RETURNING ROWID, adteach_id INTO x_rowid, x_adteach_id;
Line: 520

  END insert_row;
Line: 544

      SELECT
        adterms_id,
        tp_cal_type,
        tp_sequence_number,
        tp_perct_num,
        date_offset_cd,
        attendance_type_code,
        credit_points_num
      FROM  igf_aw_dp_teach_prds
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 563

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_adteach_id                        IN     NUMBER,
    x_adterms_id                        IN     NUMBER,
    x_tp_cal_type                       IN     VARCHAR2,
    x_tp_sequence_number                IN     NUMBER,
    x_tp_perct_num                      IN     NUMBER,
    x_date_offset_cd                    IN     VARCHAR2,
    x_attendance_type_code              IN     VARCHAR2,
    x_credit_points_num                 IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : veramach
  ||  Created On : 31-OCT-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: 614

    x_last_updated_by            NUMBER;
Line: 615

    x_last_update_login          NUMBER;
Line: 619

    x_last_update_date := SYSDATE;
Line: 621

      x_last_updated_by := 1;
Line: 622

      x_last_update_login := 0;
Line: 624

      x_last_updated_by := fnd_global.user_id;
Line: 625

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

      x_last_update_login := fnd_global.login_id;
Line: 629

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

      fnd_message.set_token ('ROUTINE', 'IGF_AW_DP_TEACH_PRDS_PKG.UPDATE_ROW');
Line: 640

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_adteach_id                        => x_adteach_id,
      x_adterms_id                        => x_adterms_id,
      x_tp_cal_type                       => x_tp_cal_type,
      x_tp_sequence_number                => x_tp_sequence_number,
      x_tp_perct_num                      => x_tp_perct_num,
      x_date_offset_cd                    => x_date_offset_cd,
      x_attendance_type_code              => x_attendance_type_code,
      x_credit_points_num                 => x_credit_points_num,
      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: 657

    UPDATE igf_aw_dp_teach_prds
      SET
        adterms_id                        = new_references.adterms_id,
        tp_cal_type                       = new_references.tp_cal_type,
        tp_sequence_number                = new_references.tp_sequence_number,
        tp_perct_num                      = new_references.tp_perct_num,
        date_offset_cd                    = new_references.date_offset_cd,
        attendance_type_code              = new_references.attendance_type_code,
        credit_points_num                 = new_references.credit_points_num,
        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: 675

  END update_row;
Line: 693

  ||  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     igf_aw_dp_teach_prds
      WHERE    adteach_id                        = x_adteach_id;
Line: 711

      insert_row (
        x_rowid,
        x_adteach_id,
        x_adterms_id,
        x_tp_cal_type,
        x_tp_sequence_number,
        x_tp_perct_num,
        x_date_offset_cd,
        x_attendance_type_code,
        x_credit_points_num,
        x_mode
      );
Line: 727

    update_row (
      x_rowid,
      x_adteach_id,
      x_adterms_id,
      x_tp_cal_type,
      x_tp_sequence_number,
      x_tp_perct_num,
      x_date_offset_cd,
      x_attendance_type_code,
      x_credit_points_num,
      x_mode
    );
Line: 743

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : veramach
  ||  Created On : 31-OCT-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: 762

    DELETE FROM igf_aw_dp_teach_prds
    WHERE rowid = x_rowid;
Line: 769

  END delete_row;