DBA Data[Home] [Help]

APPS.IGF_SL_DL_LOR_CRRESP_PKG SQL Statements

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

Line: 19

    x_last_update_date                  IN     DATE        DEFAULT NULL,
    x_last_updated_by                   IN     NUMBER      DEFAULT NULL,
    x_last_update_login                 IN     NUMBER      DEFAULT NULL,
    x_endorser_amount                   IN     NUMBER      DEFAULT NULL,
    x_mpn_status                        IN     VARCHAR2    DEFAULT NULL,
    x_mpn_id                            IN     VARCHAR2    DEFAULT NULL,
    x_mpn_type                          IN     VARCHAR2    DEFAULT NULL,
    x_mpn_indicator                     IN     VARCHAR2    DEFAULT NULL

  ) AS
  /*
  ||  Created By : venagara
  ||  Created On : 02-NOV-2000
  ||  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_dl_lor_crresp_all
      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: 107

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

      SELECT   rowid
      FROM     igf_sl_dl_lor_crresp_all
      WHERE    lor_resp_num = x_lor_resp_num
      FOR UPDATE NOWAIT;
Line: 163

      SELECT   rowid
      FROM     igf_sl_dl_lor_crresp_all
      WHERE   ((dbth_id = x_dbth_id));
Line: 196

    x_last_update_date                  IN     DATE        DEFAULT NULL,
    x_last_updated_by                   IN     NUMBER      DEFAULT NULL,
    x_last_update_login                 IN     NUMBER      DEFAULT NULL,
    x_endorser_amount                   IN     NUMBER      DEFAULT NULL,
    x_mpn_status                        IN     VARCHAR2    DEFAULT NULL,
    x_mpn_id                            IN     VARCHAR2    DEFAULT NULL,
    x_mpn_type                          IN     VARCHAR2    DEFAULT NULL,
    x_mpn_indicator                     IN     VARCHAR2    DEFAULT NULL
  ) AS
  /*
  ||  Created By : venagara
  ||  Created On : 02-NOV-2000
  ||  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_lor_resp_num,
      x_dbth_id,
      x_loan_number,
      x_credit_override,
      x_credit_decision_date,
      x_status,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      x_endorser_amount,
      x_mpn_status,
      x_mpn_id,
      x_mpn_type,
      x_mpn_indicator
    );
Line: 238

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_lor_resp_num                      IN OUT NOCOPY NUMBER,
    x_dbth_id                           IN     NUMBER,
    x_loan_number                       IN     VARCHAR2,
    x_credit_override                   IN     VARCHAR2,
    x_credit_decision_date              IN     DATE,
    x_status                            IN     VARCHAR2,
    x_endorser_amount                   IN     NUMBER      DEFAULT NULL,
    x_mpn_status                        IN     VARCHAR2    DEFAULT NULL,
    x_mpn_id                            IN     VARCHAR2    DEFAULT NULL,
    x_mpn_type                          IN     VARCHAR2    DEFAULT NULL,
    x_mpn_indicator                     IN     VARCHAR2    DEFAULT NULL,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : venagara
  ||  Created On : 02-NOV-2000
  ||  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     igf_sl_dl_lor_crresp_all
      WHERE    lor_resp_num                      = x_lor_resp_num;
Line: 296

    x_last_update_date           DATE;
Line: 297

    x_last_updated_by            NUMBER;
Line: 298

    x_last_update_login          NUMBER;
Line: 302

    x_program_update_date        DATE;
Line: 307

    x_last_update_date := SYSDATE;
Line: 309

      x_last_updated_by := 1;
Line: 310

      x_last_update_login := 0;
Line: 312

      x_last_updated_by := fnd_global.user_id;
Line: 313

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

      x_last_update_login := fnd_global.login_id;
Line: 317

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

        x_program_update_date    := NULL;
Line: 330

        x_program_update_date    := SYSDATE;
Line: 338

    SELECT igf_sl_dl_lor_crresp_s.NEXTVAL
    INTO   x_lor_resp_num
    FROM   dual;
Line: 343

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_lor_resp_num                      => x_lor_resp_num,
      x_dbth_id                           => x_dbth_id,
      x_loan_number                       => x_loan_number,
      x_credit_override                   => x_credit_override,
      x_credit_decision_date              => x_credit_decision_date,
      x_status                            => x_status,
      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,
      x_endorser_amount                   => x_endorser_amount,
      x_mpn_status                        => x_mpn_status,
      x_mpn_id                            => x_mpn_id,
      x_mpn_type                          => x_mpn_type,
      x_mpn_indicator                     => x_mpn_indicator
    );
Line: 363

    INSERT INTO igf_sl_dl_lor_crresp_all (
      lor_resp_num,
      dbth_id,
      loan_number,
      credit_override,
      credit_decision_date,
      status,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      request_id,
      program_id,
      program_application_id,
      program_update_date,
      org_id,
      endorser_amount,
      mpn_status,
      mpn_id,
      mpn_type,
      mpn_indicator
    ) VALUES (
      new_references.lor_resp_num,
      new_references.dbth_id,
      new_references.loan_number,
      new_references.credit_override,
      new_references.credit_decision_date,
      new_references.status,
      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,
      l_org_id,
      new_references.endorser_amount,
      new_references.mpn_status,
      new_references.mpn_id,
      new_references.mpn_type,
      new_references.mpn_indicator
    );
Line: 417

  END insert_row;
Line: 445

      SELECT
        dbth_id,
        loan_number,
        credit_override,
        credit_decision_date,
        status,
        org_id,
        endorser_amount,
        mpn_status,
        mpn_id,
        mpn_type,
        mpn_indicator
      FROM  igf_sl_dl_lor_crresp_all
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 468

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_lor_resp_num                      IN     NUMBER,
    x_dbth_id                           IN     NUMBER,
    x_loan_number                       IN     VARCHAR2,
    x_credit_override                   IN     VARCHAR2,
    x_credit_decision_date              IN     DATE,
    x_status                            IN     VARCHAR2,
    x_endorser_amount                   IN     NUMBER      DEFAULT NULL,
    x_mpn_status                        IN     VARCHAR2    DEFAULT NULL,
    x_mpn_id                            IN     VARCHAR2    DEFAULT NULL,
    x_mpn_type                          IN     VARCHAR2    DEFAULT NULL,
    x_mpn_indicator                     IN     VARCHAR2    DEFAULT NULL,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : venagara
  ||  Created On : 02-NOV-2000
  ||  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: 525

    x_last_updated_by            NUMBER;
Line: 526

    x_last_update_login          NUMBER;
Line: 530

    x_program_update_date        DATE;
Line: 534

    x_last_update_date := SYSDATE;
Line: 536

      x_last_updated_by := 1;
Line: 537

      x_last_update_login := 0;
Line: 539

      x_last_updated_by := fnd_global.user_id;
Line: 540

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

      x_last_update_login := fnd_global.login_id;
Line: 544

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_lor_resp_num                      => x_lor_resp_num,
      x_dbth_id                           => x_dbth_id,
      x_loan_number                       => x_loan_number,
      x_credit_override                   => x_credit_override,
      x_credit_decision_date              => x_credit_decision_date,
      x_status                            => x_status,
      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,
      x_endorser_amount                   => x_endorser_amount,
      x_mpn_status                        => x_mpn_status,
      x_mpn_id                            => x_mpn_id,
      x_mpn_type                          => x_mpn_type,
      x_mpn_indicator                     => x_mpn_indicator
    );
Line: 582

        x_program_update_date := old_references.program_update_date;
Line: 584

        x_program_update_date := SYSDATE;
Line: 588

    UPDATE igf_sl_dl_lor_crresp_all
      SET
        dbth_id                    = new_references.dbth_id,
        loan_number                = new_references.loan_number,
        credit_override            = new_references.credit_override,
        credit_decision_date       = new_references.credit_decision_date,
        status                     = new_references.status,
        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,
        endorser_amount            = new_references.endorser_amount,
        mpn_status                 = new_references.mpn_status,
        mpn_id                     = new_references.mpn_id,
        mpn_type                   = new_references.mpn_type,
        mpn_indicator              = new_references.mpn_indicator
      WHERE rowid = x_rowid;
Line: 613

  END update_row;
Line: 634

  ||  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_dl_lor_crresp_all
      WHERE    lor_resp_num                      = x_lor_resp_num;
Line: 652

      insert_row (
        x_rowid,
        x_lor_resp_num,
        x_dbth_id,
        x_loan_number,
        x_credit_override,
        x_credit_decision_date,
        x_status,
        x_endorser_amount,
        x_mpn_status,
        x_mpn_id,
        x_mpn_type,
        x_mpn_indicator,
        x_mode
      );
Line: 671

    update_row (
      x_rowid,
      x_lor_resp_num,
      x_dbth_id,
      x_loan_number,
      x_credit_override,
      x_credit_decision_date,
      x_status,
      x_endorser_amount,
      x_mpn_status,
      x_mpn_id,
      x_mpn_type,
      x_mpn_indicator,
      x_mode
    );
Line: 690

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : venagara
  ||  Created On : 02-NOV-2000
  ||  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: 709

    DELETE FROM igf_sl_dl_lor_crresp_all
    WHERE rowid = x_rowid;
Line: 716

  END delete_row;