DBA Data[Home] [Help]

APPS.IGS_UC_UCAS_CONTROL_PKG SQL Statements

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

Line: 34

    x_last_update_date                  IN     DATE    ,
    x_last_updated_by                   IN     NUMBER  ,
    x_last_update_login                 IN     NUMBER  ,
    -- Added following 3 Columns as part of UCCR002 Build. Bug NO: 2278817 by rbezawad
    x_appno_first_opf                   IN     NUMBER ,
    x_appno_first_rpa_noneu             IN     NUMBER ,
    x_appno_first_rpa_eu                IN     NUMBER ,
    -- Added following 3 Columns as part of UCFD06 Build. Bug#2574566 by Nishikant
    x_extra_start_date                  IN     DATE,
    x_last_passport_date                IN     DATE,
    x_last_le_date                      IN     DATE,
    x_system_code                       IN     VARCHAR2,
    x_ucas_cycle                        IN     NUMBER,
    -- Added following 2 Columns as part of UCCR008 Build. Bug#3239860 by arvsrini
    x_gttr_clear_toy_code               IN     VARCHAR2,
    x_transaction_toy_code              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_UCAS_CONTROL
      WHERE    rowid = x_rowid;
Line: 74

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 125

    new_references.last_updated_by                   := x_last_updated_by;
Line: 126

    new_references.last_update_login                 := x_last_update_login;
Line: 148

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

      SELECT   rowid
      FROM     igs_uc_ucas_control
      WHERE    system_code = x_system_code
      AND      ucas_cycle  = x_ucas_cycle;
Line: 218

    x_last_update_date                  IN     DATE  ,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER,
    -- Added following 3 Columns as part of UCCR002 Build. Bug NO: 2278817 by rbezawad
    x_appno_first_opf                   IN     NUMBER,
    x_appno_first_rpa_noneu             IN     NUMBER,
    x_appno_first_rpa_eu                IN     NUMBER,
    -- Added following 3 Columns as part of UCFD06 Build. Bug#2574566 by Nishikant
    x_extra_start_date                  IN     DATE,
    x_last_passport_date                IN     DATE,
    x_last_le_date                      IN     DATE,
    x_system_code                       IN     VARCHAR2,
    x_ucas_cycle                        IN     NUMBER,
     -- Added following 2 Columns as part of UCCR008 Build. Bug#3239860 by arvsrini
    x_gttr_clear_toy_code               IN     VARCHAR2,
    x_transaction_toy_code              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_entry_year,
      x_time_of_year,
      x_time_of_day,
      x_routeb_time_of_year,
      x_appno_first,
      x_appno_maximum,
      x_appno_last_used,
      x_last_daily_run_no,
      x_last_daily_run_date,
      x_appno_15dec,
      x_run_date_15dec,
      x_appno_24mar,
      x_run_date_24mar,
      x_appno_16may,
      x_run_date_16may,
      x_appno_decision_proc,
      x_run_date_decision_proc,
      x_appno_first_pre_num,
      x_news,
      x_no_more_la_tran,
      x_star_x_avail,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      x_appno_first_opf,
      x_appno_first_rpa_noneu,
      x_appno_first_rpa_eu,
      x_extra_start_date,
      x_last_passport_date,
      x_last_le_date,
      x_system_code,
      x_ucas_cycle,
      x_gttr_clear_toy_code ,
      x_transaction_toy_code
    );
Line: 288

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


      IF ( get_pk_for_validation(new_references.system_code, new_references.ucas_cycle)
         ) THEN
        fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
