DBA Data[Home] [Help]

APPS.IGF_AP_FA_ANT_DATA_PKG SQL Statements

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

Line: 27

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : ridas
  ||  Created On : 17-OCT-2004
  ||  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_ap_fa_ant_data
      WHERE    rowid = x_rowid;
Line: 54

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 88

    new_references.last_updated_by                   := x_last_updated_by;
Line: 89

    new_references.last_update_login                 := x_last_update_login;
Line: 112

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

      SELECT   rowid
      FROM     igf_ap_fa_ant_data
      WHERE    base_id = x_base_id
      AND      ld_cal_type = x_ld_cal_type
      AND      ld_sequence_number = x_ld_sequence_number
      FOR UPDATE NOWAIT;
Line: 172

      SELECT   rowid
      FROM     igf_ap_fa_ant_data
      WHERE   ((base_id = x_base_id));
Line: 213

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : ridas
  ||  Created On : 17-OCT-2004
  ||  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_base_id,
      x_ld_cal_type,
      x_ld_sequence_number,
      x_org_unit_cd ,
      x_program_type,
      x_program_location_cd,
      x_program_cd,
      x_class_standing,
      x_residency_status_code,
      x_housing_status_code,
      x_attendance_type,
      x_attendance_mode,
      x_months_enrolled_num,
      x_credit_points_num,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 253

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_base_id                           IN     NUMBER,
    x_ld_cal_type                       IN     VARCHAR2,
    x_ld_sequence_number                IN     NUMBER,
    x_org_unit_cd                       IN     VARCHAR2,
    x_program_type                      IN     VARCHAR2,
    x_program_location_cd               IN     VARCHAR2,
    x_program_cd                        IN     VARCHAR2,
    x_class_standing                    IN     VARCHAR2,
    x_residency_status_code             IN     VARCHAR2,
    x_housing_status_code               IN     VARCHAR2,
    x_attendance_type                   IN     VARCHAR2,
    x_attendance_mode                   IN     VARCHAR2,
    x_months_enrolled_num               IN     NUMBER,
    x_credit_points_num                 IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : ridas
  ||  Created On : 17-OCT-2004
  ||  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)
  */

    x_last_update_date           DATE;
Line: 315

    x_last_updated_by            NUMBER;
Line: 316

    x_last_update_login          NUMBER;
Line: 320

    x_program_update_date        DATE;
Line: 324

    x_last_update_date := SYSDATE;
Line: 326

      x_last_updated_by := 1;
Line: 327

      x_last_update_login := 0;
Line: 329

      x_last_updated_by := fnd_global.user_id;
Line: 330

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

      x_last_update_login := fnd_global.login_id;
Line: 334

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

        x_program_update_date    := NULL;
Line: 347

        x_program_update_date    := SYSDATE;
Line: 351

      fnd_message.set_token ('ROUTINE', 'IGF_AP_FA_ANT_DATA_PKG.INSERT_ROW');
Line: 357

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_base_id                           => x_base_id,
      x_ld_cal_type                       => x_ld_cal_type,
      x_ld_sequence_number                => x_ld_sequence_number,
      x_org_unit_cd                       => x_org_unit_cd ,
      x_program_type                      => x_program_type,
      x_program_location_cd               => x_program_location_cd,
      x_program_cd                        => x_program_cd,
      x_class_standing                    => x_class_standing,
      x_residency_status_code             => x_residency_status_code,
      x_housing_status_code               => x_housing_status_code,
      x_attendance_type                   => x_attendance_type,
      x_attendance_mode                   => x_attendance_mode,
      x_months_enrolled_num               => x_months_enrolled_num,
      x_credit_points_num                 => x_credit_points_num,
      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: 380

    INSERT INTO igf_ap_fa_ant_data (
      base_id,
      ld_cal_type,
      ld_sequence_number,
      org_unit_cd ,
      program_type,
      program_location_cd,
      program_cd,
      class_standing,
      residency_status_code,
      housing_status_code,
      attendance_type,
      attendance_mode,
      months_enrolled_num,
      credit_points_num,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      request_id,
      program_id,
      program_application_id,
      program_update_date
    ) VALUES (
      new_references.base_id,
      new_references.ld_cal_type,
      new_references.ld_sequence_number,
      new_references.org_unit_cd ,
      new_references.program_type,
      new_references.program_location_cd,
      new_references.program_cd,
      new_references.class_standing,
      new_references.residency_status_code,
      new_references.housing_status_code,
      new_references.attendance_type,
      new_references.attendance_mode,
      new_references.months_enrolled_num,
      new_references.credit_points_num,
      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
    ) RETURNING ROWID INTO x_rowid;
Line: 430

  END insert_row;
