DBA Data[Home] [Help]

APPS.IGI_DOS_DOC_TYPES_PKG SQL Statements

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

Line: 56

    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_doc_types
      WHERE    rowid = x_rowid;
Line: 82

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 140

    new_references.last_updated_by                   := x_last_updated_by;
Line: 141

    new_references.last_update_login                 := x_last_update_login;
Line: 165

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

  select count(*) from
  igi_dos_doc_types
  where related_dossier_id = old_references.dossier_id ;
Line: 201

           fnd_message.set_name('IGI', 'IGI_DOS_NO_DELETE_TYPE');
Line: 233

      SELECT   rowid
      FROM     igi_dos_doc_types
      WHERE    dossier_id = x_dossier_id
      FOR UPDATE NOWAIT;
Line: 268

      SELECT   rowid
      FROM     igi_dos_doc_types
      WHERE   ((dossier_numbering = x_numbering_scheme));
Line: 280

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

    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_amount_type,
      x_dossier_id,
      x_dossier_name,
      x_dossier_numbering,
      x_coa_id,
      x_sob_id,
      x_hierarchy_id,
      x_balanced,
      x_dossier_description,
      x_multi_annual,
  --    x_related_dossier,
      x_related_dossier_dsp,
      x_dossier_relationship,
      x_dossier_relationship_dsp,
      x_dossier_status,
      x_workflow_name,
      x_retired_flag,
      x_attribute_category,
      x_attribute1,
      x_attribute2,
      x_attribute3,
      x_attribute4,
      x_attribute5,
      x_attribute6,
      x_attribute7,
      x_attribute8,
      x_attribute9,
      x_attribute10,
      x_attribute11,
      x_attribute12,
      x_attribute13,
      x_attribute14,
      x_attribute15,
      x_related_dossier_id,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 393

    IF (p_action = 'INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation(
             new_references.dossier_id
           )
         ) THEN
        fnd_message.set_name('FND','FORM_DUPLICATE_KEY_IN_INDEX');
Line: 408

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

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

    ELSIF (p_action = 'VALIDATE_INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation (
             new_references.dossier_id
           )
         ) THEN
        fnd_message.set_name('FND','FORM_DUPLICATE_KEY_IN_INDEX');
Line: 428

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_amount_type                       IN     VARCHAR2,
    x_dossier_id                        IN OUT NOCOPY NUMBER,
    x_dossier_name                      IN     VARCHAR2,
    x_dossier_numbering                 IN     VARCHAR2,
    x_coa_id                            IN     NUMBER,
    x_sob_id                            IN     NUMBER,
    x_hierarchy_id                      IN     NUMBER,
    x_balanced                          IN     VARCHAR2,
    x_dossier_description               IN     VARCHAR2,
    x_multi_annual                      IN     VARCHAR2,
    x_related_dossier                   IN     VARCHAR2,
    x_related_dossier_dsp               IN     VARCHAR2,
    x_dossier_relationship              IN     VARCHAR2,
    x_dossier_relationship_dsp          IN     VARCHAR2,
    x_dossier_status                    IN     VARCHAR2,
    x_workflow_name                     IN     VARCHAR2,
    x_retired_flag                      IN     VARCHAR2,
    x_attribute_category                IN     VARCHAR2,
    x_attribute1                        IN     VARCHAR2,
    x_attribute2                        IN     VARCHAR2,
    x_attribute3                        IN     VARCHAR2,
    x_attribute4                        IN     VARCHAR2,
    x_attribute5                        IN     VARCHAR2,
    x_attribute6                        IN     VARCHAR2,
    x_attribute7                        IN     VARCHAR2,
    x_attribute8                        IN     VARCHAR2,
    x_attribute9                        IN     VARCHAR2,
    x_attribute10                       IN     VARCHAR2,
    x_attribute11                       IN     VARCHAR2,
    x_attribute12                       IN     VARCHAR2,
    x_attribute13                       IN     VARCHAR2,
    x_attribute14                       IN     VARCHAR2,
    x_attribute15                       IN     VARCHAR2,
    x_related_dossier_id                IN     NUMBER,
    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_doc_types
      WHERE    dossier_id                        = x_dossier_id;
