DBA Data[Home] [Help]

APPS.IGI_DOS_DESTINATION_USAGES_PKG SQL Statements

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

Line: 31

    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 : 18-APR-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     igi_dos_destination_usages
      WHERE    rowid = x_rowid;
Line: 57

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 90

    new_references.last_updated_by                   := x_last_updated_by;
Line: 91

    new_references.last_update_login                 := x_last_update_login;
Line: 114

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

      SELECT   rowid
      FROM     igi_dos_destination_usages
      WHERE   ((destination_id = x_destination_id));
Line: 151

      fnd_message.set_name ('FND', 'FND-CANNOT DELETE MASTER');
Line: 179

    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 : 18-APR-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_destination_id,
      x_segment_name,
      x_segment_name_dsp,
      x_sob_id,
      x_coa_id,
      x_visibility,
      x_default_type,
      x_default_value,
      x_updatable,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 213

    IF (p_action = 'INSERT') THEN
      -- Call all the procedures related to Before Insert.
   /*      IF ( get_pk_for_validation(

           )
         ) THEN
        fnd_message.set_name('FND','FORM_DUPLICATE_KEY_IN_INDEX');
Line: 228

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

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

           )
         ) THEN
        fnd_message.set_name('FND','FORM_DUPLICATE_KEY_IN_INDEX');
Line: 251

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_destination_id                    IN     NUMBER,
    x_segment_name                      IN     VARCHAR2,
    x_segment_name_dsp                  IN     VARCHAR2,
    x_sob_id                            IN     NUMBER,
    x_coa_id                            IN     NUMBER,
    x_visibility                        IN     VARCHAR2,
    x_default_type                      IN     VARCHAR2,
    x_default_value                     IN     VARCHAR2,
    x_updatable                         IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 18-APR-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     igi_dos_destination_usages
      WHERE   1= 1 ;
Line: 277

    x_last_update_date           DATE;
Line: 278

    x_last_updated_by            NUMBER;
Line: 279

    x_last_update_login          NUMBER;
Line: 283

    x_last_update_date := SYSDATE;
Line: 285

      x_last_updated_by := 1;
Line: 286

      x_last_update_login := 0;
Line: 288

      x_last_updated_by := fnd_global.user_id;
Line: 289

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

      x_last_update_login := fnd_global.login_id;
Line: 293

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

           FND_LOG.MESSAGE(l_unexp_level, 'igi.plsql.igi_dos_destination_usages_pkg.insert_row.Msg1',FALSE);
Line: 307

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_destination_id                    => x_destination_id,
      x_segment_name                      => x_segment_name,
      x_segment_name_dsp                  => x_segment_name_dsp,
      x_sob_id                            => x_sob_id,
      x_coa_id                            => x_coa_id,
      x_visibility                        => x_visibility,
      x_default_type                      => x_default_type,
      x_default_value                     => x_default_value,
      x_updatable                         => x_updatable,
      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: 325

    INSERT INTO igi_dos_destination_usages (
      destination_id,
      segment_name,
      segment_name_dsp,
      sob_id,
      coa_id,
      visibility,
      default_type,
      default_value,
      updatable,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.destination_id,
      new_references.segment_name,
      new_references.segment_name_dsp,
      new_references.sob_id,
      new_references.coa_id,
      new_references.visibility,
      new_references.default_type,
      new_references.default_value,
      new_references.updatable,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 365

  END insert_row;
Line: 390

      SELECT
        destination_id,
        segment_name,
        segment_name_dsp,
        sob_id,
        coa_id,
        visibility,
        default_type,
        default_value,
        updatable
      FROM  igi_dos_destination_usages
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 411

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_destination_id                    IN     NUMBER,
    x_segment_name                      IN     VARCHAR2,
    x_segment_name_dsp                  IN     VARCHAR2,
    x_sob_id                            IN     NUMBER,
    x_coa_id                            IN     NUMBER,
    x_visibility                        IN     VARCHAR2,
    x_default_type                      IN     VARCHAR2,
    x_default_value                     IN     VARCHAR2,
    x_updatable                         IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 18-APR-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: 472

    x_last_updated_by            NUMBER;
Line: 473

    x_last_update_login          NUMBER;
Line: 477

    x_last_update_date := SYSDATE;
Line: 479

      x_last_updated_by := 1;
Line: 480

      x_last_update_login := 0;
Line: 482

      x_last_updated_by := fnd_global.user_id;
Line: 483

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

      x_last_update_login := fnd_global.login_id;
Line: 487

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

         FND_LOG.MESSAGE(l_unexp_level, 'igi.plsql.igi_dos_destination_usages_pkg.update_row.Msg1',FALSE);
Line: 501

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_destination_id                    => x_destination_id,
      x_segment_name                      => x_segment_name,
      x_segment_name_dsp                  => x_segment_name_dsp,
      x_sob_id                            => x_sob_id,
      x_coa_id                            => x_coa_id,
      x_visibility                        => x_visibility,
      x_default_type                      => x_default_type,
      x_default_value                     => x_default_value,
      x_updatable                         => x_updatable,
      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: 519

    UPDATE igi_dos_destination_usages
      SET
        destination_id                    = new_references.destination_id,
        segment_name                      = new_references.segment_name,
        segment_name_dsp                  = new_references.segment_name_dsp,
        sob_id                            = new_references.sob_id,
        coa_id                            = new_references.coa_id,
        visibility                        = new_references.visibility,
        default_type                      = new_references.default_type,
        default_value                     = new_references.default_value,
        updatable                         = new_references.updatable,
        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: 539

  END update_row;
Line: 557

  ||  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     igi_dos_destination_usages
      WHERE   1= 1 ;
Line: 575

      insert_row (
        x_rowid,
        x_destination_id,
        x_segment_name,
        x_segment_name_dsp,
        x_sob_id,
        x_coa_id,
        x_visibility,
        x_default_type,
        x_default_value,
        x_updatable,
        x_mode
      );
Line: 592

    update_row (
      x_rowid,
      x_destination_id,
      x_segment_name,
      x_segment_name_dsp,
      x_sob_id,
      x_coa_id,
      x_visibility,
      x_default_type,
      x_default_value,
      x_updatable,
      x_mode
    );
Line: 609

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 18-APR-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: 628

    DELETE FROM igi_dos_destination_usages
    WHERE rowid = x_rowid;
Line: 635

  END delete_row;