Line: 460

      SELECT
        org_unit_cd ,
        program_type,
        program_location_cd,
        program_cd,
        class_standing,
        residency_status_code,
        housing_status_code,
        attendance_type,
        attendance_mode,
        months_enrolled_num,
        credit_points_num
      FROM  igf_ap_fa_ant_data
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 483

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_base_id                           IN     NUMBER,
    x_ld_cal_type                       IN     VARCHAR2,
    x_ld_sequence_number                IN     NUMBER,
    x_org_unit_cd                       IN     VARCHAR2,
    x_program_type                      IN     VARCHAR2,
    x_program_location_cd               IN     VARCHAR2,
    x_program_cd                        IN     VARCHAR2,
    x_class_standing                    IN     VARCHAR2,
    x_residency_status_code             IN     VARCHAR2,
    x_housing_status_code               IN     VARCHAR2,
    x_attendance_type                   IN     VARCHAR2,
    x_attendance_mode                   IN     VARCHAR2,
    x_months_enrolled_num               IN     NUMBER,
    x_credit_points_num                 IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : ridas
  ||  Created On : 17-OCT-2004
  ||  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: 544

    x_last_updated_by            NUMBER;
Line: 545

    x_last_update_login          NUMBER;
Line: 549

    x_program_update_date        DATE;
Line: 553

    x_last_update_date := SYSDATE;
Line: 555

      x_last_updated_by := 1;
Line: 556

      x_last_update_login := 0;
Line: 558

      x_last_updated_by := fnd_global.user_id;
Line: 559

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

      x_last_update_login := fnd_global.login_id;
Line: 563

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

      fnd_message.set_token ('ROUTINE', 'IGF_AP_FA_ANT_DATA_PKG.UPDATE_ROW');
Line: 574

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_base_id                           => x_base_id,
      x_ld_cal_type                       => x_ld_cal_type,
      x_ld_sequence_number                => x_ld_sequence_number,
      x_org_unit_cd                       => x_org_unit_cd ,
      x_program_type                      => x_program_type,
      x_program_location_cd               => x_program_location_cd,
      x_program_cd                        => x_program_cd,
      x_class_standing                    => x_class_standing,
      x_residency_status_code             => x_residency_status_code,
      x_housing_status_code               => x_housing_status_code,
      x_attendance_type                   => x_attendance_type,
      x_attendance_mode                   => x_attendance_mode,
      x_months_enrolled_num               => x_months_enrolled_num,
      x_credit_points_num                 => x_credit_points_num,
      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: 605

        x_program_update_date := old_references.program_update_date;
Line: 607

        x_program_update_date := SYSDATE;
Line: 611

    UPDATE igf_ap_fa_ant_data
      SET
        org_unit_cd                       = new_references.org_unit_cd ,
        program_type                      = new_references.program_type,
        program_location_cd               = new_references.program_location_cd,
        program_cd                        = new_references.program_cd,
        class_standing                    = new_references.class_standing,
        residency_status_code             = new_references.residency_status_code,
        housing_status_code               = new_references.housing_status_code,
        attendance_type                   = new_references.attendance_type,
        attendance_mode                   = new_references.attendance_mode,
        months_enrolled_num               = new_references.months_enrolled_num,
        credit_points_num                 = new_references.credit_points_num,
        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
      WHERE rowid = x_rowid;
Line: 637

  END update_row;
Line: 661

  ||  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_ap_fa_ant_data
      WHERE    base_id                           = x_base_id
      AND      ld_cal_type                       = x_ld_cal_type
      AND      ld_sequence_number                = x_ld_sequence_number;
Line: 681

      insert_row (
        x_rowid,
        x_base_id,
        x_ld_cal_type,
        x_ld_sequence_number,
        x_org_unit_cd ,
        x_program_type,
        x_program_location_cd,
        x_program_cd,
        x_class_standing,
        x_residency_status_code,
        x_housing_status_code,
        x_attendance_type,
        x_attendance_mode,
        x_months_enrolled_num,
        x_credit_points_num,
        x_mode
      );
Line: 703

    update_row (
      x_rowid,
      x_base_id,
      x_ld_cal_type,
      x_ld_sequence_number,
      x_org_unit_cd ,
      x_program_type,
      x_program_location_cd,
      x_program_cd,
      x_class_standing,
      x_residency_status_code,
      x_housing_status_code,
      x_attendance_type,
      x_attendance_mode,
      x_months_enrolled_num,
      x_credit_points_num,
      x_mode
    );
Line: 725

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : ridas
  ||  Created On : 17-OCT-2004
  ||  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: 744

    DELETE FROM igf_ap_fa_ant_data
    WHERE rowid = x_rowid;
Line: 751

  END delete_row;