DBA Data[Home] [Help]

APPS.IGF_SP_STDNT_REL_PKG SQL Statements

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

Line: 22

    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 :
  ||  Created On : 28-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_sp_stdnt_rel_all
      WHERE    rowid = x_rowid;
Line: 49

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 78

    new_references.last_updated_by                   := x_last_updated_by;
Line: 79

    new_references.last_update_login                 := x_last_update_login;
Line: 133

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

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

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

      SELECT   rowid
      FROM     igf_sp_stdnt_rel_all
      WHERE    spnsr_stdnt_id = x_spnsr_stdnt_id
      FOR UPDATE NOWAIT;
Line: 233

      SELECT   rowid
      FROM     igf_sp_stdnt_rel_all
      WHERE    fund_id = x_fund_id
      AND      base_id = x_base_id
      AND      ld_cal_type = x_ld_cal_type
      AND      ld_sequence_number = x_ld_sequence_number
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 271

      SELECT   rowid
      FROM     igf_sp_stdnt_rel_all
      WHERE   ((person_id = x_party_id));
Line: 307

      SELECT   rowid
      FROM     igf_sp_stdnt_rel_all
      WHERE   ((ld_cal_type = x_cal_type) AND
               (ld_sequence_number = x_sequence_number));
Line: 343

      SELECT   rowid
      FROM     igf_sp_stdnt_rel_all
      WHERE   ((base_id = x_base_id));
Line: 378

      SELECT   rowid
      FROM     igf_sp_stdnt_rel_all
      WHERE   ((fund_id = x_fund_id));
Line: 414

    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 :
  ||  Created On : 28-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)
  ||   smadathi    18-FEB-2003     Bug 2473845. Added logic to re initialize l_rowid to null.
  */
  BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_spnsr_stdnt_id,
      x_fund_id,
      x_base_id,
      x_person_id,
      x_ld_cal_type,
      x_ld_sequence_number,
      x_tot_spnsr_amount,
      x_min_credit_points,
      x_min_attendance_type,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 450

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

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

    ELSIF (p_action = 'DELETE') THEN
      -- Call all the procedures related to Before Delete.
      check_child_existance;
Line: 469

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

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

    ELSIF (p_action = 'VALIDATE_DELETE') THEN
      check_child_existance;
Line: 489

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_spnsr_stdnt_id                    IN OUT NOCOPY NUMBER,
    x_fund_id                           IN     NUMBER,
    x_base_id                           IN     NUMBER,
    x_person_id                         IN     NUMBER,
    x_ld_cal_type                       IN     VARCHAR2,
    x_ld_sequence_number                IN     NUMBER,
    x_tot_spnsr_amount                  IN     NUMBER,
    x_min_credit_points                 IN     NUMBER,
    x_min_attendance_type               IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By :
  ||  Created On : 28-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_sp_stdnt_rel_all
      WHERE    spnsr_stdnt_id                    = x_spnsr_stdnt_id;
Line: 516

    x_last_update_date           DATE;
Line: 517

    x_last_updated_by            NUMBER;
Line: 518

    x_last_update_login          NUMBER;
Line: 522

    x_last_update_date := SYSDATE;
Line: 524

      x_last_updated_by := 1;
Line: 525

      x_last_update_login := 0;
Line: 527

      x_last_updated_by := fnd_global.user_id;
Line: 528

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

      x_last_update_login := fnd_global.login_id;
Line: 532

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

    SELECT    igf_sp_stdnt_rel_s.NEXTVAL
    INTO      x_spnsr_stdnt_id
    FROM      dual;
