DBA Data[Home] [Help]

APPS.IGS_EN_ELGB_OVR_PKG SQL Statements

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

Line: 17

    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 : 25-JUN-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_EN_ELGB_OVR_ALL
      WHERE    rowid = x_rowid;
Line: 44

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 68

    new_references.last_updated_by                   := x_last_updated_by;
Line: 69

    new_references.last_update_login                 := x_last_update_login;
Line: 122

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

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

      SELECT   rowid
      FROM     igs_en_elgb_ovr_all
      WHERE    elgb_override_id = x_elgb_override_id
      FOR UPDATE NOWAIT;
Line: 209

      SELECT   rowid
      FROM     igs_en_elgb_ovr
      WHERE    person_id = x_person_id
      AND      cal_type = x_cal_type
      AND      ci_sequence_number = x_ci_sequence_number
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 247

      SELECT   rowid
      FROM     igs_en_elgb_ovr_all
      WHERE   ((cal_type = x_cal_type) AND
               (ci_sequence_number = x_sequence_number));
Line: 282

      SELECT   rowid
      FROM     igs_en_elgb_ovr_all
      WHERE   ((person_id = x_person_id));
Line: 313

    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 : 25-JUN-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_elgb_override_id,
      x_person_id,
      x_cal_type,
      x_ci_sequence_number,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 343

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

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

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_elgb_override_id                  IN OUT NOCOPY NUMBER,
    x_person_id                         IN     NUMBER,
    x_cal_type                          IN     VARCHAR2,
    x_ci_sequence_number                IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 25-JUN-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_en_elgb_ovr_all
      WHERE    elgb_override_id                  = x_elgb_override_id;
Line: 404

    x_last_update_date           DATE;
Line: 405

    x_last_updated_by            NUMBER;
Line: 406

    x_last_update_login          NUMBER;
Line: 410

    x_program_update_date        DATE;
Line: 414

    x_last_update_date := SYSDATE;
Line: 416

      x_last_updated_by := 1;
Line: 417

      x_last_update_login := 0;
Line: 419

      x_last_updated_by := fnd_global.user_id;
Line: 420

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

      x_last_update_login := fnd_global.login_id;
Line: 424

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

        x_program_update_date    := NULL;
Line: 437

        x_program_update_date    := SYSDATE;
Line: 445

    SELECT    igs_en_elgb_ovr_s.NEXTVAL
    INTO      x_elgb_override_id
    FROM      dual;
Line: 452

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_elgb_override_id                  => x_elgb_override_id,
      x_person_id                         => x_person_id,
      x_cal_type                          => x_cal_type,
      x_ci_sequence_number                => x_ci_sequence_number,
      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: 465

    INSERT INTO igs_en_elgb_ovr_all (
      elgb_override_id,
      person_id,
      cal_type,
      ci_sequence_number,
      org_id,
      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.elgb_override_id,
      new_references.person_id,
      new_references.cal_type,
      new_references.ci_sequence_number,
      new_references.org_id,
      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: 505

  END insert_row;
Line: 525

      SELECT
        person_id,
        cal_type,
        ci_sequence_number
      FROM  igs_en_elgb_ovr_all
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 540

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_elgb_override_id                  IN     NUMBER,
    x_person_id                         IN     NUMBER,
    x_cal_type                          IN     VARCHAR2,
    x_ci_sequence_number                IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 25-JUN-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: 583

    x_last_updated_by            NUMBER;
Line: 584

    x_last_update_login          NUMBER;
Line: 588

    x_program_update_date        DATE;
Line: 592

    x_last_update_date := SYSDATE;
Line: 594

      x_last_updated_by := 1;
Line: 595

      x_last_update_login := 0;
Line: 597

      x_last_updated_by := fnd_global.user_id;
Line: 598

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

      x_last_update_login := fnd_global.login_id;
Line: 602

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_elgb_override_id                  => x_elgb_override_id,
      x_person_id                         => x_person_id,
      x_cal_type                          => x_cal_type,
      x_ci_sequence_number                => x_ci_sequence_number,
      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: 633

        x_program_update_date := old_references.program_update_date;
Line: 635

        x_program_update_date := SYSDATE;
Line: 639

    UPDATE igs_en_elgb_ovr_all
      SET
        person_id                         = new_references.person_id,
        cal_type                          = new_references.cal_type,
        ci_sequence_number                = new_references.ci_sequence_number,
        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: 657

  END update_row;
Line: 671

  ||  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_elgb_ovr_all
      WHERE    elgb_override_id                  = x_elgb_override_id;
Line: 689

      insert_row (
        x_rowid,
        x_elgb_override_id,
        x_person_id,
        x_cal_type,
        x_ci_sequence_number,
        x_mode
      );
Line: 701

    update_row (
      x_rowid,
      x_elgb_override_id,
      x_person_id,
      x_cal_type,
      x_ci_sequence_number,
      x_mode
    );
Line: 713

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

    DELETE FROM igs_en_elgb_ovr_all
    WHERE rowid = x_rowid;
Line: 739

  END delete_row;