DBA Data[Home] [Help]

APPS.IGF_SL_DISB_LOC_HISTORY_PKG SQL Statements

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

Line: 25

    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 : 04-NOV-2004
  ||  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     igf_sl_disb_loc_history
      WHERE    rowid = x_rowid;
Line: 52

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 83

    new_references.last_updated_by                   := x_last_updated_by;
Line: 84

    new_references.last_update_login                 := x_last_update_login;
Line: 106

    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 : 04-NOV-2004
  ||  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_lodisbh_id,
      x_award_id,
      x_disbursement_number,
      x_disbursement_gross_amt,
      x_origination_fee_amt,
      x_guarantee_fee_amt,
      x_origination_fee_paid_amt,
      x_guarantee_fee_paid_amt,
      x_disbursement_date,
      x_disbursement_hold_rel_ind,
      x_disbursement_net_amt,
      x_source_txt,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 144

    IF (p_action = 'INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation( new_references.lodisbh_id

           )
         ) THEN
        fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
Line: 154

    ELSIF (p_action = 'VALIDATE_INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation ( new_references.lodisbh_id

           )
         ) THEN
        fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
Line: 169

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_lodisbh_id                        IN OUT NOCOPY NUMBER,
    x_award_id                          IN     NUMBER,
    x_disbursement_number               IN     NUMBER,
    x_disbursement_gross_amt            IN     NUMBER,
    x_origination_fee_amt               IN     NUMBER,
    x_guarantee_fee_amt                 IN     NUMBER,
    x_origination_fee_paid_amt          IN     NUMBER,
    x_guarantee_fee_paid_amt            IN     NUMBER,
    x_disbursement_date                 IN     DATE,
    x_disbursement_hold_rel_ind         IN     VARCHAR2,
    x_disbursement_net_amt              IN     NUMBER,
    X_source_txt                        IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 04-NOV-2004
  ||  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: 196

    x_last_updated_by            NUMBER;
Line: 197

    x_last_update_login          NUMBER;
Line: 201

    x_program_update_date        DATE;
Line: 205

    x_last_update_date := SYSDATE;
Line: 207

      x_last_updated_by := 1;
Line: 208

      x_last_update_login := 0;
Line: 210

      x_last_updated_by := fnd_global.user_id;
Line: 211

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

      x_last_update_login := fnd_global.login_id;
Line: 215

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

        x_program_update_date    := NULL;
Line: 228

        x_program_update_date    := SYSDATE;
Line: 232

      fnd_message.set_token ('ROUTINE', 'igf_sl_disb_loc_history_PKG.INSERT_ROW');
Line: 240

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_lodisbh_id                        => x_lodisbh_id,
      x_award_id                          => x_award_id,
      x_disbursement_number               => x_disbursement_number,
      x_disbursement_gross_amt            => x_disbursement_gross_amt,
      x_origination_fee_amt               => x_origination_fee_amt,
      x_guarantee_fee_amt                 => x_guarantee_fee_amt,
      x_origination_fee_paid_amt          => x_origination_fee_paid_amt,
      x_guarantee_fee_paid_amt            => x_guarantee_fee_paid_amt,
      x_disbursement_date                 => x_disbursement_date,
      x_disbursement_hold_rel_ind         => x_disbursement_hold_rel_ind,
      x_disbursement_net_amt              => x_disbursement_net_amt,
      x_source_txt                        => X_source_txt,
      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: 261

    INSERT INTO igf_sl_disb_loc_history (
      lodisbh_id,
      award_id,
      disbursement_number,
      disbursement_gross_amt,
      origination_fee_amt,
      guarantee_fee_amt,
      origination_fee_paid_amt,
      guarantee_fee_paid_amt,
      disbursement_date,
      disbursement_hold_rel_ind,
      disbursement_net_amt,
      source_txt,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      request_id,
      program_id,
      program_application_id,
      program_update_date
    ) VALUES (
      igf_sl_disb_loc_history_s.NEXTVAL,
      new_references.award_id,
      new_references.disbursement_number,
      new_references.disbursement_gross_amt,
      new_references.origination_fee_amt,
      new_references.guarantee_fee_amt,
      new_references.origination_fee_paid_amt,
      new_references.guarantee_fee_paid_amt,
      new_references.disbursement_date,
      new_references.disbursement_hold_rel_ind,
      new_references.disbursement_net_amt,
      new_references.source_txt,
      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
    ) RETURNING ROWID, lodisbh_id INTO x_rowid, x_lodisbh_id;
Line: 307

  END insert_row;
Line: 322

      SELECT   rowid
      FROM     igf_sl_disb_loc_history
      WHERE    lodisbh_id = x_lodisbh_id
      FOR UPDATE NOWAIT;
