DBA Data[Home] [Help]

APPS.IGS_UC_WRONG_APP_PKG SQL Statements

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

Line: 22

    x_last_update_date                  IN     DATE    ,
    x_last_updated_by                   IN     NUMBER  ,
    x_last_update_login                 IN     NUMBER  ,
    x_joint_admission_ind               IN     VARCHAR2,
    x_choice1_lost                      IN     VARCHAR2,
    x_choice2_lost                      IN     VARCHAR2,
    x_choice3_lost                      IN     VARCHAR2,
    x_choice4_lost                      IN     VARCHAR2,
    x_choice5_lost                      IN     VARCHAR2,
    x_choice6_lost                      IN     VARCHAR2,
    x_choice7_lost                      IN     VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 01-OCT-2001
  ||  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_UC_WRONG_APP
      WHERE    rowid = x_rowid;
Line: 57

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 94

    new_references.last_updated_by                   := x_last_updated_by;
Line: 95

    new_references.last_update_login                 := x_last_update_login;
Line: 138

      SELECT   rowid
      FROM     igs_uc_wrong_app
      WHERE    app_no = x_app_no ;
Line: 172

      SELECT   rowid
      FROM     igs_uc_wrong_app
      WHERE    wrong_app_id = x_wrong_app_id
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 208

    x_last_update_date                  IN     DATE    ,
    x_last_updated_by                   IN     NUMBER  ,
    x_last_update_login                 IN     NUMBER  ,
    x_joint_admission_ind               IN     VARCHAR2,
    x_choice1_lost                      IN     VARCHAR2,
    x_choice2_lost                      IN     VARCHAR2,
    x_choice3_lost                      IN     VARCHAR2,
    x_choice4_lost                      IN     VARCHAR2,
    x_choice5_lost                      IN     VARCHAR2,
    x_choice6_lost                      IN     VARCHAR2,
    x_choice7_lost                      IN     VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 01-OCT-2001
  ||  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_wrong_app_id,
      x_app_no,
      x_miscoded,
      x_cancelled,
      x_cancel_date,
      x_remark,
      x_expunge,
      x_batch_id,
      x_expunged,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      x_joint_admission_ind,
      x_choice1_lost     ,
      x_choice2_lost     ,
      x_choice3_lost     ,
      x_choice4_lost     ,
      x_choice5_lost     ,
      x_choice6_lost     ,
      x_choice7_lost
      );
Line: 259

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_wrong_app_id                      IN OUT NOCOPY NUMBER,
    x_app_no                            IN OUT NOCOPY NUMBER,
    x_miscoded                          IN     VARCHAR2,
    x_cancelled                         IN     VARCHAR2,
    x_cancel_date                       IN     DATE,
    x_remark                            IN     VARCHAR2,
    x_expunge                           IN     VARCHAR2,
    x_batch_id                          IN     NUMBER,
    x_expunged                          IN     VARCHAR2,
    x_mode                              IN     VARCHAR2,
    x_joint_admission_ind               IN     VARCHAR2,
    x_choice1_lost                      IN     VARCHAR2,
    x_choice2_lost                      IN     VARCHAR2,
    x_choice3_lost                      IN     VARCHAR2,
    x_choice4_lost                      IN     VARCHAR2,
    x_choice5_lost                      IN     VARCHAR2,
    x_choice6_lost                      IN     VARCHAR2,
    x_choice7_lost                      IN     VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 01-OCT-2001
  ||  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     igs_uc_wrong_app
      WHERE    app_no                            = x_app_no;
Line: 326

    x_last_update_date           DATE;
Line: 327

    x_last_updated_by            NUMBER;
Line: 328

    x_last_update_login          NUMBER;
Line: 332

    x_last_update_date := SYSDATE;
Line: 334

      x_last_updated_by := 1;
Line: 335

      x_last_update_login := 0;
Line: 337

      x_last_updated_by := fnd_global.user_id;
Line: 338

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

      x_last_update_login := fnd_global.login_id;
Line: 342

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

    SELECT    igs_uc_wrong_app_s.NEXTVAL
    INTO      x_wrong_app_id
    FROM      dual;
Line: 356

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_wrong_app_id                      => x_wrong_app_id,
      x_app_no                            => x_app_no,
      x_miscoded                          => x_miscoded,
      x_cancelled                         => x_cancelled,
      x_cancel_date                       => x_cancel_date,
      x_remark                            => x_remark,
      x_expunge                           => x_expunge,
      x_batch_id                          => x_batch_id,
      x_expunged                          => x_expunged,
      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_joint_admission_ind               => x_joint_admission_ind,
      x_choice1_lost                      => x_choice1_lost ,
      x_choice2_lost                      => x_choice2_lost ,
      x_choice3_lost                      => x_choice3_lost ,
      x_choice4_lost                      => x_choice4_lost ,
      x_choice5_lost                      => x_choice5_lost ,
      x_choice6_lost                      => x_choice6_lost ,
      x_choice7_lost                      => x_choice7_lost
      );
Line: 382

    INSERT INTO igs_uc_wrong_app (
      wrong_app_id,
      app_no,
      miscoded,
      cancelled,
      cancel_date,
      remark,
      expunge,
      batch_id,
      expunged,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      joint_admission_ind,
      choice1_lost     ,
      choice2_lost     ,
      choice3_lost     ,
      choice4_lost     ,
      choice5_lost     ,
      choice6_lost     ,
      choice7_lost
    ) VALUES (
      new_references.wrong_app_id,
      new_references.app_no,
      new_references.miscoded,
      new_references.cancelled,
      new_references.cancel_date,
      new_references.remark,
      new_references.expunge,
      new_references.batch_id,
      new_references.expunged,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      new_references.joint_admission_ind,
      new_references.choice1_lost     ,
      new_references.choice2_lost     ,
      new_references.choice3_lost     ,
      new_references.choice4_lost     ,
      new_references.choice5_lost     ,
      new_references.choice6_lost     ,
      new_references.choice7_lost
    );
