DBA Data[Home] [Help]

APPS.IGS_AD_PER_STM_TYP_PKG SQL Statements

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

Line: 17

    x_last_update_date                  IN     DATE        DEFAULT NULL,
    x_last_updated_by                   IN     NUMBER      DEFAULT NULL,
    x_last_update_login                 IN     NUMBER      DEFAULT NULL
  ) AS
  /*
  ||  Created By : vdixit
  ||  Created On : 21-DEC-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_ad_per_stm_typ
      WHERE    rowid = x_rowid;
Line: 44

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 68

    new_references.last_updated_by                   := x_last_updated_by;
Line: 69

    new_references.last_update_login                 := x_last_update_login;
Line: 73

  PROCEDURE BeforeRowInsertUpdate(
    p_inserting IN BOOLEAN DEFAULT FALSE,
    p_updating IN BOOLEAN DEFAULT FALSE
    ) as
     v_message_name                  VARCHAR2(30);
Line: 79

        IF (p_inserting OR (p_updating AND (old_references.step_catalog_cd <> new_references.step_catalog_cd))) THEN
	 IF NOT IGS_TR_VAL_TRI.val_tr_step_ctlg (new_references.step_catalog_cd,
	                                          v_message_name) THEN
             Fnd_Message.Set_Name('IGS', v_message_name);
Line: 87

  END BeforeRowInsertUpdate;
Line: 126

      SELECT   rowid
      FROM     igs_ad_per_stm_typ
      WHERE    UPPER(persl_stat_type) = UPPER(x_persl_stat_type) AND
               closed_ind = NVL(x_closed_ind,closed_ind)
      FOR UPDATE NOWAIT;
Line: 157

    x_last_update_date                  IN     DATE        DEFAULT NULL,
    x_last_updated_by                   IN     NUMBER      DEFAULT NULL,
    x_last_update_login                 IN     NUMBER      DEFAULT NULL
  ) AS
  /*
  ||  Created By : vdixit
  ||  Created On : 21-DEC-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_persl_stat_type,
      x_persl_stat_type_desc,
      x_step_catalog_cd,
      x_closed_ind,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 187

    IF (p_action = 'INSERT') THEN
      -- Call all the procedures related to Before Insert.
      BeforeRowInsertUpdate(p_inserting => TRUE);
Line: 198

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_persl_stat_type                   IN     VARCHAR2,
    x_persl_stat_type_desc              IN     VARCHAR2,
    x_step_catalog_cd                   IN     VARCHAR2,
    x_closed_ind                        IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : vdixit
  ||  Created On : 21-DEC-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_ad_per_stm_typ
      WHERE    persl_stat_type                   = x_persl_stat_type;
Line: 240

    x_last_update_date           DATE;
Line: 241

    x_last_updated_by            NUMBER;
Line: 242

    x_last_update_login          NUMBER;
Line: 246

    x_last_update_date := SYSDATE;
Line: 248

      x_last_updated_by := 1;
Line: 249

      x_last_update_login := 0;
Line: 251

      x_last_updated_by := fnd_global.user_id;
Line: 252

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

      x_last_update_login := fnd_global.login_id;
Line: 256

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

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_persl_stat_type                   => x_persl_stat_type,
      x_persl_stat_type_desc              => x_persl_stat_type_desc,
      x_step_catalog_cd                   => x_step_catalog_cd,
      x_closed_ind                        => x_closed_ind,
      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: 279

    INSERT INTO igs_ad_per_stm_typ (
      persl_stat_type,
      persl_stat_type_desc,
      step_catalog_cd,
      closed_ind,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.persl_stat_type,
      new_references.persl_stat_type_desc,
      new_references.step_catalog_cd,
      new_references.closed_ind,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 309

  END insert_row;
Line: 329

      SELECT
        persl_stat_type_desc,
        step_catalog_cd,
        closed_ind
      FROM  igs_ad_per_stm_typ
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 344

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_persl_stat_type                   IN     VARCHAR2,
    x_persl_stat_type_desc              IN     VARCHAR2,
    x_step_catalog_cd                   IN     VARCHAR2,
    x_closed_ind                        IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : vdixit
  ||  Created On : 21-DEC-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: 387

    x_last_updated_by            NUMBER;
Line: 388

    x_last_update_login          NUMBER;
Line: 392

    x_last_update_date := SYSDATE;
Line: 394

      x_last_updated_by := 1;
Line: 395

      x_last_update_login := 0;
Line: 397

      x_last_updated_by := fnd_global.user_id;
Line: 398

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

      x_last_update_login := fnd_global.login_id;
Line: 402

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_persl_stat_type                   => x_persl_stat_type,
      x_persl_stat_type_desc              => x_persl_stat_type_desc,
      x_step_catalog_cd                   => x_step_catalog_cd,
      x_closed_ind                        => x_closed_ind,
      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: 425

    UPDATE igs_ad_per_stm_typ
      SET
        persl_stat_type_desc              = new_references.persl_stat_type_desc,
        step_catalog_cd                   = new_references.step_catalog_cd,
        closed_ind                        = new_references.closed_ind,
        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: 439

  END update_row;
Line: 453

  ||  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_ad_per_stm_typ
      WHERE    persl_stat_type                   = x_persl_stat_type;
Line: 471

      insert_row (
        x_rowid,
        x_persl_stat_type,
        x_persl_stat_type_desc,
        x_step_catalog_cd,
        x_closed_ind,
        x_mode
      );
Line: 483

    update_row (
      x_rowid,
      x_persl_stat_type,
      x_persl_stat_type_desc,
      x_step_catalog_cd,
      x_closed_ind,
      x_mode
    );
Line: 495

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : vdixit
  ||  Created On : 21-DEC-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: 514

    DELETE FROM igs_ad_per_stm_typ
    WHERE rowid = x_rowid;
Line: 521

  END delete_row;