DBA Data[Home] [Help]

APPS.IGF_SE_AUTH_PKG SQL Statements

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

Line: 18

 | that they were inserted by datamerge.                                 |
 |                                                                       |
 | The ADD_ROW routine will see whether a row exists by selecting        |
 | based on the primary key, and updates the row if it exists,           |
 | or inserts the row if it doesn't already exist.                       |
 |                                                                       |
 | This module is called by AutoInstall (afplss.drv) on install and      |
 | upgrade.  The WHENEVER SQLERROR and EXIT (at bottom) are required.    |
 |                                                                       |
 | HISTORY                                                               |
 |veramach    July 2004     Obsoleted min_hr_rate,max_hr_rate,           |
 |                          govt_share_perct,ld_cal_type,                |
 |                          ld_sequence_number                           |
 |                          Added award_id,authorization_date,           |
 |                          notification_date                            |
 *=======================================================================*/

  l_rowid VARCHAR2(25);
Line: 74

    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_award_id                          IN     NUMBER      DEFAULT NULL,
    x_authorization_date                IN     DATE        DEFAULT NULL,
    x_notification_date                 IN     DATE        DEFAULT NULL
  ) AS
  /*
  ||  Created By : ssawhney
  ||  Created On : 31-DEC-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     IGF_SE_AUTH
      WHERE    rowid = x_rowid;
Line: 104

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 157

    new_references.last_updated_by                   := x_last_updated_by;
Line: 158

    new_references.last_update_login                 := x_last_update_login;
Line: 209

      SELECT   rowid
      FROM     igf_se_auth
      WHERE    sequence_no = x_sequence_no
      FOR UPDATE NOWAIT;
Line: 267

    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_award_id                          IN     NUMBER      DEFAULT NULL,
    x_authorization_date                IN     DATE        DEFAULT NULL,
    x_notification_date                 IN     DATE        DEFAULT NULL
  ) AS
  /*
  ||  Created By : ssawhney
  ||  Created On : 31-DEC-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_sequence_no,
      x_auth_id,
      x_flag,
      x_person_id,
      x_first_name,
      x_last_name,
      x_address1,
      x_address2,
      x_address3,
      x_address4,
      x_city,
      x_state,
      x_province,
      x_county,
      x_country,
      x_sex,
      x_birth_dt,
      x_ssn_no,
      x_marital_status,
      x_visa_type,
      x_visa_category,
      x_visa_number,
      x_visa_expiry_dt,
      x_entry_date,
      x_fund_id,
      x_threshold_perct,
      x_threshold_value,
      x_accepted_amnt,
      x_aw_cal_type,
      x_aw_sequence_number,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      x_award_id,
      x_authorization_date,
      x_notification_date
    );
Line: 329

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_sequence_no                       IN OUT NOCOPY NUMBER,
    x_auth_id                           IN     NUMBER,
    x_flag                              IN     VARCHAR2,
    x_person_id                         IN     NUMBER,
    x_first_name                        IN     VARCHAR2,
    x_last_name                         IN     VARCHAR2,
    x_address1                          IN     VARCHAR2,
    x_address2                          IN     VARCHAR2,
    x_address3                          IN     VARCHAR2,
    x_address4                          IN     VARCHAR2,
    x_city                              IN     VARCHAR2,
    x_state                             IN     VARCHAR2,
    x_province                          IN     VARCHAR2,
    x_county                            IN     VARCHAR2,
    x_country                           IN     VARCHAR2,
    x_sex                               IN     VARCHAR2,
    x_birth_dt                          IN     DATE,
    x_ssn_no                            IN     VARCHAR2,
    x_marital_status                    IN     VARCHAR2,
    x_visa_type                         IN     VARCHAR2,
    x_visa_category                     IN     VARCHAR2,
    x_visa_number                       IN     VARCHAR2,
    x_visa_expiry_dt                    IN     DATE,
    x_entry_date                        IN     DATE,
    x_fund_id                           IN     NUMBER,
    x_threshold_perct                   IN     NUMBER,
    x_threshold_value                   IN     NUMBER,
    x_accepted_amnt                     IN     NUMBER,
    x_aw_cal_type                       IN     VARCHAR2,
    x_aw_sequence_number                IN     NUMBER,
    x_mode                              IN     VARCHAR2 DEFAULT 'R',
    x_award_id                          IN     NUMBER,
    x_authorization_date                IN     DATE,
    x_notification_date                 IN     DATE
  ) AS
  /*
  ||  Created By : ssawhney
  ||  Created On : 31-DEC-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     igf_se_auth
      WHERE    sequence_no                       = x_sequence_no;
Line: 416

    x_last_update_date           DATE;
Line: 417

    x_last_updated_by            NUMBER;
Line: 418

    x_last_update_login          NUMBER;
Line: 422

    x_program_update_date        DATE;
Line: 426

    x_last_update_date := SYSDATE;
Line: 428

      x_last_updated_by := 1;
Line: 429

      x_last_update_login := 0;
Line: 431

      x_last_updated_by := fnd_global.user_id;
Line: 432

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

      x_last_update_login := fnd_global.login_id;
Line: 436

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

        x_program_update_date    := NULL;
Line: 449

        x_program_update_date    := SYSDATE;
Line: 457

    SELECT    igf_se_auth_s.NEXTVAL
    INTO      x_sequence_no
    FROM      dual;
Line: 462

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_sequence_no                       => x_sequence_no,
      x_auth_id                           => x_auth_id,
      x_flag                              => x_flag,
      x_person_id                         => x_person_id,
      x_first_name                        => x_first_name,
      x_last_name                         => x_last_name,
      x_address1                          => x_address1,
      x_address2                          => x_address2,
      x_address3                          => x_address3,
      x_address4                          => x_address4,
      x_city                              => x_city,
      x_state                             => x_state,
      x_province                          => x_province,
      x_county                            => x_county,
      x_country                           => x_country,
      x_sex                               => x_sex,
      x_birth_dt                          => x_birth_dt,
      x_ssn_no                            => x_ssn_no,
      x_marital_status                    => x_marital_status,
      x_visa_type                         => x_visa_type,
      x_visa_category                     => x_visa_category,
      x_visa_number                       => x_visa_number,
      x_visa_expiry_dt                    => x_visa_expiry_dt,
      x_entry_date                        => x_entry_date,
      x_fund_id                           => x_fund_id,
      x_threshold_perct                   => x_threshold_perct,
      x_threshold_value                   => x_threshold_value,
      x_accepted_amnt                     => x_accepted_amnt,
      x_aw_cal_type                       => x_aw_cal_type,
      x_aw_sequence_number                => x_aw_sequence_number,
      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_award_id                          => x_award_id,
      x_authorization_date                => x_authorization_date,
      x_notification_date                 => x_notification_date
    );
Line: 504

    INSERT INTO igf_se_auth (
      sequence_no,
      auth_id,
      flag,
      person_id,
      first_name,
      last_name,
      address1,
      address2,
      address3,
      address4,
      city,
      state,
      province,
      county,
      country,
      sex,
      birth_dt,
      ssn_no,
      marital_status,
      visa_type,
      visa_category,
      visa_number,
      visa_expiry_dt,
      entry_date,
      fund_id,
      threshold_perct,
      threshold_value,
      accepted_amnt,
      aw_cal_type,
      aw_sequence_number,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      request_id,
      program_id,
      program_application_id,
      program_update_date,
      award_id,
      authorization_date,
      notification_date
    ) VALUES (
      new_references.sequence_no,
      new_references.auth_id,
      new_references.flag,
      new_references.person_id,
      new_references.first_name,
      new_references.last_name,
      new_references.address1,
      new_references.address2,
      new_references.address3,
      new_references.address4,
      new_references.city,
      new_references.state,
      new_references.province,
      new_references.county,
      new_references.country,
      new_references.sex,
      new_references.birth_dt,
      new_references.ssn_no,
      new_references.marital_status,
      new_references.visa_type,
      new_references.visa_category,
      new_references.visa_number,
      new_references.visa_expiry_dt,
      new_references.entry_date,
      new_references.fund_id,
      new_references.threshold_perct,
      new_references.threshold_value,
      new_references.accepted_amnt,
      new_references.aw_cal_type,
      new_references.aw_sequence_number,
      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,
      new_references.award_id,
      new_references.authorization_date,
      new_references.notification_date
    );
Line: 600

  END insert_row;
Line: 649

      SELECT
        auth_id,
        flag,
        person_id,
        first_name,
        last_name,
        address1,
        address2,
        address3,
        address4,
        city,
        state,
        province,
        county,
        country,
        sex,
        birth_dt,
        ssn_no,
        marital_status,
        visa_type,
        visa_category,
        visa_number,
        visa_expiry_dt,
        entry_date,
        fund_id,
        threshold_perct,
        threshold_value,
        accepted_amnt,
        aw_cal_type,
        aw_sequence_number,
        award_id,
        authorization_date,
        notification_date
      FROM  igf_se_auth
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 693

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_sequence_no                       IN     NUMBER,
    x_auth_id                           IN     NUMBER,
    x_flag                              IN     VARCHAR2,
    x_person_id                         IN     NUMBER,
    x_first_name                        IN     VARCHAR2,
    x_last_name                         IN     VARCHAR2,
    x_address1                          IN     VARCHAR2,
    x_address2                          IN     VARCHAR2,
    x_address3                          IN     VARCHAR2,
    x_address4                          IN     VARCHAR2,
    x_city                              IN     VARCHAR2,
    x_state                             IN     VARCHAR2,
    x_province                          IN     VARCHAR2,
    x_county                            IN     VARCHAR2,
    x_country                           IN     VARCHAR2,
    x_sex                               IN     VARCHAR2,
    x_birth_dt                          IN     DATE,
    x_ssn_no                            IN     VARCHAR2,
    x_marital_status                    IN     VARCHAR2,
    x_visa_type                         IN     VARCHAR2,
    x_visa_category                     IN     VARCHAR2,
    x_visa_number                       IN     VARCHAR2,
    x_visa_expiry_dt                    IN     DATE,
    x_entry_date                        IN     DATE,
    x_fund_id                           IN     NUMBER,
    x_threshold_perct                   IN     NUMBER,
    x_threshold_value                   IN     NUMBER,
    x_accepted_amnt                     IN     NUMBER,
    x_aw_cal_type                       IN     VARCHAR2,
    x_aw_sequence_number                IN     NUMBER,
    x_mode                              IN     VARCHAR2 DEFAULT 'R',
    x_award_id                          IN     NUMBER,
    x_authorization_date                IN     DATE,
    x_notification_date                 IN     DATE
  ) AS
  /*
  ||  Created By : ssawhney
  ||  Created On : 31-DEC-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: 794

    x_last_updated_by            NUMBER;
Line: 795

    x_last_update_login          NUMBER;
Line: 799

    x_program_update_date        DATE;
Line: 803

    x_last_update_date := SYSDATE;
Line: 805

      x_last_updated_by := 1;
Line: 806

      x_last_update_login := 0;
Line: 808

      x_last_updated_by := fnd_global.user_id;
Line: 809

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

      x_last_update_login := fnd_global.login_id;
Line: 813

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_sequence_no                       => x_sequence_no,
      x_auth_id                           => x_auth_id,
      x_flag                              => x_flag,
      x_person_id                         => x_person_id,
      x_first_name                        => x_first_name,
      x_last_name                         => x_last_name,
      x_address1                          => x_address1,
      x_address2                          => x_address2,
      x_address3                          => x_address3,
      x_address4                          => x_address4,
      x_city                              => x_city,
      x_state                             => x_state,
      x_province                          => x_province,
      x_county                            => x_county,
      x_country                           => x_country,
      x_sex                               => x_sex,
      x_birth_dt                          => x_birth_dt,
      x_ssn_no                            => x_ssn_no,
      x_marital_status                    => x_marital_status,
      x_visa_type                         => x_visa_type,
      x_visa_category                     => x_visa_category,
      x_visa_number                       => x_visa_number,
      x_visa_expiry_dt                    => x_visa_expiry_dt,
      x_entry_date                        => x_entry_date,
      x_fund_id                           => x_fund_id,
      x_threshold_perct                   => x_threshold_perct,
      x_threshold_value                   => x_threshold_value,
      x_accepted_amnt                     => x_accepted_amnt,
      x_aw_cal_type                       => x_aw_cal_type,
      x_aw_sequence_number                => x_aw_sequence_number,
      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_award_id                          => x_award_id,
      x_authorization_date                => x_authorization_date,
      x_notification_date                 => x_notification_date
    );
Line: 873

        x_program_update_date := old_references.program_update_date;
Line: 875

        x_program_update_date := SYSDATE;
Line: 879

    UPDATE igf_se_auth
      SET
        auth_id                           = new_references.auth_id,
        flag                              = new_references.flag,
        person_id                         = new_references.person_id,
        first_name                        = new_references.first_name,
        last_name                         = new_references.last_name,
        address1                          = new_references.address1,
        address2                          = new_references.address2,
        address3                          = new_references.address3,
        address4                          = new_references.address4,
        city                              = new_references.city,
        state                             = new_references.state,
        province                          = new_references.province,
        county                            = new_references.county,
        country                           = new_references.country,
        sex                               = new_references.sex,
        birth_dt                          = new_references.birth_dt,
        ssn_no                            = new_references.ssn_no,
        marital_status                    = new_references.marital_status,
        visa_type                         = new_references.visa_type,
        visa_category                     = new_references.visa_category,
        visa_number                       = new_references.visa_number,
        visa_expiry_dt                    = new_references.visa_expiry_dt,
        entry_date                        = new_references.entry_date,
        fund_id                           = new_references.fund_id,
        threshold_perct                   = new_references.threshold_perct,
        threshold_value                   = new_references.threshold_value,
        accepted_amnt                     = new_references.accepted_amnt,
        aw_cal_type                       = new_references.aw_cal_type,
        aw_sequence_number                = new_references.aw_sequence_number,
        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,
        award_id                          = x_award_id,
        authorization_date                = x_authorization_date,
        notification_date                 = x_notification_date
      WHERE rowid = x_rowid;
Line: 925

  END update_row;
Line: 968

  ||  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_se_auth
      WHERE    sequence_no                       = x_sequence_no;
Line: 986

      insert_row (
        x_rowid,
        x_sequence_no,
        x_auth_id,
        x_flag,
        x_person_id,
        x_first_name,
        x_last_name,
        x_address1,
        x_address2,
        x_address3,
        x_address4,
        x_city,
        x_state,
        x_province,
        x_county,
        x_country,
        x_sex,
        x_birth_dt,
        x_ssn_no,
        x_marital_status,
        x_visa_type,
        x_visa_category,
        x_visa_number,
        x_visa_expiry_dt,
        x_entry_date,
        x_fund_id,
        x_threshold_perct,
        x_threshold_value,
        x_accepted_amnt,
        x_aw_cal_type,
        x_aw_sequence_number,
        x_mode,
        x_award_id,
        x_authorization_date,
        x_notification_date
      );
Line: 1027

    update_row (
      x_rowid,
      x_sequence_no,
      x_auth_id,
      x_flag,
      x_person_id,
      x_first_name,
      x_last_name,
      x_address1,
      x_address2,
      x_address3,
      x_address4,
      x_city,
      x_state,
      x_province,
      x_county,
      x_country,
      x_sex,
      x_birth_dt,
      x_ssn_no,
      x_marital_status,
      x_visa_type,
      x_visa_category,
      x_visa_number,
      x_visa_expiry_dt,
      x_entry_date,
      x_fund_id,
      x_threshold_perct,
      x_threshold_value,
      x_accepted_amnt,
      x_aw_cal_type,
      x_aw_sequence_number,
      x_mode,
      x_award_id,
      x_authorization_date,
      x_notification_date
    );
Line: 1068

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : ssawhney
  ||  Created On : 31-DEC-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: 1087

    DELETE FROM igf_se_auth
    WHERE rowid = x_rowid;
Line: 1094

  END delete_row;