Line: 299

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_entry_year                        IN     NUMBER,
    x_time_of_year                      IN     VARCHAR2,
    x_time_of_day                       IN     VARCHAR2,
    x_routeb_time_of_year               IN     VARCHAR2,
    x_appno_first                       IN     NUMBER,
    x_appno_maximum                     IN     NUMBER,
    x_appno_last_used                   IN     NUMBER,
    x_last_daily_run_no                 IN     NUMBER,
    x_last_daily_run_date               IN     DATE,
    x_appno_15dec                       IN     NUMBER,
    x_run_date_15dec                    IN     DATE,
    x_appno_24mar                       IN     NUMBER,
    x_run_date_24mar                    IN     DATE,
    x_appno_16may                       IN     NUMBER,
    x_run_date_16may                    IN     DATE,
    x_appno_decision_proc               IN     NUMBER,
    x_run_date_decision_proc            IN     DATE,
    x_appno_first_pre_num               IN     NUMBER,
    x_news                              IN     VARCHAR2,
    x_no_more_la_tran                   IN     VARCHAR2,
    x_star_x_avail                      IN     VARCHAR2,
    x_mode                              IN     VARCHAR2,
    -- Added following 3 Columns as part of UCCR002 Build. Bug NO: 2278817 by rbezawad
    x_appno_first_opf                   IN     NUMBER,
    x_appno_first_rpa_noneu             IN     NUMBER,
    x_appno_first_rpa_eu                IN     NUMBER,
    -- Added following 3 Columns as part of UCFD06 Build. Bug#2574566 by Nishikant
    x_extra_start_date                  IN     DATE,
    x_last_passport_date                IN     DATE,
    x_last_le_date                      IN     DATE,
    x_system_code                       IN     VARCHAR2,
    x_ucas_cycle                        IN     NUMBER,
     -- Added following 2 Columns as part of UCCR008 Build. Bug#3239860 by arvsrini
    x_gttr_clear_toy_code               IN     VARCHAR2,
    x_transaction_toy_code              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
  ||  jchakrab   20-Feb-2006   Modified cursor c for 3696223 - added WHERE clause
  ||  (reverse chronological order - newest change first)
  */
    CURSOR c IS
      SELECT   rowid
      FROM     igs_uc_ucas_control
      WHERE    system_code = x_system_code
      AND      ucas_cycle = x_ucas_cycle;
Line: 368

    x_last_update_date           DATE;
Line: 369

    x_last_updated_by            NUMBER;
Line: 370

    x_last_update_login          NUMBER;
Line: 374

    x_last_update_date := SYSDATE;
Line: 376

      x_last_updated_by := 1;
Line: 377

      x_last_update_login := 0;
Line: 379

      x_last_updated_by := fnd_global.user_id;
Line: 380

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

      x_last_update_login := fnd_global.login_id;
Line: 384

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

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_entry_year                        => x_entry_year,
      x_time_of_year                      => x_time_of_year,
      x_time_of_day                       => x_time_of_day,
      x_routeb_time_of_year               => x_routeb_time_of_year,
      x_appno_first                       => x_appno_first,
      x_appno_maximum                     => x_appno_maximum,
      x_appno_last_used                   => x_appno_last_used,
      x_last_daily_run_no                 => x_last_daily_run_no,
      x_last_daily_run_date               => x_last_daily_run_date,
      x_appno_15dec                       => x_appno_15dec,
      x_run_date_15dec                    => x_run_date_15dec,
      x_appno_24mar                       => x_appno_24mar,
      x_run_date_24mar                    => x_run_date_24mar,
      x_appno_16may                       => x_appno_16may,
      x_run_date_16may                    => x_run_date_16may,
      x_appno_decision_proc               => x_appno_decision_proc,
      x_run_date_decision_proc            => x_run_date_decision_proc,
      x_appno_first_pre_num               => x_appno_first_pre_num,
      x_news                              => x_news,
      x_no_more_la_tran                   => x_no_more_la_tran,
      x_star_x_avail                      => x_star_x_avail,
      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_appno_first_opf                   => x_appno_first_opf,
      x_appno_first_rpa_noneu             => x_appno_first_rpa_noneu,
      x_appno_first_rpa_eu                => x_appno_first_rpa_eu,
    -- Added following 3 Columns as part of UCFD06 Build. Bug#2574566 by Nishikant
      x_extra_start_date                  => x_extra_start_date  ,
      x_last_passport_date                => x_last_passport_date,
      x_last_le_date                      => x_last_le_date      ,
      x_system_code                       => x_system_code ,
      x_ucas_cycle                        => x_ucas_cycle,
      x_gttr_clear_toy_code               => x_gttr_clear_toy_code,
      x_transaction_toy_code              => x_transaction_toy_code
    );
