DBA Data[Home] [Help]

APPS.IGS_FI_WAV_PR_PREQS_PKG SQL Statements

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

Line: 19

    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 : 27-JUL-2005
  ||  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_fi_wav_pr_preqs
      WHERE    rowid = x_rowid;
Line: 46

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 72

    new_references.last_updated_by                   := x_last_updated_by;
Line: 73

    new_references.last_update_login                 := x_last_update_login;
Line: 102

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

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

      SELECT   rowid
      FROM     igs_fi_wav_pr_preqs
      WHERE    waiver_relation_id = x_waiver_relation_id
      FOR UPDATE NOWAIT;
Line: 177

      SELECT   rowid
      FROM     igs_fi_wav_pr_preqs
      WHERE   ((fee_cal_type = x_fee_cal_type) AND
               (fee_ci_sequence_number = x_fee_ci_sequence_number) AND
               (sub_waiver_name = x_waiver_name))
      OR      ((fee_cal_type = x_fee_cal_type) AND
               (fee_ci_sequence_number = x_fee_ci_sequence_number) AND
               (sup_waiver_name = x_waiver_name));
Line: 215

    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 : 27-JUL-2005
  ||  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_waiver_relation_id,
      x_object_version_number,
      x_fee_cal_type,
      x_fee_ci_sequence_number,
      x_sup_waiver_name,
      x_sub_waiver_name,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 247

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_waiver_relation_id                IN OUT NOCOPY NUMBER,
    x_fee_cal_type                      IN     VARCHAR2,
    x_fee_ci_sequence_number            IN     NUMBER,
    x_sup_waiver_name                   IN     VARCHAR2,
    x_sub_waiver_name                   IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 27-JUL-2005
  ||  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: 296

    x_last_updated_by            NUMBER;
Line: 297

    x_last_update_login          NUMBER;
Line: 301

    x_last_update_date := SYSDATE;
Line: 303

      x_last_updated_by := 1;
Line: 304

      x_last_update_login := 0;
Line: 306

      x_last_updated_by := fnd_global.user_id;
Line: 307

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

      x_last_update_login := fnd_global.login_id;
Line: 311

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

      fnd_message.set_token ('ROUTINE', 'IGS_FI_WAV_PR_PREQS_PKG.INSERT_ROW');
Line: 324

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_waiver_relation_id                => x_waiver_relation_id,
      x_object_version_number             => 1,
      x_fee_cal_type                      => x_fee_cal_type,
      x_fee_ci_sequence_number            => x_fee_ci_sequence_number,
      x_sup_waiver_name                   => x_sup_waiver_name,
      x_sub_waiver_name                   => x_sub_waiver_name,
      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: 339

    INSERT INTO igs_fi_wav_pr_preqs (
      waiver_relation_id,
      object_version_number,
      fee_cal_type,
      fee_ci_sequence_number,
      sup_waiver_name,
      sub_waiver_name,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      igs_fi_wav_pr_preqs_s.NEXTVAL,
      new_references.object_version_number,
      new_references.fee_cal_type,
      new_references.fee_ci_sequence_number,
      new_references.sup_waiver_name,
      new_references.sub_waiver_name,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    ) RETURNING ROWID, waiver_relation_id INTO x_rowid, x_waiver_relation_id;
Line: 365

  END insert_row;
Line: 387

      SELECT
        object_version_number,
        fee_cal_type,
        fee_ci_sequence_number,
        sup_waiver_name,
        sub_waiver_name
      FROM  igs_fi_wav_pr_preqs
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 404

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_waiver_relation_id                IN     NUMBER,
    x_fee_cal_type                      IN     VARCHAR2,
    x_fee_ci_sequence_number            IN     NUMBER,
    x_sup_waiver_name                   IN     VARCHAR2,
    x_sub_waiver_name                   IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 27-JUL-2005
  ||  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: 450

    x_last_updated_by            NUMBER;
Line: 451

    x_last_update_login          NUMBER;
Line: 454

      SELECT object_version_number
      FROM   igs_fi_wav_pr_preqs
      WHERE  rowid = cp_rowid
      FOR UPDATE NOWAIT;
Line: 467

    x_last_update_date := SYSDATE;
Line: 469

      x_last_updated_by := 1;
Line: 470

      x_last_update_login := 0;
Line: 472

      x_last_updated_by := fnd_global.user_id;
Line: 473

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

      x_last_update_login := fnd_global.login_id;
Line: 477

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

      fnd_message.set_token ('ROUTINE', 'IGS_FI_WAV_PR_PREQS_PKG.UPDATE_ROW');
Line: 488

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_waiver_relation_id                => x_waiver_relation_id,
      x_object_version_number             => l_n_object_version_number,
      x_fee_cal_type                      => x_fee_cal_type,
      x_fee_ci_sequence_number            => x_fee_ci_sequence_number,
      x_sup_waiver_name                   => x_sup_waiver_name,
      x_sub_waiver_name                   => x_sub_waiver_name,
      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: 503

    UPDATE igs_fi_wav_pr_preqs
      SET
        object_version_number             = l_n_object_version_number + 1 ,
        fee_cal_type                      = new_references.fee_cal_type,
        fee_ci_sequence_number            = new_references.fee_ci_sequence_number,
        sup_waiver_name                   = new_references.sup_waiver_name,
        sub_waiver_name                   = new_references.sub_waiver_name,
        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: 519

  END update_row;
Line: 535

  ||  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_fi_wav_pr_preqs
      WHERE    waiver_relation_id                = x_waiver_relation_id;
Line: 553

      insert_row (
        x_rowid,
        x_waiver_relation_id,
        x_fee_cal_type,
        x_fee_ci_sequence_number,
        x_sup_waiver_name,
        x_sub_waiver_name,
        x_mode
      );
Line: 566

    update_row (
      x_rowid,
      x_waiver_relation_id,
      x_fee_cal_type,
      x_fee_ci_sequence_number,
      x_sup_waiver_name,
      x_sub_waiver_name,
      x_mode
    );