DBA Data[Home] [Help]

APPS.IGS_UC_SYS_DECISION_PKG SQL Statements

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

Line: 29

      SELECT   *
      FROM     igs_uc_sys_decision
      WHERE    rowid = x_rowid;
Line: 41

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

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

      SELECT   rowid
      FROM     igs_uc_sys_decision
      WHERE    system_code = x_system_code
      AND      decision_code = x_decision_code ;
Line: 151

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

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

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

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

    ELSIF (p_action = 'VALIDATE_UPDATE') THEN
         NULL;
Line: 184

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_system_code                       IN     VARCHAR2,
    x_decision_code                     IN     VARCHAR2,
    x_s_adm_outcome_status              IN     VARCHAR2,
    x_closed_ind                        IN     VARCHAR2,
    x_decision_type                     IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 17-SEP-2002
  ||  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: 211

    x_last_updated_by            NUMBER;
Line: 212

    x_last_update_login          NUMBER;
Line: 216

    x_last_update_date := SYSDATE;
Line: 218

      x_last_updated_by := 1;
Line: 219

      x_last_update_login := 0;
Line: 221

      x_last_updated_by := fnd_global.user_id;
Line: 222

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

      x_last_update_login := fnd_global.login_id;
Line: 226

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

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_system_code                       => x_system_code,
      x_decision_code                     => x_decision_code,
      x_s_adm_outcome_status              => x_s_adm_outcome_status,
      x_closed_ind                        => x_closed_ind ,
      x_decision_type                     => x_decision_type
    );
Line: 245

    INSERT INTO igs_uc_sys_decision (
      system_code,
      decision_code,
      s_adm_outcome_status,
      closed_ind  ,
      decision_type
    ) VALUES (
      new_references.system_code,
      new_references.decision_code,
      new_references.s_adm_outcome_status,
      new_references.closed_ind ,
      new_references.decision_type
    ) RETURNING ROWID INTO x_rowid;
Line: 259

  END insert_row;
Line: 280

      SELECT
        s_adm_outcome_status,
        closed_ind,
        decision_type
      FROM  igs_uc_sys_decision
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 295

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_system_code                       IN     VARCHAR2,
    x_decision_code                     IN     VARCHAR2,
    x_s_adm_outcome_status              IN     VARCHAR2,
    x_closed_ind                        IN     VARCHAR2,
    x_decision_type                     IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 17-SEP-2002
  ||  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: 339

    x_last_updated_by            NUMBER;
Line: 340

    x_last_update_login          NUMBER;
Line: 344

    x_last_update_date := SYSDATE;
Line: 346

      x_last_updated_by := 1;
Line: 347

      x_last_update_login := 0;
Line: 349

      x_last_updated_by := fnd_global.user_id;
Line: 350

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

      x_last_update_login := fnd_global.login_id;
Line: 354

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_system_code                       => x_system_code,
      x_decision_code                     => x_decision_code,
      x_s_adm_outcome_status              => x_s_adm_outcome_status,
      x_closed_ind                        => x_closed_ind,
      x_decision_type                     => x_decision_type
    );
Line: 373

    UPDATE igs_uc_sys_decision
      SET
        s_adm_outcome_status              = new_references.s_adm_outcome_status,
        closed_ind                        = new_references.closed_ind ,
        decision_type                     = new_references.decision_type
      WHERE rowid = x_rowid;
Line: 384

  END update_row;
Line: 399

  ||  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_uc_sys_decision
      WHERE    system_code                       = x_system_code
      AND      decision_code                     = x_decision_code;
Line: 418

      insert_row (
        x_rowid,
        x_system_code,
        x_decision_code,
        x_s_adm_outcome_status,
        x_closed_ind,
        x_decision_type,
        x_mode
      );
Line: 431

    update_row (
      x_rowid,
      x_system_code,
      x_decision_code,
      x_s_adm_outcome_status,
      x_closed_ind,
      x_decision_type,
      x_mode
    );
Line: 444

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

    DELETE FROM igs_uc_sys_decision
    WHERE rowid = x_rowid;
Line: 470

  END delete_row;