Line: 369

      SELECT
        lodisbh_id,
        award_id,
        disbursement_number,
        disbursement_gross_amt,
        origination_fee_amt,
        guarantee_fee_amt,
        origination_fee_paid_amt,
        guarantee_fee_paid_amt,
        disbursement_date,
        disbursement_hold_rel_ind,
        disbursement_net_amt,
        source_txt
      FROM  igf_sl_disb_loc_history
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 393

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_lodisbh_id                        IN     NUMBER,
    x_award_id                          IN     NUMBER,
    x_disbursement_number               IN     NUMBER,
    x_disbursement_gross_amt            IN     NUMBER,
    x_origination_fee_amt               IN     NUMBER,
    x_guarantee_fee_amt                 IN     NUMBER,
    x_origination_fee_paid_amt          IN     NUMBER,
    x_guarantee_fee_paid_amt            IN     NUMBER,
    x_disbursement_date                 IN     DATE,
    x_disbursement_hold_rel_ind         IN     VARCHAR2,
    x_disbursement_net_amt              IN     NUMBER,
    x_source_txt                        IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 04-NOV-2004
  ||  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: 453

    x_last_updated_by            NUMBER;
Line: 454

    x_last_update_login          NUMBER;
Line: 458

    x_program_update_date        DATE;
Line: 462

    x_last_update_date := SYSDATE;
Line: 464

      x_last_updated_by := 1;
Line: 465

      x_last_update_login := 0;
Line: 467

      x_last_updated_by := fnd_global.user_id;
Line: 468

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

      x_last_update_login := fnd_global.login_id;
Line: 472

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

      fnd_message.set_token ('ROUTINE', 'igf_sl_disb_loc_history_PKG.UPDATE_ROW');
Line: 483

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_lodisbh_id                        => x_lodisbh_id,
      x_award_id                          => x_award_id,
      x_disbursement_number               => x_disbursement_number,
      x_disbursement_gross_amt            => x_disbursement_gross_amt,
      x_origination_fee_amt               => x_origination_fee_amt,
      x_guarantee_fee_amt                 => x_guarantee_fee_amt,
      x_origination_fee_paid_amt          => x_origination_fee_paid_amt,
      x_guarantee_fee_paid_amt            => x_guarantee_fee_paid_amt,
      x_disbursement_date                 => x_disbursement_date,
      x_disbursement_hold_rel_ind         => x_disbursement_hold_rel_ind,
      x_disbursement_net_amt              => x_disbursement_net_amt,
      x_source_txt                        => x_source_txt,
      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: 512

        x_program_update_date := old_references.program_update_date;
Line: 514

        x_program_update_date := SYSDATE;
Line: 518

    UPDATE igf_sl_disb_loc_history
      SET
        lodisbh_id                        = new_references.lodisbh_id,
        award_id                          = new_references.award_id,
        disbursement_number               = new_references.disbursement_number,
        disbursement_gross_amt            = new_references.disbursement_gross_amt,
        origination_fee_amt               = new_references.origination_fee_amt,
        guarantee_fee_amt                 = new_references.guarantee_fee_amt,
        origination_fee_paid_amt          = new_references.origination_fee_paid_amt,
        guarantee_fee_paid_amt            = new_references.guarantee_fee_paid_amt,
        disbursement_date                 = new_references.disbursement_date,
        disbursement_hold_rel_ind         = new_references.disbursement_hold_rel_ind,
        disbursement_net_amt              = new_references.disbursement_net_amt,
        source_txt                        = new_references.source_txt,
        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: 545

  END update_row;
Line: 567

  ||  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     igf_sl_disb_loc_history
      WHERE  lodisbh_id = x_lodisbh_id  ;
Line: 585

      insert_row (
        x_rowid,
        x_lodisbh_id,
        x_award_id,
        x_disbursement_number,
        x_disbursement_gross_amt,
        x_origination_fee_amt,
        x_guarantee_fee_amt,
        x_origination_fee_paid_amt,
        x_guarantee_fee_paid_amt,
        x_disbursement_date,
        x_disbursement_hold_rel_ind,
        x_disbursement_net_amt,
        x_source_txt,
        x_mode
      );
Line: 605

    update_row (
      x_rowid,
      x_lodisbh_id,
      x_award_id,
      x_disbursement_number,
      x_disbursement_gross_amt,
      x_origination_fee_amt,
      x_guarantee_fee_amt,
      x_origination_fee_paid_amt,
      x_guarantee_fee_paid_amt,
      x_disbursement_date,
      x_disbursement_hold_rel_ind,
      x_disbursement_net_amt,
      x_source_txt,
      x_mode
    );
Line: 625

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

    DELETE FROM igf_sl_disb_loc_history
    WHERE rowid = x_rowid;
Line: 651

  END delete_row;