Line: 435

    INSERT INTO igs_uc_ucas_control (
      entry_year,
      time_of_year,
      time_of_day,
      routeb_time_of_year,
      appno_first,
      appno_maximum,
      appno_last_used,
      last_daily_run_no,
      last_daily_run_date,
      appno_15dec,
      run_date_15dec,
      appno_24mar,
      run_date_24mar,
      appno_16may,
      run_date_16may,
      appno_decision_proc,
      run_date_decision_proc,
      appno_first_pre_num,
      news,
      no_more_la_tran,
      star_x_avail,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      appno_first_opf,
      appno_first_rpa_noneu,
      appno_first_rpa_eu,
      extra_start_date,
      last_passport_date,
      last_le_date,
      system_code,
      ucas_cycle,
      gttr_clear_toy_code,
      transaction_toy_code

    ) VALUES (
      new_references.entry_year,
      new_references.time_of_year,
      new_references.time_of_day,
      new_references.routeb_time_of_year,
      new_references.appno_first,
      new_references.appno_maximum,
      new_references.appno_last_used,
      new_references.last_daily_run_no,
      new_references.last_daily_run_date,
      new_references.appno_15dec,
      new_references.run_date_15dec,
      new_references.appno_24mar,
      new_references.run_date_24mar,
      new_references.appno_16may,
      new_references.run_date_16may,
      new_references.appno_decision_proc,
      new_references.run_date_decision_proc,
      new_references.appno_first_pre_num,
      new_references.news,
      new_references.no_more_la_tran,
      new_references.star_x_avail,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      new_references.appno_first_opf,
      new_references.appno_first_rpa_noneu,
      new_references.appno_first_rpa_eu,
      new_references.extra_start_date  ,
      new_references.last_passport_date,
      new_references.last_le_date ,
      new_references.system_code,
      new_references.ucas_cycle,
      new_references.gttr_clear_toy_code,
      new_references.transaction_toy_code
    );
Line: 520

  END insert_row;
Line: 572

      SELECT
        entry_year,
        time_of_year,
        time_of_day,
        routeb_time_of_year,
        appno_first,
        appno_maximum,
        appno_last_used,
        last_daily_run_no,
        last_daily_run_date,
        appno_15dec,
        run_date_15dec,
        appno_24mar,
        run_date_24mar,
        appno_16may,
        run_date_16may,
        appno_decision_proc,
        run_date_decision_proc,
        appno_first_pre_num,
        news,
        no_more_la_tran,
        star_x_avail,
        appno_first_opf,
        appno_first_rpa_noneu,
        appno_first_rpa_eu,
        extra_start_date,
        last_passport_date,
        last_le_date,
        system_code,
        ucas_cycle,
        gttr_clear_toy_code,
        transaction_toy_code

      FROM  igs_uc_ucas_control
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 616

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_entry_year                        IN     NUMBER,
    x_time_of_year                      IN     VARCHAR2,
    x_time_of_day                       IN     VARCHAR2,
    x_routeb_time_of_year               IN     VARCHAR2,
    x_appno_first                       IN     NUMBER,
    x_appno_maximum                     IN     NUMBER,
    x_appno_last_used                   IN     NUMBER,
    x_last_daily_run_no                 IN     NUMBER,
    x_last_daily_run_date               IN     DATE,
    x_appno_15dec                       IN     NUMBER,
    x_run_date_15dec                    IN     DATE,
    x_appno_24mar                       IN     NUMBER,
    x_run_date_24mar                    IN     DATE,
    x_appno_16may                       IN     NUMBER,
    x_run_date_16may                    IN     DATE,
    x_appno_decision_proc               IN     NUMBER,
    x_run_date_decision_proc            IN     DATE,
    x_appno_first_pre_num               IN     NUMBER,
    x_news                              IN     VARCHAR2,
    x_no_more_la_tran                   IN     VARCHAR2,
    x_star_x_avail                      IN     VARCHAR2,
    x_mode                              IN     VARCHAR2,
    -- Added following 3 Columns as part of UCCR002 Build. Bug NO: 2278817 by rbezawad
    x_appno_first_opf                   IN     NUMBER,
    x_appno_first_rpa_noneu             IN     NUMBER,
    x_appno_first_rpa_eu                IN     NUMBER,
    -- Added following 3 Columns as part of UCFD06 Build. Bug#2574566 by Nishikant
    x_extra_start_date                  IN     DATE,
    x_last_passport_date                IN     DATE,
    x_last_le_date                      IN     DATE,
    x_system_code                       IN     VARCHAR2,
    x_ucas_cycle                        IN     NUMBER,
     -- Added following 2 Columns as part of UCCR008 Build. Bug#3239860 by arvsrini
    x_gttr_clear_toy_code               IN     VARCHAR2,
    x_transaction_toy_code              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: 715

    x_last_updated_by            NUMBER;
