DBA Data[Home] [Help]

APPS.IGS_HE_SYS_RT_CL_ASS_PKG SQL Statements

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

Line: 19

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By :
  ||  Created On : 08-JAN-2006
  ||  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_he_sys_rt_cl_ass
      WHERE    rowid = x_rowid;
Line: 46

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 72

    new_references.last_updated_by                   := x_last_updated_by;
Line: 73

    new_references.last_update_login                 := x_last_update_login;
Line: 127

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

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

      SELECT   rowid
      FROM     igs_he_sys_rt_cl_ass
      WHERE    igs_he_sys_rt_cl_ass_id = x_igs_he_sys_rt_cl_ass_id
      FOR UPDATE NOWAIT;
Line: 198

      SELECT   rowid
      FROM     igs_he_sys_rt_cl_ass
      WHERE    system_return_class_type = x_system_return_class_type
      AND      field_number = x_field_number
      AND      association_code = x_association_code
      AND      ((oss_seq = x_oss_seq) OR (oss_seq IS NULL AND x_oss_seq IS NULL))
      AND      ((hesa_seq = x_hesa_seq) OR (hesa_seq IS NULL AND x_hesa_seq IS NULL))
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 238

      SELECT   rowid
      FROM     igs_he_sys_rt_cl_ass
      WHERE   ((field_number = x_field_number) AND
               (system_return_class_type = x_system_return_class_type));
Line: 274

      SELECT   rowid
      FROM     igs_he_sys_rt_cl_ass
      WHERE   ((association_code = x_association_code));
Line: 307

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By :
  ||  Created On : 08-JAN-2006
  ||  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_igs_he_sys_rt_cl_ass_id,
      x_system_return_class_type,
      x_field_number,
      x_association_code,
      x_oss_seq,
      x_hesa_seq,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 339

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_igs_he_sys_rt_cl_ass_id           IN OUT NOCOPY NUMBER,
    x_system_return_class_type          IN     VARCHAR2,
    x_field_number                      IN     NUMBER,
    x_association_code                  IN     VARCHAR2,
    x_oss_seq                           IN     NUMBER,
    x_hesa_seq                          IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By :
  ||  Created On : 08-JAN-2006
  ||  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: 394

    x_last_updated_by            NUMBER;
Line: 395

    x_last_update_login          NUMBER;
Line: 399

    x_last_update_date := SYSDATE;
Line: 401

      x_last_updated_by := 1;
Line: 402

      x_last_update_login := 0;
Line: 404

      x_last_updated_by := fnd_global.user_id;
Line: 405

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

      x_last_update_login := fnd_global.login_id;
Line: 409

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

      fnd_message.set_token ('ROUTINE', 'IGS_HE_SYS_RT_CL_ASS_PKG.INSERT_ROW');
Line: 422

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_igs_he_sys_rt_cl_ass_id           => x_igs_he_sys_rt_cl_ass_id,
      x_system_return_class_type          => x_system_return_class_type,
      x_field_number                      => x_field_number,
      x_association_code                  => x_association_code,
      x_oss_seq                           => x_oss_seq,
      x_hesa_seq                          => x_hesa_seq,
      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: 437

    INSERT INTO igs_he_sys_rt_cl_ass (
      igs_he_sys_rt_cl_ass_id,
      system_return_class_type,
      field_number,
      association_code,
      oss_seq,
      hesa_seq,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      igs_he_sys_rt_cl_ass_s.NEXTVAL,
      new_references.system_return_class_type,
      new_references.field_number,
      new_references.association_code,
      new_references.oss_seq,
      new_references.hesa_seq,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    ) RETURNING ROWID, igs_he_sys_rt_cl_ass_id INTO x_rowid, x_igs_he_sys_rt_cl_ass_id;
Line: 463

  END insert_row;
Line: 485

      SELECT
        system_return_class_type,
        field_number,
        association_code,
        oss_seq,
        hesa_seq
      FROM  igs_he_sys_rt_cl_ass
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 502

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_igs_he_sys_rt_cl_ass_id           IN     NUMBER,
    x_system_return_class_type          IN     VARCHAR2,
    x_field_number                      IN     NUMBER,
    x_association_code                  IN     VARCHAR2,
    x_oss_seq                           IN     NUMBER,
    x_hesa_seq                          IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By :
  ||  Created On : 08-JAN-2006
  ||  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: 549

    x_last_updated_by            NUMBER;
Line: 550

    x_last_update_login          NUMBER;
Line: 554

    x_last_update_date := SYSDATE;
Line: 556

      x_last_updated_by := 1;
Line: 557

      x_last_update_login := 0;
Line: 559

      x_last_updated_by := fnd_global.user_id;
Line: 560

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

      x_last_update_login := fnd_global.login_id;
Line: 564

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

      fnd_message.set_token ('ROUTINE', 'IGS_HE_SYS_RT_CL_ASS_PKG.UPDATE_ROW');
Line: 575

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_igs_he_sys_rt_cl_ass_id           => x_igs_he_sys_rt_cl_ass_id,
      x_system_return_class_type          => x_system_return_class_type,
      x_field_number                      => x_field_number,
      x_association_code                  => x_association_code,
      x_oss_seq                           => x_oss_seq,
      x_hesa_seq                          => x_hesa_seq,
      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: 590

    UPDATE igs_he_sys_rt_cl_ass
      SET
        system_return_class_type          = new_references.system_return_class_type,
        field_number                      = new_references.field_number,
        association_code                  = new_references.association_code,
        oss_seq                           = new_references.oss_seq,
        hesa_seq                          = new_references.hesa_seq,
        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: 606

  END update_row;
Line: 622

  ||  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
  ||  jbaber         31-Jan-2006      Modified cursor to use logical key so FNDLOADER doesn't try to
  ||                                  match on ID which can change between environments.
  ||  (reverse chronological order - newest change first)
  */

    CURSOR c1 IS
      SELECT   rowid
      FROM     igs_he_sys_rt_cl_ass
      WHERE    system_return_class_type = x_system_return_class_type
      AND      field_number = x_field_number
      AND      association_code = x_association_code
      AND      ((oss_seq = x_oss_seq) OR (oss_seq IS NULL AND x_oss_seq IS NULL))
      AND      ((hesa_seq = x_hesa_seq) OR (hesa_seq IS NULL AND x_hesa_seq IS NULL));
Line: 647

      insert_row (
        x_rowid,
        x_igs_he_sys_rt_cl_ass_id,
        x_system_return_class_type,
        x_field_number,
        x_association_code,
        x_oss_seq,
        x_hesa_seq,
        x_mode
      );
Line: 661

    update_row (
      x_rowid,
      x_igs_he_sys_rt_cl_ass_id,
      x_system_return_class_type,
      x_field_number,
      x_association_code,
      x_oss_seq,
      x_hesa_seq,
      x_mode
    );
Line: 675

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By :
  ||  Created On : 08-JAN-2006
  ||  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: 694

    DELETE FROM igs_he_sys_rt_cl_ass
    WHERE rowid = x_rowid;
Line: 701

  END delete_row;