DBA Data[Home] [Help]

APPS.IGS_EN_TIMESLOT_RSLT_PKG SQL Statements

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

Line: 16

    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 : hchauhan
  ||  Created On : 08-DEC-2000
  ||  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_EN_TIMESLOT_RSLT
      WHERE    rowid = x_rowid;
Line: 39

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 61

    new_references.last_updated_by                   := x_last_updated_by;
Line: 62

    new_references.last_update_login                 := x_last_update_login;
Line: 81

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

      SELECT   rowid
      FROM     igs_en_timeslot_rslt
      WHERE    igs_en_timeslot_rslt_id = x_igs_en_timeslot_rslt_id
      FOR UPDATE NOWAIT;
Line: 128

      SELECT   rowid
      FROM     igs_en_timeslot_rslt
      WHERE   ((igs_en_timeslot_para_id = x_igs_en_timeslot_para_id));
Line: 154

    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 : hchauhan
  ||  Created On : 08-DEC-2000
  ||  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_igs_en_timeslot_rslt_id,
      x_igs_en_timeslot_para_id,
      x_person_id,
      x_start_dt_time,
      x_end_dt_time,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 183

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_igs_en_timeslot_rslt_id           IN OUT NOCOPY NUMBER,
    x_igs_en_timeslot_para_id           IN     NUMBER,
    x_person_id                         IN     NUMBER,
    x_start_dt_time                     IN     DATE,
    x_end_dt_time                       IN     DATE,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : hchauhan
  ||  Created On : 08-DEC-2000
  ||  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_en_timeslot_rslt
      WHERE    igs_en_timeslot_rslt_id           = x_igs_en_timeslot_rslt_id;
Line: 231

    x_last_update_date           DATE;
Line: 232

    x_last_updated_by            NUMBER;
Line: 233

    x_last_update_login          NUMBER;
Line: 237

    x_program_update_date        DATE;
Line: 239

    x_last_update_date := SYSDATE;
Line: 241

      x_last_updated_by := 1;
Line: 242

      x_last_update_login := 0;
Line: 244

      x_last_updated_by := fnd_global.user_id;
Line: 245

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

      x_last_update_login := fnd_global.login_id;
Line: 249

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

        x_program_update_date    := NULL;
Line: 261

        x_program_update_date    := SYSDATE;
Line: 268

     SELECT igs_en_timeslot_rslt_s.NEXTVAL INTO x_igs_en_timeslot_rslt_id FROM DUAL;
Line: 270

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_igs_en_timeslot_rslt_id           => x_igs_en_timeslot_rslt_id,
      x_igs_en_timeslot_para_id           => x_igs_en_timeslot_para_id,
      x_person_id                         => x_person_id,
      x_start_dt_time                     => x_start_dt_time,
      x_end_dt_time                       => x_end_dt_time,
      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: 283

    INSERT INTO igs_en_timeslot_rslt (
      igs_en_timeslot_rslt_id,
      igs_en_timeslot_para_id,
      person_id,
      start_dt_time,
      end_dt_time,
      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.igs_en_timeslot_rslt_id,
      new_references.igs_en_timeslot_para_id,
      new_references.person_id,
      new_references.start_dt_time,
      new_references.end_dt_time,
      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
    );
Line: 321

  END insert_row;
Line: 340

      SELECT
        igs_en_timeslot_para_id,
        person_id,
        start_dt_time,
        end_dt_time
      FROM  igs_en_timeslot_rslt
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 353

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_igs_en_timeslot_rslt_id           IN     NUMBER,
    x_igs_en_timeslot_para_id           IN     NUMBER,
    x_person_id                         IN     NUMBER,
    x_start_dt_time                     IN     DATE,
    x_end_dt_time                       IN     DATE,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : hchauhan
  ||  Created On : 08-DEC-2000
  ||  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: 394

    x_last_updated_by            NUMBER;
Line: 395

    x_last_update_login          NUMBER;
Line: 399

    x_program_update_date        DATE;
Line: 401

    x_last_update_date := SYSDATE;
Line: 403

      x_last_updated_by := 1;
Line: 404

      x_last_update_login := 0;
Line: 406

      x_last_updated_by := fnd_global.user_id;
Line: 407

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

      x_last_update_login := fnd_global.login_id;
Line: 411

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_igs_en_timeslot_rslt_id           => x_igs_en_timeslot_rslt_id,
      x_igs_en_timeslot_para_id           => x_igs_en_timeslot_para_id,
      x_person_id                         => x_person_id,
      x_start_dt_time                     => x_start_dt_time,
      x_end_dt_time                       => x_end_dt_time,
      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: 441

        x_program_update_date := old_references.program_update_date;
Line: 443

        x_program_update_date := SYSDATE;
Line: 446

    UPDATE igs_en_timeslot_rslt
      SET
        igs_en_timeslot_para_id           = new_references.igs_en_timeslot_para_id,
        person_id                         = new_references.person_id,
        start_dt_time                     = new_references.start_dt_time,
        end_dt_time                       = new_references.end_dt_time,
        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: 463

  END update_row;
Line: 476

  ||  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_en_timeslot_rslt
      WHERE    igs_en_timeslot_rslt_id           = x_igs_en_timeslot_rslt_id;
Line: 491

      insert_row (
        x_rowid,
        x_igs_en_timeslot_rslt_id,
        x_igs_en_timeslot_para_id,
        x_person_id,
        x_start_dt_time,
        x_end_dt_time,
        x_mode
      );
Line: 503

    update_row (
      x_rowid,
      x_igs_en_timeslot_rslt_id,
      x_igs_en_timeslot_para_id,
      x_person_id,
      x_start_dt_time,
      x_end_dt_time,
      x_mode
    );
Line: 513

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : hchauhan
  ||  Created On : 08-DEC-2000
  ||  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: 530

    DELETE FROM igs_en_timeslot_rslt
    WHERE rowid = x_rowid;
Line: 535

  END delete_row;