Line: 716

    x_last_update_login          NUMBER;
Line: 720

    x_last_update_date := SYSDATE;
Line: 722

      x_last_updated_by := 1;
Line: 723

      x_last_update_login := 0;
Line: 725

      x_last_updated_by := fnd_global.user_id;
Line: 726

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

      x_last_update_login := fnd_global.login_id;
Line: 730

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_entry_year                        => x_entry_year,
      x_time_of_year                      => x_time_of_year,
      x_time_of_day                       => x_time_of_day,
      x_routeb_time_of_year               => x_routeb_time_of_year,
      x_appno_first                       => x_appno_first,
      x_appno_maximum                     => x_appno_maximum,
      x_appno_last_used                   => x_appno_last_used,
      x_last_daily_run_no                 => x_last_daily_run_no,
      x_last_daily_run_date               => x_last_daily_run_date,
      x_appno_15dec                       => x_appno_15dec,
      x_run_date_15dec                    => x_run_date_15dec,
      x_appno_24mar                       => x_appno_24mar,
      x_run_date_24mar                    => x_run_date_24mar,
      x_appno_16may                       => x_appno_16may,
      x_run_date_16may                    => x_run_date_16may,
      x_appno_decision_proc               => x_appno_decision_proc,
      x_run_date_decision_proc            => x_run_date_decision_proc,
      x_appno_first_pre_num               => x_appno_first_pre_num,
      x_news                              => x_news,
      x_no_more_la_tran                   => x_no_more_la_tran,
      x_star_x_avail                      => x_star_x_avail,
      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_appno_first_opf                   => x_appno_first_opf,
      x_appno_first_rpa_noneu             => x_appno_first_rpa_noneu,
      x_appno_first_rpa_eu                => x_appno_first_rpa_eu,
      x_extra_start_date                  => x_extra_start_date  ,
      x_last_passport_date                => x_last_passport_date,
      x_last_le_date                         => x_last_le_date,
      x_system_code                       => x_system_code  ,
      x_ucas_cycle                        => x_ucas_cycle,
      x_gttr_clear_toy_code               => x_gttr_clear_toy_code,
      x_transaction_toy_code              => x_transaction_toy_code
     );
