DBA Data[Home] [Help]

APPS.IGF_SL_CL_RECIPIENT_PKG SQL Statements

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

Line: 21

    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_relationship_cd                   IN     VARCHAR2    DEFAULT NULL,
    x_relationship_cd_desc              IN     VARCHAR2    DEFAULT NULL,
    x_preferred_flag                    IN     VARCHAR2    DEFAULT NULL
  ) AS
  /*
  ||  Created By : sjadhav
  ||  Created On : 09-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_CL_RECIPIENT
      WHERE    rowid = x_rowid;
Line: 51

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 81

    new_references.last_updated_by                   := x_last_updated_by;
Line: 82

    new_references.last_update_login                 := x_last_update_login;
Line: 175

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

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

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

      SELECT   rowid
      FROM     igf_sl_cl_recipient
      WHERE    rcpt_id = x_rcpt_id
      FOR UPDATE NOWAIT;
Line: 262

      SELECT   rowid
      FROM     igf_sl_cl_recipient
      WHERE    lender_id = x_lender_id
      AND      ((lend_non_ed_brc_id = x_lend_non_ed_brc_id) OR (lend_non_ed_brc_id IS NULL AND x_lend_non_ed_brc_id IS NULL))
      AND      guarantor_id = x_guarantor_id
      AND      recipient_id = x_recipient_id
      AND      ((recip_non_ed_brc_id = x_recip_non_ed_brc_id) OR (recip_non_ed_brc_id IS NULL AND x_recip_non_ed_brc_id IS NULL))
      AND      relationship_cd = x_relationship_cd
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 301

      SELECT   rowid
      FROM     igf_sl_cl_recipient
      WHERE    ((relationship_cd = x_relationship_cd))
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 336

      SELECT   rowid
      FROM     igf_sl_cl_recipient
      WHERE   ((lender_id = x_lender_id));
Line: 372

      SELECT   rowid
      FROM     igf_sl_cl_recipient
      WHERE   ((lender_id = x_lender_id) AND
               (lend_non_ed_brc_id = x_lend_non_ed_brc_id));
Line: 408

      SELECT   rowid
      FROM     igf_sl_cl_recipient
      WHERE   ((guarantor_id = x_guarantor_id));
Line: 443

    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_relationship_cd                   IN     VARCHAR2     DEFAULT NULL,
    x_relationship_cd_desc              IN     VARCHAR2     DEFAULT NULL,
    x_preferred_flag                    IN     VARCHAR2     DEFAULT NULL
  ) AS
  /*
  ||  Created By : sjadhav
  ||  Created On : 09-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_rcpt_id,
      x_lender_id,
      x_lend_non_ed_brc_id,
      x_guarantor_id,
      x_recipient_id,
      x_recipient_type,
      x_recip_non_ed_brc_id,
      x_enabled,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      x_relationship_cd,
      x_relationship_cd_desc,
      x_preferred_flag
    );
Line: 483

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

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

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

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

    ELSIF (p_action = 'DELETE') THEN
      check_child_existance;
Line: 514

    ELSIF (p_action = 'VALIDATE_DELETE') THEN
      check_child_existance;
Line: 522

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_rcpt_id                           IN OUT NOCOPY NUMBER,
    x_lender_id                         IN     VARCHAR2,
    x_lend_non_ed_brc_id                IN     VARCHAR2,
    x_guarantor_id                      IN     VARCHAR2,
    x_recipient_id                      IN     VARCHAR2,
    x_recipient_type                    IN     VARCHAR2,
    x_recip_non_ed_brc_id               IN     VARCHAR2,
    x_enabled                           IN     VARCHAR2,
    x_relationship_cd                   IN     VARCHAR2,
    x_relationship_cd_desc              IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 DEFAULT 'R',
    x_preferred_flag                    IN     VARCHAR2
  ) AS
  /*
  ||  Created By : sjadhav
  ||  Created On : 09-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_cl_recipient
      WHERE    rcpt_id                           = x_rcpt_id;
Line: 551

    x_last_update_date           DATE;
Line: 552

    x_last_updated_by            NUMBER;
Line: 553

    x_last_update_login          NUMBER;
Line: 557

    x_last_update_date := SYSDATE;
Line: 559

      x_last_updated_by := 1;
Line: 560

      x_last_update_login := 0;
Line: 562

      x_last_updated_by := fnd_global.user_id;
Line: 563

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

      x_last_update_login := fnd_global.login_id;
Line: 567

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

    SELECT igf_sl_cl_recipient_s.nextval
    INTO x_rcpt_id
    FROM dual;
Line: 583

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_rcpt_id                           => x_rcpt_id,
      x_lender_id                         => x_lender_id,
      x_lend_non_ed_brc_id                => x_lend_non_ed_brc_id,
      x_guarantor_id                      => x_guarantor_id,
      x_recipient_id                      => x_recipient_id,
      x_recipient_type                    => x_recipient_type,
      x_recip_non_ed_brc_id               => x_recip_non_ed_brc_id,
      x_enabled                           => x_enabled,
      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_relationship_cd                   => x_relationship_cd,
      x_relationship_cd_desc              => x_relationship_cd_desc,
      x_preferred_flag                    => x_preferred_flag
    );
Line: 603

    INSERT INTO igf_sl_cl_recipient (
      rcpt_id,
      lender_id,
      lend_non_ed_brc_id,
      guarantor_id,
      recipient_id,
      recipient_type,
      recip_non_ed_brc_id,
      enabled,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      relationship_cd,
      relationship_cd_desc,
      preferred_flag
    ) VALUES (
      new_references.rcpt_id,
      new_references.lender_id,
      new_references.lend_non_ed_brc_id,
      new_references.guarantor_id,
      new_references.recipient_id,
      new_references.recipient_type,
      new_references.recip_non_ed_brc_id,
      new_references.enabled,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      new_references.relationship_cd,
      new_references.relationship_cd_desc,
      new_references.preferred_flag
    );
Line: 647

  END insert_row;
Line: 674

      SELECT
        lender_id,
        lend_non_ed_brc_id,
        guarantor_id,
        recipient_id,
        recipient_type,
        recip_non_ed_brc_id,
        enabled,
        relationship_cd,
        relationship_cd_desc,
        preferred_flag
      FROM  igf_sl_cl_recipient
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 696

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_rcpt_id                           IN     NUMBER,
    x_lender_id                         IN     VARCHAR2,
    x_lend_non_ed_brc_id                IN     VARCHAR2,
    x_guarantor_id                      IN     VARCHAR2,
    x_recipient_id                      IN     VARCHAR2,
    x_recipient_type                    IN     VARCHAR2,
    x_recip_non_ed_brc_id               IN     VARCHAR2,
    x_enabled                           IN     VARCHAR2,
    x_relationship_cd                   IN     VARCHAR2,
    x_relationship_cd_desc              IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 DEFAULT 'R',
    x_preferred_flag                    IN     VARCHAR2
  ) AS
  /*
  ||  Created By : sjadhav
  ||  Created On : 09-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: 753

    x_last_updated_by            NUMBER;
Line: 754

    x_last_update_login          NUMBER;
Line: 758

    x_last_update_date := SYSDATE;
Line: 760

      x_last_updated_by := 1;
Line: 761

      x_last_update_login := 0;
Line: 763

      x_last_updated_by := fnd_global.user_id;
Line: 764

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

      x_last_update_login := fnd_global.login_id;
Line: 768

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_rcpt_id                           => x_rcpt_id,
      x_lender_id                         => x_lender_id,
      x_lend_non_ed_brc_id                => x_lend_non_ed_brc_id,
      x_guarantor_id                      => x_guarantor_id,
      x_recipient_id                      => x_recipient_id,
      x_recipient_type                    => x_recipient_type,
      x_recip_non_ed_brc_id               => x_recip_non_ed_brc_id,
      x_enabled                           => x_enabled,
      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_relationship_cd                   => x_relationship_cd,
      x_relationship_cd_desc              => x_relationship_cd_desc,
      x_preferred_flag                    => x_preferred_flag
    );
Line: 798

    UPDATE igf_sl_cl_recipient
      SET
        lender_id                         = new_references.lender_id,
        lend_non_ed_brc_id                = new_references.lend_non_ed_brc_id,
        guarantor_id                      = new_references.guarantor_id,
        recipient_id                      = new_references.recipient_id,
        recipient_type                    = new_references.recipient_type,
        recip_non_ed_brc_id               = new_references.recip_non_ed_brc_id,
        enabled                           = new_references.enabled,
        last_update_date                  = x_last_update_date,
        last_updated_by                   = x_last_updated_by,
        last_update_login                 = x_last_update_login,
        relationship_cd                   = x_relationship_cd,
        relationship_cd_desc              = x_relationship_cd_desc,
        preferred_flag                    = new_references.preferred_flag
      WHERE rowid = x_rowid;
Line: 819

  END update_row;
Line: 840

  ||  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_cl_recipient
      WHERE    rcpt_id                           = x_rcpt_id;
Line: 858

      insert_row (
        x_rowid,
        x_rcpt_id,
        x_lender_id,
        x_lend_non_ed_brc_id,
        x_guarantor_id,
        x_recipient_id,
        x_recipient_type,
        x_recip_non_ed_brc_id,
        x_enabled,
        x_relationship_cd,
        x_relationship_cd_desc,
        x_mode,
        x_preferred_flag
      );
Line: 877

    update_row (
      x_rowid,
      x_rcpt_id,
      x_lender_id,
      x_lend_non_ed_brc_id,
      x_guarantor_id,
      x_recipient_id,
      x_recipient_type,
      x_recip_non_ed_brc_id,
      x_enabled,
      x_relationship_cd,
      x_relationship_cd_desc,
      x_mode,
      x_preferred_flag
    );
Line: 896

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : sjadhav
  ||  Created On : 09-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: 915

    DELETE FROM igf_sl_cl_recipient
    WHERE rowid = x_rowid;
Line: 922

  END delete_row;