DBA Data[Home] [Help]

APPS.IGS_FI_WAV_STD_PGMS_PKG SQL Statements

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

Line: 20

    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_std_pgms
      WHERE    rowid = x_rowid;
Line: 47

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 74

    new_references.last_updated_by                   := x_last_updated_by;
Line: 75

    new_references.last_update_login                 := x_last_update_login;
Line: 104

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

      SELECT   rowid
      FROM     igs_fi_wav_std_pgms
      WHERE    waiver_student_id = x_waiver_student_id
      FOR UPDATE NOWAIT;
Line: 162

      SELECT   rowid
      FROM     igs_fi_wav_std_pgms
      WHERE   ((fee_cal_type = x_fee_cal_type) AND
               (fee_ci_sequence_number = x_fee_ci_sequence_number) AND
               (waiver_name = x_waiver_name));
Line: 198

    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_student_id,
      x_object_version_number,
      x_fee_cal_type,
      x_fee_ci_sequence_number,
      x_waiver_name,
      x_person_id,
      x_assignment_status_code,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 231

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_waiver_student_id                 IN OUT NOCOPY NUMBER,
    x_fee_cal_type                      IN     VARCHAR2,
    x_fee_ci_sequence_number            IN     NUMBER,
    x_waiver_name                       IN     VARCHAR2,
    x_person_id                         IN     NUMBER,
    x_assignment_status_code            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: 281

    x_last_updated_by            NUMBER;
Line: 282

    x_last_update_login          NUMBER;
Line: 286

    x_last_update_date := SYSDATE;
Line: 288

      x_last_updated_by := 1;
Line: 289

      x_last_update_login := 0;
Line: 291

      x_last_updated_by := fnd_global.user_id;
Line: 292

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

      x_last_update_login := fnd_global.login_id;
Line: 296

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

      fnd_message.set_token ('ROUTINE', 'IGS_FI_WAV_STD_PGMS_PKG.INSERT_ROW');
Line: 309

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_waiver_student_id                 => x_waiver_student_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_waiver_name                       => x_waiver_name,
      x_person_id                         => x_person_id,
      x_assignment_status_code            => x_assignment_status_code,
      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: 325

    INSERT INTO igs_fi_wav_std_pgms (
      waiver_student_id,
      object_version_number,
      fee_cal_type,
      fee_ci_sequence_number,
      waiver_name,
      person_id,
      assignment_status_code,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      igs_fi_wav_std_pgms_s.NEXTVAL,
      new_references.object_version_number,
      new_references.fee_cal_type,
      new_references.fee_ci_sequence_number,
      new_references.waiver_name,
      new_references.person_id,
      new_references.assignment_status_code,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    ) RETURNING ROWID, waiver_student_id INTO x_rowid, x_waiver_student_id;
Line: 353

  END insert_row;
Line: 376

      SELECT
        object_version_number,
        fee_cal_type,
        fee_ci_sequence_number,
        waiver_name,
        person_id,
        assignment_status_code
      FROM  igs_fi_wav_std_pgms
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 394

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_waiver_student_id                 IN     NUMBER,
    x_fee_cal_type                      IN     VARCHAR2,
    x_fee_ci_sequence_number            IN     NUMBER,
    x_waiver_name                       IN     VARCHAR2,
    x_person_id                         IN     NUMBER,
    x_assignment_status_code            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: 442

    x_last_updated_by            NUMBER;
Line: 443

    x_last_update_login          NUMBER;
Line: 446

      SELECT object_version_number
      FROM   igs_fi_wav_std_pgms
      WHERE  rowid = cp_rowid
      FOR UPDATE NOWAIT;
Line: 459

    x_last_update_date := SYSDATE;
Line: 461

      x_last_updated_by := 1;
Line: 462

      x_last_update_login := 0;
Line: 464

      x_last_updated_by := fnd_global.user_id;
Line: 465

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

      x_last_update_login := fnd_global.login_id;
Line: 469

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

      fnd_message.set_token ('ROUTINE', 'IGS_FI_WAV_STD_PGMS_PKG.UPDATE_ROW');
Line: 480

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_waiver_student_id                 => x_waiver_student_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_waiver_name                       => x_waiver_name,
      x_person_id                         => x_person_id,
      x_assignment_status_code            => x_assignment_status_code,
      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: 496

    UPDATE igs_fi_wav_std_pgms
      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,
        waiver_name                       = new_references.waiver_name,
        person_id                         = new_references.person_id,
        assignment_status_code            = new_references.assignment_status_code,
        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: 513

  END update_row;
Line: 530

  ||  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_std_pgms
      WHERE    waiver_student_id                 = x_waiver_student_id;
Line: 548

      insert_row (
        x_rowid,
        x_waiver_student_id,
        x_fee_cal_type,
        x_fee_ci_sequence_number,
        x_waiver_name,
        x_person_id,
        x_assignment_status_code,
        x_mode
      );
Line: 562

    update_row (
      x_rowid,
      x_waiver_student_id,
      x_fee_cal_type,
      x_fee_ci_sequence_number,
      x_waiver_name,
      x_person_id,
      x_assignment_status_code,
      x_mode
    );