DBA Data[Home] [Help]

APPS.IGS_HE_USR_RT_CL_FLD_PKG SQL Statements

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

Line: 20

    x_last_update_date                  IN     DATE        ,
    x_last_updated_by                   IN     NUMBER      ,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 21-JUN-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     IGS_HE_USR_RT_CL_FLD
      WHERE    rowid = x_rowid;
Line: 47

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 74

    new_references.last_updated_by                   := x_last_updated_by;
Line: 75

    new_references.last_update_login                 := x_last_update_login;
Line: 121

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

      SELECT   rowid
      FROM     igs_he_usr_rt_cl_fld
      WHERE    user_return_subclass = x_user_return_subclass
      AND      field_number = x_field_number
      FOR UPDATE NOWAIT;
Line: 181

      SELECT   rowid
      FROM     igs_he_usr_rt_cl_fld
      WHERE    user_return_subclass = x_user_return_subclass
      AND      field_number         = x_field_number
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 219

      SELECT   rowid
      FROM     igs_he_usr_rt_cl_fld
      WHERE   ((user_return_subclass = x_user_return_subclass));
Line: 253

    x_last_update_date                  IN     DATE        ,
    x_last_updated_by                   IN     NUMBER      ,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 21-JUN-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)
  */
  BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_usr_rt_cl_fld_id,
      x_user_return_subclass,
      x_field_number,
      x_constant_val,
      x_default_val,
      x_include_flag,
      x_report_null_flag,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 286

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_usr_rt_cl_fld_id                  IN OUT NOCOPY NUMBER,
    x_user_return_subclass              IN     VARCHAR2,
    x_field_number                      IN     NUMBER,
    x_constant_val                      IN     VARCHAR2,
    x_default_val                       IN     VARCHAR2,
    x_include_flag                      IN     VARCHAR2,
    x_report_null_flag                  IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 21-JUN-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     igs_he_usr_rt_cl_fld
      WHERE    user_return_subclass              = x_user_return_subclass
      AND      field_number                      = x_field_number;
Line: 347

    x_last_update_date           DATE;
Line: 348

    x_last_updated_by            NUMBER;
Line: 349

    x_last_update_login          NUMBER;
Line: 353

    x_last_update_date := SYSDATE;
Line: 355

      x_last_updated_by := 1;
Line: 356

      x_last_update_login := 0;
Line: 358

      x_last_updated_by := fnd_global.user_id;
Line: 359

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

      x_last_update_login := fnd_global.login_id;
Line: 363

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

    SELECT    igs_he_usr_rt_cl_fld_s.NEXTVAL
    INTO      x_usr_rt_cl_fld_id
    FROM      dual;
Line: 377

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_usr_rt_cl_fld_id                  => x_usr_rt_cl_fld_id,
      x_user_return_subclass              => x_user_return_subclass,
      x_field_number                      => x_field_number,
      x_constant_val                      => x_constant_val,
      x_default_val                       => x_default_val,
      x_include_flag                      => x_include_flag,
      x_report_null_flag                  => x_report_null_flag,
      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: 393

    INSERT INTO igs_he_usr_rt_cl_fld (
      usr_rt_cl_fld_id,
      user_return_subclass,
      field_number,
      constant_val,
      default_val,
      include_flag,
      report_null_flag,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.usr_rt_cl_fld_id,
      new_references.user_return_subclass,
      new_references.field_number,
      new_references.constant_val,
      new_references.default_val,
      new_references.include_flag,
      new_references.report_null_flag,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 429

  END insert_row;
Line: 452

      SELECT
        usr_rt_cl_fld_id,
        constant_val,
        default_val,
        include_flag,
        report_null_flag
      FROM  igs_he_usr_rt_cl_fld
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 469

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_usr_rt_cl_fld_id                  IN     NUMBER,
    x_user_return_subclass              IN     VARCHAR2,
    x_field_number                      IN     NUMBER,
    x_constant_val                      IN     VARCHAR2,
    x_default_val                       IN     VARCHAR2,
    x_include_flag                      IN     VARCHAR2,
    x_report_null_flag                  IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 21-JUN-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: 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: 542

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_usr_rt_cl_fld_id                  => x_usr_rt_cl_fld_id,
      x_user_return_subclass              => x_user_return_subclass,
      x_field_number                      => x_field_number,
      x_constant_val                      => x_constant_val,
      x_default_val                       => x_default_val,
      x_include_flag                      => x_include_flag,
      x_report_null_flag                  => x_report_null_flag,
      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: 558

    UPDATE igs_he_usr_rt_cl_fld
      SET
        usr_rt_cl_fld_id                  = new_references.usr_rt_cl_fld_id,
        constant_val                      = new_references.constant_val,
        default_val                       = new_references.default_val,
        include_flag                      = new_references.include_flag,
        report_null_flag                  = new_references.report_null_flag,
        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: 574

  END update_row;
Line: 591

  ||  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_he_usr_rt_cl_fld
      WHERE    user_return_subclass              = x_user_return_subclass
      AND      field_number                      = x_field_number;
Line: 610

      insert_row (
        x_rowid,
        x_usr_rt_cl_fld_id,
        x_user_return_subclass,
        x_field_number,
        x_constant_val,
        x_default_val,
        x_include_flag,
        x_report_null_flag,
        x_mode
      );
Line: 625

    update_row (
      x_rowid,
      x_usr_rt_cl_fld_id,
      x_user_return_subclass,
      x_field_number,
      x_constant_val,
      x_default_val,
      x_include_flag,
      x_report_null_flag,
      x_mode
    );
Line: 640

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By :rgopalan
  ||  Created On : 21-JUN-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: 659

    DELETE FROM igs_he_usr_rt_cl_fld
    WHERE rowid = x_rowid;
Line: 666

  END delete_row;