DBA Data[Home] [Help]

APPS.IGS_CO_MAPPING_PKG SQL Statements

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

Line: 23

    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 : prchandr
  ||  Created On : 07-FEB-2002
  ||  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_co_mapping
      WHERE    rowid = x_rowid;
Line: 50

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 80

    new_references.last_updated_by                   := x_last_updated_by;
Line: 81

    new_references.last_update_login                 := x_last_update_login;
Line: 128

          SELECT COUNT(citem_id)
	  FROM IBC_CITEMS_V
	  WHERE CITEM_ID = cp_id AND
	  CTYPE_CODE =cp_ctype_code AND
	  LANGUAGE = USERENV('LANG');
Line: 136

          SELECT COUNT(content_item_id)
	  FROM IBC_CONTENT_ITEMS
	  WHERE CONTENT_ITEM_ID = cp_id AND
	  EXISTS
	  (SELECT CONTENT_TYPE_CODE FROM IBC_CTYPE_GROUP_NODES WHERE
	   DIRECTORY_NODE_ID IN (32,33,34));
Line: 158

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

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

      SELECT   rowid
      FROM     igs_co_mapping
      WHERE    map_id = x_map_id
      FOR UPDATE NOWAIT;
Line: 230

      SELECT   rowid
      FROM     igs_co_mapping
      WHERE    document_id = x_document_id
      AND      map_code = x_map_code
      AND      sys_ltr_code = x_sys_ltr_code
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid))
      AND      enable_flag='Y';
Line: 270

    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 : prchandr
  ||  Created On : 07-FEB-2002
  ||  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_map_id,
      x_map_code,
      x_doc_code,
      x_document_id,
      x_enable_flag,
      x_sys_ltr_code,
      x_map_description,
      x_elapsed_days,
      x_repeat_times,
      x_attr_description,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 306

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_map_id                            IN OUT NOCOPY NUMBER,
    x_map_code                          IN     VARCHAR2,
    x_doc_code                          IN     VARCHAR2,
    x_document_id                       IN     NUMBER,
    x_enable_flag                       IN     VARCHAR2,
    x_sys_ltr_code                      IN     VARCHAR2,
    x_map_description                   IN     VARCHAR2,
    x_elapsed_days                      IN     NUMBER,
    x_repeat_times                      IN     NUMBER,
    x_attr_description                  IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : prchandr
  ||  Created On : 07-FEB-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)
  */
    CURSOR c IS
      SELECT   rowid
      FROM     igs_co_mapping
      WHERE    map_id                            = x_map_id;
Line: 368

    x_last_update_date           DATE;
Line: 369

    x_last_updated_by            NUMBER;
Line: 370

    x_last_update_login          NUMBER;
Line: 374

    x_last_update_date := SYSDATE;
Line: 376

      x_last_updated_by := 1;
Line: 377

      x_last_update_login := 0;
Line: 379

      x_last_updated_by := fnd_global.user_id;
Line: 380

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

      x_last_update_login := fnd_global.login_id;
Line: 384

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

    SELECT    igs_co_mapping_s.NEXTVAL
    INTO      x_map_id
    FROM      dual;
Line: 398

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_map_id                            => x_map_id,
      x_map_code                          => x_map_code,
      x_doc_code                          => x_doc_code,
      x_document_id                       => x_document_id,
      x_enable_flag                       => x_enable_flag,
      x_sys_ltr_code                      => x_sys_ltr_code,
      x_map_description                   => x_map_description,
      x_elapsed_days                      => x_elapsed_days,
      x_repeat_times                      => x_repeat_times,
      x_attr_description                  => x_attr_description,
      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: 417

    INSERT INTO igs_co_mapping (
      map_id,
      map_code,
      doc_code,
      document_id,
      enable_flag,
      sys_ltr_code,
      map_description,
      elapsed_days,
      repeat_times,
      attr_description,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.map_id,
      new_references.map_code,
      new_references.doc_code,
      new_references.document_id,
      new_references.enable_flag,
      new_references.sys_ltr_code,
      new_references.map_description,
      new_references.elapsed_days,
      new_references.repeat_times,
      new_references.attr_description,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 459

  END insert_row;
Line: 485

      SELECT
        map_code,
        doc_code,
        document_id,
        enable_flag,
        sys_ltr_code,
        map_description,
        elapsed_days,
        repeat_times,
        attr_description
      FROM  igs_co_mapping
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 506

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_map_id                            IN     NUMBER,
    x_map_code                          IN     VARCHAR2,
    x_doc_code                          IN     VARCHAR2,
    x_document_id                       IN     NUMBER,
    x_enable_flag                       IN     VARCHAR2,
    x_sys_ltr_code                      IN     VARCHAR2,
    x_map_description                   IN     VARCHAR2,
    x_elapsed_days                      IN     NUMBER,
    x_repeat_times                      IN     NUMBER,
    x_attr_description                  IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : prchandr
  ||  Created On : 07-FEB-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: 561

    x_last_updated_by            NUMBER;
Line: 562

    x_last_update_login          NUMBER;
Line: 566

    x_last_update_date := SYSDATE;
Line: 568

      x_last_updated_by := 1;
Line: 569

      x_last_update_login := 0;
Line: 571

      x_last_updated_by := fnd_global.user_id;
Line: 572

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

      x_last_update_login := fnd_global.login_id;
Line: 576

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_map_id                            => x_map_id,
      x_map_code                          => x_map_code,
      x_doc_code                          => x_doc_code,
      x_document_id                       => x_document_id,
      x_enable_flag                       => x_enable_flag,
      x_sys_ltr_code                      => x_sys_ltr_code,
      x_map_description                   => x_map_description,
      x_elapsed_days                      => x_elapsed_days,
      x_repeat_times                      => x_repeat_times,
      x_attr_description                  => x_attr_description,
      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: 605

    UPDATE igs_co_mapping
      SET
        map_code                          = new_references.map_code,
        doc_code                          = new_references.doc_code,
        document_id                       = new_references.document_id,
        enable_flag                       = new_references.enable_flag,
        sys_ltr_code                      = new_references.sys_ltr_code,
        map_description                   = new_references.map_description,
        elapsed_days                      = new_references.elapsed_days,
        repeat_times                      = new_references.repeat_times,
        attr_description                  = new_references.attr_description,
        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: 625

  END update_row;
Line: 645

  ||  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_co_mapping
      WHERE    map_id                            = x_map_id;
Line: 663

      insert_row (
        x_rowid,
        x_map_id,
        x_map_code,
        x_doc_code,
        x_document_id,
        x_enable_flag,
        x_sys_ltr_code,
        x_map_description,
        x_elapsed_days,
        x_repeat_times,
        x_attr_description,
        x_mode
      );
Line: 681

    update_row (
      x_rowid,
      x_map_id,
      x_map_code,
      x_doc_code,
      x_document_id,
      x_enable_flag,
      x_sys_ltr_code,
      x_map_description,
      x_elapsed_days,
      x_repeat_times,
      x_attr_description,
      x_mode
    );
Line: 699

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : prchandr
  ||  Created On : 07-FEB-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: 718

    DELETE FROM igs_co_mapping
    WHERE rowid = x_rowid;
Line: 725

  END delete_row;