DBA Data[Home] [Help]

APPS.IGF_SL_REQD_FIELDS_PKG SQL Statements

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

Line: 20

    x_last_update_date                  IN     DATE        DEFAULT NULL,
    x_last_updated_by                   IN     NUMBER      DEFAULT NULL,
    x_last_update_login                 IN     NUMBER      DEFAULT NULL
  ) AS
  /*
  ||  Created By : sjadhav
  ||  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_REQD_FIELDS
      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: 121

      SELECT   rowid
      FROM     igf_sl_reqd_fields
      WHERE    lrf_id = x_lrf_id
      FOR UPDATE NOWAIT;
Line: 160

      SELECT   rowid
      FROM     igf_sl_reqd_fields
      WHERE    spec_version = x_spec_version
      AND      field_name = x_field_name
      AND      loan_type = x_loan_type
      AND      ((transaction_type = x_transaction_type) OR (transaction_type IS NULL AND x_transaction_type IS NULL))
      AND      ((prc_type_code = x_prc_type_code) OR (prc_type_code IS NULL AND x_prc_type_code IS NULL))
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 198

    x_last_update_date                  IN     DATE        DEFAULT NULL,
    x_last_updated_by                   IN     NUMBER      DEFAULT NULL,
    x_last_update_login                 IN     NUMBER      DEFAULT NULL
  ) AS
  /*
  ||  Created By : sjadhav
  ||  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_lrf_id,
      x_spec_version,
      x_field_name,
      x_loan_type,
      x_transaction_type,
      x_prc_type_code,
      x_status,
      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.lrf_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_uniqueness;
Line: 245

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_lrf_id                            IN OUT NOCOPY NUMBER,
    x_spec_version                      IN     VARCHAR2,
    x_field_name                        IN     VARCHAR2,
    x_loan_type                         IN     VARCHAR2,
    x_transaction_type                  IN     VARCHAR2,
    x_prc_type_code                     IN     VARCHAR2,
    x_status                            IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : sjadhav
  ||  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_reqd_fields
      WHERE    lrf_id                            = x_lrf_id;
Line: 288

    x_last_update_date           DATE;
Line: 289

    x_last_updated_by            NUMBER;
Line: 290

    x_last_update_login          NUMBER;
Line: 294

    x_last_update_date := SYSDATE;
Line: 296

      x_last_updated_by := 1;
Line: 297

      x_last_update_login := 0;
Line: 299

      x_last_updated_by := fnd_global.user_id;
Line: 300

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

      x_last_update_login := fnd_global.login_id;
Line: 304

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

    SELECT igf_sl_reqd_fields_s.nextval INTO
           x_lrf_id FROM dual;
Line: 318

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_lrf_id                            => x_lrf_id,
      x_spec_version                      => x_spec_version,
      x_field_name                        => x_field_name,
      x_loan_type                         => x_loan_type,
      x_transaction_type                  => x_transaction_type,
      x_prc_type_code                     => x_prc_type_code,
      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
    );
Line: 334

    INSERT INTO igf_sl_reqd_fields (
      lrf_id,
      spec_version,
      field_name,
      loan_type,
      transaction_type,
      prc_type_code,
      status,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.lrf_id,
      new_references.spec_version,
      new_references.field_name,
      new_references.loan_type,
      new_references.transaction_type,
      new_references.prc_type_code,
      new_references.status,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 370

  END insert_row;
Line: 393

      SELECT
        spec_version,
        field_name,
        loan_type,
        transaction_type,
        prc_type_code,
        status
      FROM  igf_sl_reqd_fields
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 411

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_lrf_id                            IN     NUMBER,
    x_spec_version                      IN     VARCHAR2,
    x_field_name                        IN     VARCHAR2,
    x_loan_type                         IN     VARCHAR2,
    x_transaction_type                  IN     VARCHAR2,
    x_prc_type_code                     IN     VARCHAR2,
    x_status                            IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : sjadhav
  ||  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: 460

    x_last_updated_by            NUMBER;
Line: 461

    x_last_update_login          NUMBER;
Line: 465

    x_last_update_date := SYSDATE;
Line: 467

      x_last_updated_by := 1;
Line: 468

      x_last_update_login := 0;
Line: 470

      x_last_updated_by := fnd_global.user_id;
Line: 471

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

      x_last_update_login := fnd_global.login_id;
Line: 475

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_lrf_id                            => x_lrf_id,
      x_spec_version                      => x_spec_version,
      x_field_name                        => x_field_name,
      x_loan_type                         => x_loan_type,
      x_transaction_type                  => x_transaction_type,
      x_prc_type_code                     => x_prc_type_code,
      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
    );
Line: 501

    UPDATE igf_sl_reqd_fields
      SET
        spec_version                      = new_references.spec_version,
        field_name                        = new_references.field_name,
        loan_type                         = new_references.loan_type,
        transaction_type                  = new_references.transaction_type,
        prc_type_code                     = new_references.prc_type_code,
        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
      WHERE rowid = x_rowid;
Line: 518

  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     igf_sl_reqd_fields
      WHERE    lrf_id                            = x_lrf_id;
Line: 553

      insert_row (
        x_rowid,
        x_lrf_id,
        x_spec_version,
        x_field_name,
        x_loan_type,
        x_transaction_type,
        x_prc_type_code,
        x_status,
        x_mode
      );
Line: 568

    update_row (
      x_rowid,
      x_lrf_id,
      x_spec_version,
      x_field_name,
      x_loan_type,
      x_transaction_type,
      x_prc_type_code,
      x_status,
      x_mode
    );
Line: 583

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

    DELETE FROM igf_sl_reqd_fields
    WHERE rowid = x_rowid;
Line: 609

  END delete_row;