Line: 486

    x_last_update_date           DATE;
Line: 487

    x_last_updated_by            NUMBER;
Line: 488

    x_last_update_login          NUMBER;
Line: 492

    x_last_update_date := SYSDATE;
Line: 494

      x_last_updated_by := 1;
Line: 495

      x_last_update_login := 0;
Line: 497

      x_last_updated_by := fnd_global.user_id;
Line: 498

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

      x_last_update_login := fnd_global.login_id;
Line: 502

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

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

    SELECT    igi_dos_doc_types_s.NEXTVAL
    INTO      x_dossier_id
    FROM      dual;
Line: 520

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_amount_type                       => x_amount_type,
      x_dossier_id                        => x_dossier_id,
      x_dossier_name                      => x_dossier_name,
      x_dossier_numbering                 => x_dossier_numbering,
      x_coa_id                            => x_coa_id,
      x_sob_id                            => x_sob_id,
      x_hierarchy_id                      => x_hierarchy_id,
      x_balanced                          => x_balanced,
      x_dossier_description               => x_dossier_description,
      x_multi_annual                      => x_multi_annual,
      x_related_dossier                   => x_related_dossier,
      x_related_dossier_dsp               => x_related_dossier_dsp,
      x_dossier_relationship              => x_dossier_relationship,
      x_dossier_relationship_dsp          => x_dossier_relationship_dsp,
      x_dossier_status                    => x_dossier_status,
      x_workflow_name                     => x_workflow_name,
      x_retired_flag                      => x_retired_flag,
      x_attribute_category                => x_attribute_category,
      x_attribute1                        => x_attribute1,
      x_attribute2                        => x_attribute2,
      x_attribute3                        => x_attribute3,
      x_attribute4                        => x_attribute4,
      x_attribute5                        => x_attribute5,
      x_attribute6                        => x_attribute6,
      x_attribute7                        => x_attribute7,
      x_attribute8                        => x_attribute8,
      x_attribute9                        => x_attribute9,
      x_attribute10                       => x_attribute10,
      x_attribute11                       => x_attribute11,
      x_attribute12                       => x_attribute12,
      x_attribute13                       => x_attribute13,
      x_attribute14                       => x_attribute14,
      x_attribute15                       => x_attribute15,
      x_related_dossier_id                => x_related_dossier_id,
      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: 563

    INSERT INTO igi_dos_doc_types (
      amount_type,
      dossier_id,
      dossier_name,
      dossier_numbering,
      coa_id,
      sob_id,
      hierarchy_id,
      balanced,
      dossier_description,
      multi_annual,
     -- related_dossier,
      related_dossier_dsp,
      dossier_relationship,
      dossier_relationship_dsp,
      dossier_status,
      workflow_name,
      retired_flag,
      attribute_category,
      attribute1,
      attribute2,
      attribute3,
      attribute4,
      attribute5,
      attribute6,
      attribute7,
      attribute8,
      attribute9,
      attribute10,
      attribute11,
      attribute12,
      attribute13,
      attribute14,
      attribute15,
      related_dossier_id,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.amount_type,
      new_references.dossier_id,
      new_references.dossier_name,
      new_references.dossier_numbering,
      new_references.coa_id,
      new_references.sob_id,
      new_references.hierarchy_id,
      new_references.balanced,
      new_references.dossier_description,
      new_references.multi_annual,
   --   new_references.related_dossier,
      new_references.related_dossier_dsp,
      new_references.dossier_relationship,
      new_references.dossier_relationship_dsp,
      new_references.dossier_status,
      new_references.workflow_name,
      new_references.retired_flag,
      new_references.attribute_category,
      new_references.attribute1,
      new_references.attribute2,
      new_references.attribute3,
      new_references.attribute4,
      new_references.attribute5,
      new_references.attribute6,
      new_references.attribute7,
      new_references.attribute8,
      new_references.attribute9,
      new_references.attribute10,
      new_references.attribute11,
      new_references.attribute12,
      new_references.attribute13,
      new_references.attribute14,
      new_references.attribute15,
      new_references.related_dossier_id,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 653

  END insert_row;
Line: 703

      SELECT
        amount_type,
        dossier_name,
        dossier_numbering,
        coa_id,
        sob_id,
        hierarchy_id,
        balanced,
        dossier_description,
        multi_annual,
      --  related_dossier,
        related_dossier_dsp,
        dossier_relationship,
        dossier_relationship_dsp,
        dossier_status,
        workflow_name,
        retired_flag,
        attribute_category,
        attribute1,
        attribute2,
        attribute3,
        attribute4,
        attribute5,
        attribute6,
        attribute7,
        attribute8,
        attribute9,
        attribute10,
        attribute11,
        attribute12,
        attribute13,
        attribute14,
        attribute15,
        related_dossier_id
      FROM  igi_dos_doc_types
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 748

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_amount_type                       IN     VARCHAR2,
    x_dossier_id                        IN     NUMBER,
    x_dossier_name                      IN     VARCHAR2,
    x_dossier_numbering                 IN     VARCHAR2,
    x_coa_id                            IN     NUMBER,
    x_sob_id                            IN     NUMBER,
    x_hierarchy_id                      IN     NUMBER,
    x_balanced                          IN     VARCHAR2,
    x_dossier_description               IN     VARCHAR2,
    x_multi_annual                      IN     VARCHAR2,
    x_related_dossier                   IN     VARCHAR2,
    x_related_dossier_dsp               IN     VARCHAR2,
    x_dossier_relationship              IN     VARCHAR2,
    x_dossier_relationship_dsp          IN     VARCHAR2,
    x_dossier_status                    IN     VARCHAR2,
    x_workflow_name                     IN     VARCHAR2,
    x_retired_flag                      IN     VARCHAR2,
    x_attribute_category                IN     VARCHAR2,
    x_attribute1                        IN     VARCHAR2,
    x_attribute2                        IN     VARCHAR2,
    x_attribute3                        IN     VARCHAR2,
    x_attribute4                        IN     VARCHAR2,
    x_attribute5                        IN     VARCHAR2,
    x_attribute6                        IN     VARCHAR2,
    x_attribute7                        IN     VARCHAR2,
    x_attribute8                        IN     VARCHAR2,
    x_attribute9                        IN     VARCHAR2,
    x_attribute10                       IN     VARCHAR2,
    x_attribute11                       IN     VARCHAR2,
    x_attribute12                       IN     VARCHAR2,
    x_attribute13                       IN     VARCHAR2,
    x_attribute14                       IN     VARCHAR2,
    x_attribute15                       IN     VARCHAR2,
    x_related_dossier_id                IN     NUMBER,
    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: 858

    x_last_updated_by            NUMBER;
Line: 859

    x_last_update_login          NUMBER;
Line: 863

    x_last_update_date := SYSDATE;
Line: 865

      x_last_updated_by := 1;
Line: 866

      x_last_update_login := 0;
Line: 868

      x_last_updated_by := fnd_global.user_id;
Line: 869

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

      x_last_update_login := fnd_global.login_id;
Line: 873

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

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_amount_type                       => x_amount_type,
      x_dossier_id                        => x_dossier_id,
      x_dossier_name                      => x_dossier_name,
      x_dossier_numbering                 => x_dossier_numbering,
      x_coa_id                            => x_coa_id,
      x_sob_id                            => x_sob_id,
      x_hierarchy_id                      => x_hierarchy_id,
      x_balanced                          => x_balanced,
      x_dossier_description               => x_dossier_description,
      x_multi_annual                      => x_multi_annual,
      x_related_dossier                   => x_related_dossier,
      x_related_dossier_dsp               => x_related_dossier_dsp,
      x_dossier_relationship              => x_dossier_relationship,
      x_dossier_relationship_dsp          => x_dossier_relationship_dsp,
      x_dossier_status                    => x_dossier_status,
      x_workflow_name                     => x_workflow_name,
      x_retired_flag                      => x_retired_flag,
      x_attribute_category                => x_attribute_category,
      x_attribute1                        => x_attribute1,
      x_attribute2                        => x_attribute2,
      x_attribute3                        => x_attribute3,
      x_attribute4                        => x_attribute4,
      x_attribute5                        => x_attribute5,
      x_attribute6                        => x_attribute6,
      x_attribute7                        => x_attribute7,
      x_attribute8                        => x_attribute8,
      x_attribute9                        => x_attribute9,
      x_attribute10                       => x_attribute10,
      x_attribute11                       => x_attribute11,
      x_attribute12                       => x_attribute12,
      x_attribute13                       => x_attribute13,
      x_attribute14                       => x_attribute14,
      x_attribute15                       => x_attribute15,
      x_related_dossier_id                => x_related_dossier_id,
      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: 930

    UPDATE igi_dos_doc_types
      SET
        amount_type                       = new_references.amount_type,
        dossier_name                      = new_references.dossier_name,
        dossier_numbering                 = new_references.dossier_numbering,
        coa_id                            = new_references.coa_id,
        sob_id                            = new_references.sob_id,
        hierarchy_id                      = new_references.hierarchy_id,
        balanced                          = new_references.balanced,
        dossier_description               = new_references.dossier_description,
        multi_annual                      = new_references.multi_annual,
       -- related_dossier                   = new_references.related_dossier,
        related_dossier_dsp               = new_references.related_dossier_dsp,
        dossier_relationship              = new_references.dossier_relationship,
        dossier_relationship_dsp          = new_references.dossier_relationship_dsp,
        dossier_status                    = new_references.dossier_status,
        workflow_name                     = new_references.workflow_name,
        retired_flag                      = new_references.retired_flag,
        attribute_category                = new_references.attribute_category,
        attribute1                        = new_references.attribute1,
        attribute2                        = new_references.attribute2,
        attribute3                        = new_references.attribute3,
        attribute4                        = new_references.attribute4,
        attribute5                        = new_references.attribute5,
        attribute6                        = new_references.attribute6,
        attribute7                        = new_references.attribute7,
        attribute8                        = new_references.attribute8,
        attribute9                        = new_references.attribute9,
        attribute10                       = new_references.attribute10,
        attribute11                       = new_references.attribute11,
        attribute12                       = new_references.attribute12,
        attribute13                       = new_references.attribute13,
        attribute14                       = new_references.attribute14,
        attribute15                       = new_references.attribute15,
        related_dossier_id                = new_references.related_dossier_id,
        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: 974

  END update_row;
Line: 1017

  ||  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_doc_types
      WHERE    dossier_id                        = x_dossier_id;
Line: 1035

      insert_row (
        x_rowid,
        x_amount_type,
        x_dossier_id,
        x_dossier_name,
        x_dossier_numbering,
        x_coa_id,
        x_sob_id,
        x_hierarchy_id,
        x_balanced,
        x_dossier_description,
        x_multi_annual,
        x_related_dossier,
        x_related_dossier_dsp,
        x_dossier_relationship,
        x_dossier_relationship_dsp,
        x_dossier_status,
        x_workflow_name,
        x_retired_flag,
        x_attribute_category,
        x_attribute1,
        x_attribute2,
        x_attribute3,
        x_attribute4,
        x_attribute5,
        x_attribute6,
        x_attribute7,
        x_attribute8,
        x_attribute9,
        x_attribute10,
        x_attribute11,
        x_attribute12,
        x_attribute13,
        x_attribute14,
        x_attribute15,
        x_related_dossier_id,
        x_mode
      );
Line: 1077

    update_row (
      x_rowid,
      x_amount_type,
      x_dossier_id,
      x_dossier_name,
      x_dossier_numbering,
      x_coa_id,
      x_sob_id,
      x_hierarchy_id,
      x_balanced,
      x_dossier_description,
      x_multi_annual,
      x_related_dossier,
      x_related_dossier_dsp,
      x_dossier_relationship,
      x_dossier_relationship_dsp,
      x_dossier_status,
      x_workflow_name,
      x_retired_flag,
      x_attribute_category,
      x_attribute1,
      x_attribute2,
      x_attribute3,
      x_attribute4,
      x_attribute5,
      x_attribute6,
      x_attribute7,
      x_attribute8,
      x_attribute9,
      x_attribute10,
      x_attribute11,
      x_attribute12,
      x_attribute13,
      x_attribute14,
      x_attribute15,
      x_related_dossier_id,
      x_mode
    );
Line: 1119

  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: 1139

    DELETE FROM igi_dos_doc_types
    WHERE rowid = x_rowid;
Line: 1146

  END delete_row;