DBA Data[Home] [Help]

APPS.IGS_AS_UNIT_AI_GRP_PKG SQL Statements

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

Line: 25

    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 : 01-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_unit_ai_grp
      WHERE    rowid = x_rowid;
Line: 52

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 84

    new_references.last_updated_by                   := x_last_updated_by;
Line: 85

    new_references.last_update_login                 := x_last_update_login;
Line: 160

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

      SELECT   rowid
      FROM     igs_as_unit_ai_grp
      WHERE    unit_ass_item_group_id = x_unit_ass_item_group_id
      FOR UPDATE NOWAIT;
Line: 220

      SELECT   rowid
      FROM     igs_as_unit_ai_grp
      WHERE    group_name = x_group_name
      AND      unit_cd = x_unit_cd
      AND      version_number = x_version_number
      AND      cal_type = x_cal_type
      AND      ci_sequence_number = x_ci_sequence_number
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 262

      SELECT   rowid
      FROM     igs_as_unit_ai_grp
      WHERE   ((cal_type = x_cal_type) AND
               (ci_sequence_number = x_ci_sequence_number) AND
               (unit_cd = x_unit_cd) AND
               (version_number = x_version_number));
Line: 304

    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 : 01-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_unit_ass_item_group_id,
      x_unit_cd,
      x_version_number,
      x_cal_type,
      x_ci_sequence_number,
      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_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 342

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

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

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

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

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

    IF (p_action IN ('VALIDATE_INSERT', 'VALIDATE_UPDATE', 'VALIDATE_DELETE')) THEN
      l_rowid := NULL;
Line: 382

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_unit_ass_item_group_id            IN OUT NOCOPY NUMBER,
    x_unit_cd                           IN     VARCHAR2,
    x_version_number                    IN     NUMBER,
    x_cal_type                          IN     VARCHAR2,
    x_ci_sequence_number                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_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 01-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: 409

    x_last_updated_by            NUMBER;
Line: 410

    x_last_update_login          NUMBER;
Line: 414

    x_last_update_date := SYSDATE;
Line: 416

      x_last_updated_by := 1;
Line: 417

      x_last_update_login := 0;
Line: 419

      x_last_updated_by := fnd_global.user_id;
Line: 420

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

      x_last_update_login := fnd_global.login_id;
Line: 424

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

      fnd_message.set_token ('ROUTINE', 'IGS_AS_UNIT_AI_GRP_PKG.INSERT_ROW');
Line: 437

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_unit_ass_item_group_id            => x_unit_ass_item_group_id,
      x_unit_cd                           => x_unit_cd,
      x_version_number                    => x_version_number,
      x_cal_type                          => x_cal_type,
      x_ci_sequence_number                => x_ci_sequence_number,
      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_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: 458

    INSERT INTO igs_as_unit_ai_grp (
      unit_ass_item_group_id,
      unit_cd,
      version_number,
      cal_type,
      ci_sequence_number,
      group_name,
      midterm_formula_code,
      midterm_formula_qty,
      midterm_weight_qty,
      final_formula_code,
      final_formula_qty,
      final_weight_qty,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      igs_as_unit_ai_grp_s.NEXTVAL,
      new_references.unit_cd,
      new_references.version_number,
      new_references.cal_type,
      new_references.ci_sequence_number,
      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,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    ) RETURNING ROWID, unit_ass_item_group_id INTO x_rowid, x_unit_ass_item_group_id;
Line: 498

  END insert_row;
Line: 526

      SELECT
        unit_cd,
        version_number,
        cal_type,
        ci_sequence_number,
        group_name,
        midterm_formula_code,
        midterm_formula_qty,
        midterm_weight_qty,
        final_formula_code,
        final_formula_qty,
        final_weight_qty
      FROM  igs_as_unit_ai_grp
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 549

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_unit_ass_item_group_id            IN     NUMBER,
    x_unit_cd                           IN     VARCHAR2,
    x_version_number                    IN     NUMBER,
    x_cal_type                          IN     VARCHAR2,
    x_ci_sequence_number                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_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 01-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: 608

    x_last_updated_by            NUMBER;
Line: 609

    x_last_update_login          NUMBER;
Line: 613

    x_last_update_date := SYSDATE;
Line: 615

      x_last_updated_by := 1;
Line: 616

      x_last_update_login := 0;
Line: 618

      x_last_updated_by := fnd_global.user_id;
Line: 619

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

      x_last_update_login := fnd_global.login_id;
Line: 623

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

      fnd_message.set_token ('ROUTINE', 'IGS_AS_UNIT_AI_GRP_PKG.UPDATE_ROW');
Line: 634

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_unit_ass_item_group_id            => x_unit_ass_item_group_id,
      x_unit_cd                           => x_unit_cd,
      x_version_number                    => x_version_number,
      x_cal_type                          => x_cal_type,
      x_ci_sequence_number                => x_ci_sequence_number,
      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_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: 655

    UPDATE igs_as_unit_ai_grp
      SET
        unit_cd                           = new_references.unit_cd,
        version_number                    = new_references.version_number,
        cal_type                          = new_references.cal_type,
        ci_sequence_number                = new_references.ci_sequence_number,
        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,
        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: 679

  END update_row;
Line: 701

  ||  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_unit_ai_grp
      WHERE    unit_ass_item_group_id            = x_unit_ass_item_group_id;
Line: 719

      insert_row (
        x_rowid,
        x_unit_ass_item_group_id,
        x_unit_cd,
        x_version_number,
        x_cal_type,
        x_ci_sequence_number,
        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_mode
      );
Line: 739

    update_row (
      x_rowid,
      x_unit_ass_item_group_id,
      x_unit_cd,
      x_version_number,
      x_cal_type,
      x_ci_sequence_number,
      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_mode
    );
Line: 759

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 01-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: 778

    DELETE FROM igs_as_unit_ai_grp
    WHERE rowid = x_rowid;
Line: 787

  END delete_row;