DBA Data[Home] [Help]

APPS.IGS_EN_ELGB_OVR_STEP_PKG SQL Statements

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

Line: 18

    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 : 29-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_STEP
      WHERE    rowid = x_rowid;
Line: 45

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 70

    new_references.last_updated_by                   := x_last_updated_by;
Line: 71

    new_references.last_update_login                 := x_last_update_login;
Line: 119

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

      SELECT   rowid
      FROM     igs_en_elgb_ovr_step
      WHERE    elgb_ovr_step_id = x_elgb_ovr_step_id
      FOR UPDATE NOWAIT;
Line: 184

      SELECT   rowid
      FROM     igs_en_elgb_ovr_step
      WHERE    step_override_type = x_step_override_type
      AND      elgb_override_id = x_elgb_override_id
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 220

      SELECT   rowid
      FROM     igs_en_elgb_ovr_step
      WHERE   ((elgb_override_id = x_elgb_override_id));
Line: 252

    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 : 29-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_ovr_step_id,
      x_elgb_override_id,
      x_step_override_type,
      x_step_override_dt,
      x_step_override_limit,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 283

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

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

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

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

    ELSIF (p_action = 'DELETE') THEN
      Check_Child_Existance;
Line: 316

    ELSIF (p_action = 'VALIDATE_DELETE') THEN
      Check_Child_Existance;
Line: 323

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_elgb_ovr_step_id                  IN OUT NOCOPY NUMBER,
    x_elgb_override_id                  IN     NUMBER,
    x_step_override_type                IN     VARCHAR2,
    x_step_override_dt                  IN     DATE,
    x_step_override_limit               IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 29-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_step
      WHERE    elgb_ovr_step_id                  = x_elgb_ovr_step_id;
Line: 346

    x_last_update_date           DATE;
Line: 347

    x_last_updated_by            NUMBER;
Line: 348

    x_last_update_login          NUMBER;
Line: 352

    x_program_update_date        DATE;
Line: 356

    x_last_update_date := SYSDATE;
Line: 358

      x_last_updated_by := 1;
Line: 359

      x_last_update_login := 0;
Line: 361

      x_last_updated_by := fnd_global.user_id;
Line: 362

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

      x_last_update_login := fnd_global.login_id;
Line: 366

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

        x_program_update_date    := NULL;
Line: 379

        x_program_update_date    := SYSDATE;
Line: 387

    SELECT    igs_en_elgb_ovr_step_s.NEXTVAL
    INTO      x_elgb_ovr_step_id
    FROM      dual;
Line: 392

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_elgb_ovr_step_id                  => x_elgb_ovr_step_id,
      x_elgb_override_id                  => x_elgb_override_id,
      x_step_override_type                => x_step_override_type,
      x_step_override_dt                  => x_step_override_dt,
      x_step_override_limit               => x_step_override_limit,
      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_en_elgb_ovr_step (
      elgb_ovr_step_id,
      elgb_override_id,
      step_override_type,
      step_override_dt,
      step_override_limit,
      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_ovr_step_id,
      new_references.elgb_override_id,
      new_references.step_override_type,
      new_references.step_override_dt,
      new_references.step_override_limit,
      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: 446

  END insert_row;
Line: 467

      SELECT
        elgb_override_id,
        step_override_type,
        step_override_dt,
        step_override_limit
      FROM  igs_en_elgb_ovr_step
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 483

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_elgb_ovr_step_id                  IN     NUMBER,
    x_elgb_override_id                  IN     NUMBER,
    x_step_override_type                IN     VARCHAR2,
    x_step_override_dt                  IN     DATE,
    x_step_override_limit               IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 29-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: 529

    x_last_updated_by            NUMBER;
Line: 530

    x_last_update_login          NUMBER;
Line: 534

    x_program_update_date        DATE;
Line: 538

    x_last_update_date := SYSDATE;
Line: 540

      x_last_updated_by := 1;
Line: 541

      x_last_update_login := 0;
Line: 543

      x_last_updated_by := fnd_global.user_id;
Line: 544

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

      x_last_update_login := fnd_global.login_id;
Line: 548

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_elgb_ovr_step_id                  => x_elgb_ovr_step_id,
      x_elgb_override_id                  => x_elgb_override_id,
      x_step_override_type                => x_step_override_type,
      x_step_override_dt                  => x_step_override_dt,
      x_step_override_limit               => x_step_override_limit,
      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: 580

        x_program_update_date := old_references.program_update_date;
Line: 582

        x_program_update_date := SYSDATE;
Line: 586

    UPDATE igs_en_elgb_ovr_step
      SET
        elgb_override_id                  = new_references.elgb_override_id,
        step_override_type                = new_references.step_override_type,
        step_override_dt                  = new_references.step_override_dt,
        step_override_limit               = new_references.step_override_limit,
        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: 605

  END update_row;
Line: 619

  ||  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_step
      WHERE    elgb_ovr_step_id                  = x_elgb_ovr_step_id;
Line: 637

      insert_row (
        x_rowid,
        x_elgb_ovr_step_id,
        x_elgb_override_id,
        x_step_override_type,
        x_step_override_dt,
        x_step_override_limit,
        x_mode
      );
Line: 650

    update_row (
      x_rowid,
      x_elgb_ovr_step_id,
      x_elgb_override_id,
      x_step_override_type,
      x_step_override_dt,
      x_step_override_limit,
      x_mode
    );
Line: 663

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

    DELETE FROM igs_en_elgb_ovr_step
    WHERE rowid = x_rowid;
Line: 689

  END delete_row;