DBA Data[Home] [Help]

APPS.IGS_PS_US_UNSCHED_CL_PKG SQL Statements

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

Line: 23

    x_last_update_date                  IN     DATE        DEFAULT NULL,
    x_last_updated_by                   IN     NUMBER      DEFAULT NULL,
    x_last_update_login                 IN     NUMBER      DEFAULT NULL
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 25-MAY-2001
  ||  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_PS_US_UNSCHED_CL
      WHERE    rowid = x_rowid;
Line: 50

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 80

    new_references.last_updated_by                   := x_last_updated_by;
Line: 81

    new_references.last_update_login                 := x_last_update_login;
Line: 175

      SELECT   rowid
      FROM     hz_parties
      WHERE    party_id = new_references.instructor_id
      FOR UPDATE NOWAIT;
Line: 191

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

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

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

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

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

      SELECT   rowid
      FROM     igs_ps_us_unsched_cl
      WHERE    us_unscheduled_cl_id = x_us_unscheduled_cl_id
      FOR UPDATE NOWAIT;
Line: 302

      SELECT   rowid
      FROM     igs_ps_us_unsched_cl
      WHERE    uoo_id = x_uoo_id
      AND      activity_type_id = x_activity_type_id
      AND      location_cd = x_location_cd
      AND      building_id = x_building_id
      AND      room_id = x_room_id
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 341

      SELECT   rowid
      FROM     igs_ps_us_unsched_cl
      WHERE   ((location_cd = x_location_cd));
Line: 376

      SELECT   rowid
      FROM     igs_ps_us_unsched_cl
      WHERE   ((building_id = x_building_id));
Line: 411

      SELECT   rowid
      FROM     igs_ps_us_unsched_cl
      WHERE   ((room_id = x_room_id));
Line: 446

      SELECT   rowid
      FROM     igs_ps_us_unsched_cl
      WHERE   ((uoo_id = x_uoo_id));
Line: 481

      SELECT   rowid
      FROM     igs_ps_us_unsched_cl
      WHERE   ((instructor_id = x_party_id));
Line: 515

      SELECT   rowid
      FROM     igs_ps_us_unsched_cl
      WHERE   ((activity_type_id = x_activity_type_id));
Line: 551

    x_last_update_date                  IN     DATE        DEFAULT NULL,
    x_last_updated_by                   IN     NUMBER      DEFAULT NULL,
    x_last_update_login                 IN     NUMBER      DEFAULT NULL
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 25-MAY-2001
  ||  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_us_unscheduled_cl_id,
      x_uoo_id,
      x_activity_type_id,
      x_location_cd,
      x_building_id,
      x_room_id,
      x_number_of_students,
      x_hours_per_student,
      x_hours_per_faculty,
      x_instructor_id,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 587

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

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

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

    ELSIF (p_action = 'VALIDATE_UPDATE') THEN
      check_uniqueness;
Line: 625

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_us_unscheduled_cl_id    IN OUT NOCOPY NUMBER,
    x_uoo_id                            IN     NUMBER,
    x_activity_type_id                  IN     NUMBER,
    x_location_cd                       IN     VARCHAR2,
    x_building_id                       IN     NUMBER,
    x_room_id                           IN     NUMBER,
    x_number_of_students                IN     NUMBER,
    x_hours_per_student                 IN     NUMBER,
    x_hours_per_faculty                 IN     NUMBER,
    x_instructor_id                     IN     NUMBER,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 25-MAY-2001
  ||  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)
  */
    CURSOR c IS
      SELECT   rowid
      FROM     igs_ps_us_unsched_cl
      WHERE    us_unscheduled_cl_id    = x_us_unscheduled_cl_id;
Line: 653

    x_last_update_date           DATE;
Line: 654

    x_last_updated_by            NUMBER;
Line: 655

    x_last_update_login          NUMBER;
Line: 659

    x_last_update_date := SYSDATE;
Line: 661

      x_last_updated_by := 1;
Line: 662

      x_last_update_login := 0;
Line: 664

      x_last_updated_by := fnd_global.user_id;
Line: 665

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

      x_last_update_login := fnd_global.login_id;
Line: 669

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

    SELECT    igs_ps_us_unsched_cl_s.NEXTVAL
    INTO      x_us_unscheduled_cl_id
    FROM      dual;
