DBA Data[Home] [Help]

APPS.IGS_AS_SUA_AI_GROUP_PKG SQL Statements

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

Line: 24

    x_logical_delete_date               IN     DATE,
    x_creation_date                     IN     DATE,
    x_created_by                        IN     NUMBER,
    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 10-OCT-2003
  ||  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_as_sua_ai_group
      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: 77

    new_references.logical_delete_date               := x_logical_delete_date;
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: 163

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

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

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

      SELECT   rowid
      FROM     igs_as_sua_ai_group
      WHERE    sua_ass_item_group_id = x_sua_ass_item_group_id
      FOR UPDATE NOWAIT;
Line: 244

      SELECT   rowid
      FROM     igs_as_sua_ai_group
      WHERE    person_id = x_person_id
      AND      course_cd = x_course_cd
      AND      uoo_id = x_uoo_id
      AND      group_name = x_group_name
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 284

      SELECT   rowid
      FROM     igs_as_sua_ai_group
      WHERE   ((course_cd = x_course_cd) AND
               (person_id = x_person_id) AND
               (uoo_id = x_uoo_id));
Line: 321

      SELECT   rowid
      FROM     igs_as_sua_ai_group
      WHERE   ((unit_ass_item_group_id = x_unit_ass_item_group_id));
Line: 356

      SELECT   rowid
      FROM     igs_as_sua_ai_group
      WHERE   ((us_ass_item_group_id = x_us_ass_item_group_id));
Line: 394

    x_logical_delete_date               IN     DATE,
    x_creation_date                     IN     DATE,
    x_created_by                        IN     NUMBER,
    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 10-OCT-2003
  ||  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_sua_ass_item_group_id,
      x_person_id,
      x_course_cd,
      x_uoo_id,
      x_group_name,
      x_midterm_formula_code,
      x_midterm_formula_qty,
      x_midterm_weight_qty,
      x_final_formula_code,
      x_final_formula_qty,
      x_final_weight_qty,
      x_unit_ass_item_group_id,
      x_us_ass_item_group_id,
      x_logical_delete_date,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 437

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

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

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

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

    ELSIF (p_action = 'VALIDATE_DELETE') THEN
      Check_Child_Existance;
Line: 473

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_sua_ass_item_group_id             IN OUT NOCOPY NUMBER,
    x_person_id                         IN     NUMBER,
    x_course_cd                         IN     VARCHAR2,
    x_uoo_id                            IN     NUMBER,
    x_group_name                        IN     VARCHAR2,
    x_midterm_formula_code              IN     VARCHAR2,
    x_midterm_formula_qty               IN     NUMBER,
    x_midterm_weight_qty                IN     NUMBER,
    x_final_formula_code                IN     VARCHAR2,
    x_final_formula_qty                 IN     NUMBER,
    x_final_weight_qty                  IN     NUMBER,
    x_unit_ass_item_group_id            IN     NUMBER,
    x_us_ass_item_group_id              IN     NUMBER,
    x_logical_delete_date               IN     DATE,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 10-OCT-2003
  ||  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: 502

    x_last_updated_by            NUMBER;
Line: 503

    x_last_update_login          NUMBER;
Line: 507

    x_last_update_date := SYSDATE;
Line: 509

      x_last_updated_by := 1;
Line: 510

      x_last_update_login := 0;
Line: 512

      x_last_updated_by := fnd_global.user_id;
Line: 513

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

      x_last_update_login := fnd_global.login_id;
Line: 517

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

      fnd_message.set_token ('ROUTINE', 'IGS_AS_SUA_AI_GROUP_PKG.INSERT_ROW');
Line: 530

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_sua_ass_item_group_id             => x_sua_ass_item_group_id,
      x_person_id                         => x_person_id,
      x_course_cd                         => x_course_cd,
      x_uoo_id                            => x_uoo_id,
      x_group_name                        => x_group_name,
      x_midterm_formula_code              => x_midterm_formula_code,
      x_midterm_formula_qty               => x_midterm_formula_qty,
      x_midterm_weight_qty                => x_midterm_weight_qty,
      x_final_formula_code                => x_final_formula_code,
      x_final_formula_qty                 => x_final_formula_qty,
      x_final_weight_qty                  => x_final_weight_qty,
      x_unit_ass_item_group_id            => x_unit_ass_item_group_id,
      x_us_ass_item_group_id              => x_us_ass_item_group_id,
      x_logical_delete_date               => x_logical_delete_date,
      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: 556

  INSERT INTO igs_as_sua_ai_group (
      sua_ass_item_group_id,
      person_id,
      course_cd,
      uoo_id,
      group_name,
      midterm_formula_code,
      midterm_formula_qty,
      midterm_weight_qty,
      final_formula_code,
      final_formula_qty,
      final_weight_qty,
      unit_ass_item_group_id,
      us_ass_item_group_id,
      logical_delete_date,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      igs_as_sua_ai_group_s.NEXTVAL,
      new_references.person_id,
      new_references.course_cd,
      new_references.uoo_id,
      new_references.group_name,
      new_references.midterm_formula_code,
      new_references.midterm_formula_qty,
      new_references.midterm_weight_qty,
      new_references.final_formula_code,
      new_references.final_formula_qty,
      new_references.final_weight_qty,
      new_references.unit_ass_item_group_id,
      new_references.us_ass_item_group_id,
      new_references.logical_delete_date,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    ) RETURNING ROWID, sua_ass_item_group_id INTO x_rowid, x_sua_ass_item_group_id;