Line: 548

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_spnsr_stdnt_id                    => x_spnsr_stdnt_id,
      x_fund_id                           => x_fund_id,
      x_base_id                           => x_base_id,
      x_person_id                         => x_person_id,
      x_ld_cal_type                       => x_ld_cal_type,
      x_ld_sequence_number                => x_ld_sequence_number,
      x_tot_spnsr_amount                  => x_tot_spnsr_amount,
      x_min_credit_points                 => x_min_credit_points,
      x_min_attendance_type               => x_min_attendance_type,
      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: 566

    INSERT INTO igf_sp_stdnt_rel_all (
      spnsr_stdnt_id,
      fund_id,
      base_id,
      person_id,
      ld_cal_type,
      ld_sequence_number,
      tot_spnsr_amount,
      min_credit_points,
      min_attendance_type,
      org_id,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.spnsr_stdnt_id,
      new_references.fund_id,
      new_references.base_id,
      new_references.person_id,
      new_references.ld_cal_type,
      new_references.ld_sequence_number,
      new_references.tot_spnsr_amount,
      new_references.min_credit_points,
      new_references.min_attendance_type,
      new_references.org_id,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 608

  END insert_row;
Line: 633

      SELECT
        fund_id,
        base_id,
        person_id,
        ld_cal_type,
        ld_sequence_number,
        tot_spnsr_amount,
        min_credit_points,
        min_attendance_type
      FROM  igf_sp_stdnt_rel_all
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 653

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_spnsr_stdnt_id                    IN     NUMBER,
    x_fund_id                           IN     NUMBER,
    x_base_id                           IN     NUMBER,
    x_person_id                         IN     NUMBER,
    x_ld_cal_type                       IN     VARCHAR2,
    x_ld_sequence_number                IN     NUMBER,
    x_tot_spnsr_amount                  IN     NUMBER,
    x_min_credit_points                 IN     NUMBER,
    x_min_attendance_type               IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By :
  ||  Created On : 28-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: 706

    x_last_updated_by            NUMBER;
Line: 707

    x_last_update_login          NUMBER;
Line: 711

    x_last_update_date := SYSDATE;
Line: 713

      x_last_updated_by := 1;
Line: 714

      x_last_update_login := 0;
Line: 716

      x_last_updated_by := fnd_global.user_id;
Line: 717

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

      x_last_update_login := fnd_global.login_id;
Line: 721

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_spnsr_stdnt_id                    => x_spnsr_stdnt_id,
      x_fund_id                           => x_fund_id,
      x_base_id                           => x_base_id,
      x_person_id                         => x_person_id,
      x_ld_cal_type                       => x_ld_cal_type,
      x_ld_sequence_number                => x_ld_sequence_number,
      x_tot_spnsr_amount                  => x_tot_spnsr_amount,
      x_min_credit_points                 => x_min_credit_points,
      x_min_attendance_type               => x_min_attendance_type,
      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: 749

    UPDATE igf_sp_stdnt_rel_all
      SET
        fund_id                           = new_references.fund_id,
        base_id                           = new_references.base_id,
        person_id                         = new_references.person_id,
        ld_cal_type                       = new_references.ld_cal_type,
        ld_sequence_number                = new_references.ld_sequence_number,
        tot_spnsr_amount                  = new_references.tot_spnsr_amount,
        min_credit_points                 = new_references.min_credit_points,
        min_attendance_type               = new_references.min_attendance_type,
        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: 768

  END update_row;
Line: 787

  ||  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_sp_stdnt_rel_all
      WHERE    spnsr_stdnt_id                    = x_spnsr_stdnt_id;
Line: 805

      insert_row (
        x_rowid,
        x_spnsr_stdnt_id,
        x_fund_id,
        x_base_id,
        x_person_id,
        x_ld_cal_type,
        x_ld_sequence_number,
        x_tot_spnsr_amount,
        x_min_credit_points,
        x_min_attendance_type,
        x_mode
      );
Line: 822

    update_row (
      x_rowid,
      x_spnsr_stdnt_id,
      x_fund_id,
      x_base_id,
      x_person_id,
      x_ld_cal_type,
      x_ld_sequence_number,
      x_tot_spnsr_amount,
      x_min_credit_points,
      x_min_attendance_type,
      x_mode
    );
Line: 839

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

    DELETE FROM igf_sp_stdnt_rel_all
    WHERE rowid = x_rowid;
Line: 865

  END delete_row;