Line: 438

  END insert_row;
Line: 471

      SELECT
        wrong_app_id,
        miscoded,
        cancelled,
        cancel_date,
        remark,
        expunge,
        batch_id,
        expunged,
        joint_admission_ind  ,
        choice1_lost       ,
        choice2_lost       ,
        choice3_lost       ,
        choice4_lost       ,
        choice5_lost       ,
        choice6_lost       ,
        choice7_lost
      FROM  igs_uc_wrong_app
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 499

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_wrong_app_id                      IN     NUMBER,
    x_app_no                            IN     NUMBER,
    x_miscoded                          IN     VARCHAR2,
    x_cancelled                         IN     VARCHAR2,
    x_cancel_date                       IN     DATE,
    x_remark                            IN     VARCHAR2,
    x_expunge                           IN     VARCHAR2,
    x_batch_id                          IN     NUMBER,
    x_expunged                          IN     VARCHAR2,
    x_mode                              IN     VARCHAR2,
    x_joint_admission_ind               IN     VARCHAR2,
    x_choice1_lost                      IN     VARCHAR2,
    x_choice2_lost                      IN     VARCHAR2,
    x_choice3_lost                      IN     VARCHAR2,
    x_choice4_lost                      IN     VARCHAR2,
    x_choice5_lost                      IN     VARCHAR2,
    x_choice6_lost                      IN     VARCHAR2,
    x_choice7_lost                      IN     VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 01-OCT-2001
  ||  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: 568

    x_last_updated_by            NUMBER;
Line: 569

    x_last_update_login          NUMBER;
Line: 573

    x_last_update_date := SYSDATE;
Line: 575

      x_last_updated_by := 1;
Line: 576

      x_last_update_login := 0;
Line: 578

      x_last_updated_by := fnd_global.user_id;
Line: 579

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

      x_last_update_login := fnd_global.login_id;
Line: 583

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_wrong_app_id                      => x_wrong_app_id,
      x_app_no                            => x_app_no,
      x_miscoded                          => x_miscoded,
      x_cancelled                         => x_cancelled,
      x_cancel_date                       => x_cancel_date,
      x_remark                            => x_remark,
      x_expunge                           => x_expunge,
      x_batch_id                          => x_batch_id,
      x_expunged                          => x_expunged,
      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_joint_admission_ind               => x_joint_admission_ind,
      x_choice1_lost                      => x_choice1_lost ,
      x_choice2_lost                      => x_choice2_lost ,
      x_choice3_lost                      => x_choice3_lost ,
      x_choice4_lost                      => x_choice4_lost ,
      x_choice5_lost                      => x_choice5_lost ,
      x_choice6_lost                      => x_choice6_lost ,
      x_choice7_lost                      => x_choice7_lost
     );
Line: 619

    UPDATE igs_uc_wrong_app
      SET
        wrong_app_id                      = new_references.wrong_app_id,
        miscoded                          = new_references.miscoded,
        cancelled                         = new_references.cancelled,
        cancel_date                       = new_references.cancel_date,
        remark                            = new_references.remark,
        expunge                           = new_references.expunge,
        batch_id                          = new_references.batch_id,
        expunged                          = new_references.expunged,
        last_update_date                  = x_last_update_date,
        last_updated_by                   = x_last_updated_by,
        last_update_login                 = x_last_update_login,
    	  joint_admission_ind               = x_joint_admission_ind,
        choice1_lost                      = x_choice1_lost ,
        choice2_lost                      = x_choice2_lost ,
        choice3_lost                      = x_choice3_lost ,
        choice4_lost                      = x_choice4_lost ,
        choice5_lost                      = x_choice5_lost ,
        choice6_lost                      = x_choice6_lost ,
        choice7_lost                      = x_choice7_lost
      WHERE rowid = x_rowid;
Line: 646

  END update_row;
Line: 673

  ||  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_uc_wrong_app
      WHERE    app_no    = x_app_no;
Line: 691

      insert_row (
        x_rowid,
        x_wrong_app_id,
        x_app_no,
        x_miscoded,
        x_cancelled,
        x_cancel_date,
        x_remark,
        x_expunge,
        x_batch_id,
        x_expunged,
        x_mode,
        x_joint_admission_ind,
        x_choice1_lost     ,
        x_choice2_lost     ,
        x_choice3_lost     ,
        x_choice4_lost     ,
        x_choice5_lost     ,
        x_choice6_lost     ,
        x_choice7_lost
      );
Line: 716

    update_row (
      x_rowid,
      x_wrong_app_id,
      x_app_no,
      x_miscoded,
      x_cancelled,
      x_cancel_date,
      x_remark,
      x_expunge,
      x_batch_id,
      x_expunged,
      x_mode,
      x_joint_admission_ind,
      x_choice1_lost     ,
      x_choice2_lost     ,
      x_choice3_lost     ,
      x_choice4_lost     ,
      x_choice5_lost     ,
      x_choice6_lost     ,
      x_choice7_lost
    );
Line: 741

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 01-OCT-2001
  ||  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: 760

    DELETE FROM igs_uc_wrong_app
    WHERE rowid = x_rowid;
Line: 767

  END delete_row;