Line: 618

 END insert_row;
Line: 636

    x_logical_delete_date               IN     DATE
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 10-OCT-2003
  ||  Purpose : Handles the LOCK mechanism for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
    CURSOR c1 IS
      SELECT
        person_id,
        course_cd,
        uoo_id,
        group_name,
        midterm_formula_code,
        midterm_formula_qty,
        midterm_weight_qty,
        final_formula_code,
        final_formula_qty,
        final_weight_qty,
        unit_ass_item_group_id,
        us_ass_item_group_id,
        logical_delete_date
      FROM  igs_as_sua_ai_group
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 673

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

        AND ((tlinfo.logical_delete_date = x_logical_delete_date) OR ((tlinfo.logical_delete_date IS NULL) AND (x_logical_delete_date IS NULL)))
       ) THEN
      NULL;
Line: 708

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_sua_ass_item_group_id             IN     NUMBER,
    x_person_id                         IN     NUMBER,
    x_course_cd                         IN     VARCHAR2,
    x_uoo_id                            IN     NUMBER,
    x_group_name                        IN     VARCHAR2,
    x_midterm_formula_code              IN     VARCHAR2,
    x_midterm_formula_qty               IN     NUMBER,
    x_midterm_weight_qty                IN     NUMBER,
    x_final_formula_code                IN     VARCHAR2,
    x_final_formula_qty                 IN     NUMBER,
    x_final_weight_qty                  IN     NUMBER,
    x_unit_ass_item_group_id            IN     NUMBER,
    x_us_ass_item_group_id              IN     NUMBER,
    x_logical_delete_date               IN     DATE,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 10-OCT-2003
  ||  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: 736

    x_last_updated_by            NUMBER;
Line: 737

    x_last_update_login          NUMBER;
Line: 741

    x_last_update_date := SYSDATE;
Line: 743

      x_last_updated_by := 1;
Line: 744

      x_last_update_login := 0;
Line: 746

      x_last_updated_by := fnd_global.user_id;
Line: 747

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

      x_last_update_login := fnd_global.login_id;
Line: 751

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

      fnd_message.set_token ('ROUTINE', 'IGS_AS_SUA_AI_GROUP_PKG.UPDATE_ROW');
Line: 762

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_sua_ass_item_group_id             => x_sua_ass_item_group_id,
      x_person_id                         => x_person_id,
      x_course_cd                         => x_course_cd,
      x_uoo_id                            => x_uoo_id,
      x_group_name                        => x_group_name,
      x_midterm_formula_code              => x_midterm_formula_code,
      x_midterm_formula_qty               => x_midterm_formula_qty,
      x_midterm_weight_qty                => x_midterm_weight_qty,
      x_final_formula_code                => x_final_formula_code,
      x_final_formula_qty                 => x_final_formula_qty,
      x_final_weight_qty                  => x_final_weight_qty,
      x_unit_ass_item_group_id            => x_unit_ass_item_group_id,
      x_us_ass_item_group_id              => x_us_ass_item_group_id,
      x_logical_delete_date               => x_logical_delete_date,
      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: 788

  UPDATE igs_as_sua_ai_group
      SET
        person_id                         = new_references.person_id,
        course_cd                         = new_references.course_cd,
        uoo_id                            = new_references.uoo_id,
        group_name                        = new_references.group_name,
        midterm_formula_code              = new_references.midterm_formula_code,
        midterm_formula_qty               = new_references.midterm_formula_qty,
        midterm_weight_qty                = new_references.midterm_weight_qty,
        final_formula_code                = new_references.final_formula_code,
        final_formula_qty                 = new_references.final_formula_qty,
        final_weight_qty                  = new_references.final_weight_qty,
        unit_ass_item_group_id            = new_references.unit_ass_item_group_id,
        us_ass_item_group_id              = new_references.us_ass_item_group_id,
        logical_delete_date               = new_references.logical_delete_date,
        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: 832

 END update_row;
Line: 850

    x_logical_delete_date               IN     DATE,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 10-OCT-2003
  ||  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_as_sua_ai_group
      WHERE    sua_ass_item_group_id             = x_sua_ass_item_group_id;
Line: 874

      insert_row (
        x_rowid,
        x_sua_ass_item_group_id,
        x_person_id,
        x_course_cd,
        x_uoo_id,
        x_group_name,
        x_midterm_formula_code,
        x_midterm_formula_qty,
        x_midterm_weight_qty,
        x_final_formula_code,
        x_final_formula_qty,
        x_final_weight_qty,
        x_unit_ass_item_group_id,
        x_us_ass_item_group_id,
        x_logical_delete_date,
        x_mode
      );
Line: 896

    update_row (
      x_rowid,
      x_sua_ass_item_group_id,
      x_person_id,
      x_course_cd,
      x_uoo_id,
      x_group_name,
      x_midterm_formula_code,
      x_midterm_formula_qty,
      x_midterm_weight_qty,
      x_final_formula_code,
      x_final_formula_qty,
      x_final_weight_qty,
      x_unit_ass_item_group_id,
      x_us_ass_item_group_id,
      x_logical_delete_date,
      x_mode
    );
Line: 918

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2,
  x_mode IN VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 10-OCT-2003
  ||  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: 941

  DELETE FROM igs_as_sua_ai_group
    WHERE rowid = x_rowid;
Line: 955

  END delete_row;