Line: 683

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_us_unscheduled_cl_id    => x_us_unscheduled_cl_id,
      x_uoo_id                            => x_uoo_id,
      x_activity_type_id                  => x_activity_type_id,
      x_location_cd                       => x_location_cd,
      x_building_id                       => x_building_id,
      x_room_id                           => x_room_id,
      x_number_of_students                => x_number_of_students,
      x_hours_per_student                 => x_hours_per_student,
      x_hours_per_faculty                 => x_hours_per_faculty,
      x_instructor_id                     => x_instructor_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
    );
Line: 702

    INSERT INTO igs_ps_us_unsched_cl (
      us_unscheduled_cl_id,
      uoo_id,
      activity_type_id,
      location_cd,
      building_id,
      room_id,
      number_of_students,
      hours_per_student,
      hours_per_faculty,
      instructor_id,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.us_unscheduled_cl_id,
      new_references.uoo_id,
      new_references.activity_type_id,
      new_references.location_cd,
      new_references.building_id,
      new_references.room_id,
      new_references.number_of_students,
      new_references.hours_per_student,
      new_references.hours_per_faculty,
      new_references.instructor_id,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 744

  END insert_row;
Line: 770

      SELECT
        uoo_id,
        activity_type_id,
        location_cd,
        building_id,
        room_id,
        number_of_students,
        hours_per_student,
        hours_per_faculty,
        instructor_id
      FROM  igs_ps_us_unsched_cl
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 791

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_us_unscheduled_cl_id    IN     NUMBER,
    x_uoo_id                            IN     NUMBER,
    x_activity_type_id                  IN     NUMBER,
    x_location_cd                       IN     VARCHAR2,
    x_building_id                       IN     NUMBER,
    x_room_id                           IN     NUMBER,
    x_number_of_students                IN     NUMBER,
    x_hours_per_student                 IN     NUMBER,
    x_hours_per_faculty                 IN     NUMBER,
    x_instructor_id                     IN     NUMBER,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 25-MAY-2001
  ||  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: 846

    x_last_updated_by            NUMBER;
Line: 847

    x_last_update_login          NUMBER;
Line: 851

    x_last_update_date := SYSDATE;
Line: 853

      x_last_updated_by := 1;
Line: 854

      x_last_update_login := 0;
Line: 856

      x_last_updated_by := fnd_global.user_id;
Line: 857

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

      x_last_update_login := fnd_global.login_id;
Line: 861

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_us_unscheduled_cl_id    => x_us_unscheduled_cl_id,
      x_uoo_id                            => x_uoo_id,
      x_activity_type_id                  => x_activity_type_id,
      x_location_cd                       => x_location_cd,
      x_building_id                       => x_building_id,
      x_room_id                           => x_room_id,
      x_number_of_students                => x_number_of_students,
      x_hours_per_student                 => x_hours_per_student,
      x_hours_per_faculty                 => x_hours_per_faculty,
      x_instructor_id                     => x_instructor_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
    );
Line: 890

    UPDATE igs_ps_us_unsched_cl
      SET
        uoo_id                            = new_references.uoo_id,
        activity_type_id                  = new_references.activity_type_id,
        location_cd                       = new_references.location_cd,
        building_id                       = new_references.building_id,
        room_id                           = new_references.room_id,
        number_of_students                = new_references.number_of_students,
        hours_per_student                 = new_references.hours_per_student,
        hours_per_faculty                 = new_references.hours_per_faculty,
        instructor_id                     = new_references.instructor_id,
        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: 910

  END update_row;
Line: 930

  ||  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_ps_us_unsched_cl
      WHERE    us_unscheduled_cl_id    = x_us_unscheduled_cl_id;
Line: 948

      insert_row (
        x_rowid,
        x_us_unscheduled_cl_id,
        x_uoo_id,
        x_activity_type_id,
        x_location_cd,
        x_building_id,
        x_room_id,
        x_number_of_students,
        x_hours_per_student,
        x_hours_per_faculty,
        x_instructor_id,
        x_mode
      );
Line: 966

    update_row (
      x_rowid,
      x_us_unscheduled_cl_id,
      x_uoo_id,
      x_activity_type_id,
      x_location_cd,
      x_building_id,
      x_room_id,
      x_number_of_students,
      x_hours_per_student,
      x_hours_per_faculty,
      x_instructor_id,
      x_mode
    );
Line: 984

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 25-MAY-2001
  ||  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: 1003

    DELETE FROM igs_ps_us_unsched_cl
    WHERE rowid = x_rowid;
Line: 1010

  END delete_row;