DBA Data[Home] [Help]

APPS.IGR_I_INQUIRY_TYPES_PKG SQL Statements

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

Line: 22

      SELECT   rowid
      FROM     igr_i_inquiry_types
      WHERE    inquiry_type_cd = x_inquiry_type_cd
      FOR UPDATE NOWAIT;
Line: 100

    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 : 06-MAR-2005
  ||  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     igr_i_inquiry_types
      WHERE    rowid = x_rowid;
Line: 127

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 154

    new_references.last_updated_by                   := x_last_updated_by;
Line: 155

    new_references.last_update_login                 := x_last_update_login;
Line: 178

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

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

      SELECT   rowid
      FROM     igr_i_inquiry_types
      WHERE    inquiry_type_id = x_inquiry_type_id
      FOR UPDATE NOWAIT;
Line: 245

      SELECT   rowid
      FROM     igr_i_inquiry_types
      WHERE   ((imp_source_type_id = x_source_type_id));
Line: 280

      SELECT   rowid
      FROM     igr_i_inquiry_types
      WHERE   ((info_type_id =   x_package_item_id ));
Line: 314

    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 : 06-MAR-2005
  ||  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_inquiry_type_id,
      x_inquiry_type_cd,
      x_inquiry_type_desc,
      x_enabled_flag,
      x_imp_source_type_id,
      x_info_type_id,
      x_configurability_func_name,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 347

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

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

    ELSIF (p_action = 'VALIDATE_INSERT') THEN
      -- Call all the procedures related to Before Insert.

      check_uniqueness;
Line: 375

    ELSIF (p_action = 'DELETE') THEN
        Check_Child_Existance;
Line: 384

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_inquiry_type_id                   IN OUT NOCOPY NUMBER,
    x_inquiry_type_cd                   IN     VARCHAR2,
    x_inquiry_type_desc                 IN     VARCHAR2,
    x_enabled_flag                      IN     VARCHAR2,
    x_imp_source_type_id                IN     NUMBER,
    x_info_type_id                      IN     NUMBER,
    x_configurability_func_name         IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 06-MAR-2005
  ||  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: 406

    x_last_updated_by            NUMBER;
Line: 407

    x_last_update_login          NUMBER;
Line: 411

    x_last_update_date := SYSDATE;
Line: 413

      x_last_updated_by := 1;
Line: 414

      x_last_update_login := 0;
Line: 416

      x_last_updated_by := fnd_global.user_id;
Line: 417

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

      x_last_update_login := fnd_global.login_id;
Line: 421

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

      fnd_message.set_token ('ROUTINE', 'IGR_I_INQUIRY_TYPES_PKG.INSERT_ROW');
Line: 434

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_inquiry_type_id                   => x_inquiry_type_id,
      x_inquiry_type_cd                   => x_inquiry_type_cd,
      x_inquiry_type_desc                 => x_inquiry_type_desc,
      x_enabled_flag                      => x_enabled_flag,
      x_imp_source_type_id                => x_imp_source_type_id,
      x_info_type_id                      => x_info_type_id,
      x_configurability_func_name         => x_configurability_func_name,
      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: 450

    INSERT INTO igr_i_inquiry_types (
      inquiry_type_id,
      inquiry_type_cd,
      inquiry_type_desc,
      enabled_flag,
      imp_source_type_id,
      info_type_id,
      configurability_func_name,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      igr_i_inquiry_types_s.NEXTVAL,
      new_references.inquiry_type_cd,
      new_references.inquiry_type_desc,
      new_references.enabled_flag,
      new_references.imp_source_type_id,
      new_references.info_type_id,
      new_references.configurability_func_name,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    ) RETURNING ROWID, inquiry_type_id INTO x_rowid, x_inquiry_type_id;
Line: 478

  END insert_row;
Line: 501

      SELECT
        inquiry_type_cd,
        inquiry_type_desc,
        enabled_flag,
        imp_source_type_id,
        info_type_id,
        configurability_func_name
      FROM  igr_i_inquiry_types
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 519

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_inquiry_type_id                   IN     NUMBER,
    x_inquiry_type_cd                   IN     VARCHAR2,
    x_inquiry_type_desc                 IN     VARCHAR2,
    x_enabled_flag                      IN     VARCHAR2,
    x_imp_source_type_id                IN     NUMBER,
    x_info_type_id                      IN     NUMBER,
    x_configurability_func_name         IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 06-MAR-2005
  ||  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: 568

    x_last_updated_by            NUMBER;
Line: 569

    x_last_update_login          NUMBER;
Line: 573

    x_last_update_date := SYSDATE;
Line: 575

      x_last_updated_by := 1;
Line: 576

      x_last_update_login := 0;
Line: 578

      x_last_updated_by := fnd_global.user_id;
Line: 579

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

      x_last_update_login := fnd_global.login_id;
Line: 583

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

      fnd_message.set_token ('ROUTINE', 'IGR_I_INQUIRY_TYPES_PKG.UPDATE_ROW');
Line: 594

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_inquiry_type_id                   => x_inquiry_type_id,
      x_inquiry_type_cd                   => x_inquiry_type_cd,
      x_inquiry_type_desc                 => x_inquiry_type_desc,
      x_enabled_flag                      => x_enabled_flag,
      x_imp_source_type_id                => x_imp_source_type_id,
      x_info_type_id                      => x_info_type_id,
      x_configurability_func_name         => x_configurability_func_name,
      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: 610

    UPDATE igr_i_inquiry_types
      SET
        inquiry_type_cd                   = new_references.inquiry_type_cd,
        inquiry_type_desc                 = new_references.inquiry_type_desc,
        enabled_flag                      = new_references.enabled_flag,
        imp_source_type_id                = new_references.imp_source_type_id,
        info_type_id                      = new_references.info_type_id,
        configurability_func_name         = new_references.configurability_func_name,
        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: 627

  END update_row;
Line: 644

  ||  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     igr_i_inquiry_types
      WHERE    inquiry_type_id                   = x_inquiry_type_id;
Line: 662

      insert_row (
        x_rowid,
        x_inquiry_type_id,
        x_inquiry_type_cd,
        x_inquiry_type_desc,
        x_enabled_flag,
        x_imp_source_type_id,
        x_info_type_id,
        x_configurability_func_name,
        x_mode
      );
Line: 677

    update_row (
      x_rowid,
      x_inquiry_type_id,
      x_inquiry_type_cd,
      x_inquiry_type_desc,
      x_enabled_flag,
      x_imp_source_type_id,
      x_info_type_id,
      x_configurability_func_name,
      x_mode
    );
Line: 692

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

    DELETE FROM igr_i_inquiry_types
    WHERE rowid = x_rowid;
Line: 718

  END delete_row;