Line: 780

    UPDATE igs_uc_ucas_control
      SET
        entry_year                        = new_references.entry_year,
        time_of_year                      = new_references.time_of_year,
        time_of_day                       = new_references.time_of_day,
        routeb_time_of_year               = new_references.routeb_time_of_year,
        appno_first                       = new_references.appno_first,
        appno_maximum                     = new_references.appno_maximum,
        appno_last_used                   = new_references.appno_last_used,
        last_daily_run_no                 = new_references.last_daily_run_no,
        last_daily_run_date               = new_references.last_daily_run_date,
        appno_15dec                       = new_references.appno_15dec,
        run_date_15dec                    = new_references.run_date_15dec,
        appno_24mar                       = new_references.appno_24mar,
        run_date_24mar                    = new_references.run_date_24mar,
        appno_16may                       = new_references.appno_16may,
        run_date_16may                    = new_references.run_date_16may,
        appno_decision_proc               = new_references.appno_decision_proc,
        run_date_decision_proc            = new_references.run_date_decision_proc,
        appno_first_pre_num               = new_references.appno_first_pre_num,
        news                              = new_references.news,
        no_more_la_tran                   = new_references.no_more_la_tran,
        star_x_avail                      = new_references.star_x_avail,
        last_update_date                  = x_last_update_date,
        last_updated_by                   = x_last_updated_by,
        last_update_login                 = x_last_update_login,
        appno_first_opf                   = new_references.appno_first_opf,
        appno_first_rpa_noneu             = new_references.appno_first_rpa_noneu,
        appno_first_rpa_eu                = new_references.appno_first_rpa_eu,
        extra_start_date                  = new_references.extra_start_date,
        last_passport_date                          = new_references.last_passport_date ,
        last_le_date                                  = new_references.last_le_date,

        system_code                       = new_references.system_code  ,
        ucas_cycle                        = new_references.ucas_cycle,
        gttr_clear_toy_code               = new_references.gttr_clear_toy_code,
        transaction_toy_code              = new_references.transaction_toy_code



      WHERE rowid = x_rowid;
Line: 826

  END update_row;
Line: 872

  ||  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
  ||  jchakrab   20-Feb-2006   Modified cursor c1 for 3696223 - added WHERE clause
  ||  (reverse chronological order - newest change first)
  */
    CURSOR c1 IS
      SELECT   rowid
      FROM     igs_uc_ucas_control
      WHERE    system_code = x_system_code
      AND      ucas_cycle = x_ucas_cycle;
Line: 893

      insert_row (
        x_rowid,
        x_entry_year,
        x_time_of_year,
        x_time_of_day,
        x_routeb_time_of_year,
        x_appno_first,
        x_appno_maximum,
        x_appno_last_used,
        x_last_daily_run_no,
        x_last_daily_run_date,
        x_appno_15dec,
        x_run_date_15dec,
        x_appno_24mar,
        x_run_date_24mar,
        x_appno_16may,
        x_run_date_16may,
        x_appno_decision_proc,
        x_run_date_decision_proc,
        x_appno_first_pre_num,
        x_news,
        x_no_more_la_tran,
        x_star_x_avail,
        x_mode,
        x_appno_first_opf,
        x_appno_first_rpa_noneu,
        x_appno_first_rpa_eu,
        x_extra_start_date,
        x_last_passport_date,
        x_last_le_date,
        x_system_code,
        x_ucas_cycle,
        x_gttr_clear_toy_code,
        x_transaction_toy_code
      );
Line: 932

    update_row (
      x_rowid,
      x_entry_year,
      x_time_of_year,
      x_time_of_day,
      x_routeb_time_of_year,
      x_appno_first,
      x_appno_maximum,
      x_appno_last_used,
      x_last_daily_run_no,
      x_last_daily_run_date,
      x_appno_15dec,
      x_run_date_15dec,
      x_appno_24mar,
      x_run_date_24mar,
      x_appno_16may,
      x_run_date_16may,
      x_appno_decision_proc,
      x_run_date_decision_proc,
      x_appno_first_pre_num,
      x_news,
      x_no_more_la_tran,
      x_star_x_avail,
      x_mode,
      x_appno_first_opf,
      x_appno_first_rpa_noneu,
      x_appno_first_rpa_eu   ,
      x_extra_start_date,
      x_last_passport_date,
      x_last_le_date,
      x_system_code,
      x_ucas_cycle,
      x_gttr_clear_toy_code,
      x_transaction_toy_code
    );
Line: 971

  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: 990

    DELETE FROM igs_uc_ucas_control
    WHERE rowid = x_rowid;
Line: 997

  END delete_row;