DBA Data[Home] [Help]

APPS.IGI_EXP_DU_TYPE_HEADERS_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-OCT-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     IGI_EXP_DU_TYPE_HEADERS_ALL
      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: 82

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

    new_references.last_update_date                  := x_last_update_date;
Line: 91

    new_references.last_updated_by                   := x_last_updated_by;
Line: 92

    new_references.last_update_login                 := x_last_update_login;
Line: 134

      SELECT   rowid
      FROM     igi_exp_du_type_headers_all
      WHERE    du_type_header_id = x_du_type_header_id
      FOR UPDATE NOWAIT;
Line: 170

    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-OCT-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_du_type_header_id,
      x_du_type_name,
      x_du_type_desc,
      x_application_id,
      x_stp_only,
      x_stp_site_only,
      x_start_date,
      x_end_date,
      x_org_id,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 204

    IF (p_action = 'INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation(
             new_references.du_type_header_id
           )
         ) THEN
        fnd_message.set_name('IGI','IGI_EXP_DUP_ROW');
Line: 219

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

    ELSIF (p_action = 'VALIDATE_INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation (
             new_references.du_type_header_id
           )
         ) THEN
        fnd_message.set_name('IGI','IGI_EXP_DUP_ROW');
Line: 237

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_du_type_header_id                 IN OUT NOCOPY NUMBER,
    x_du_type_name                      IN     VARCHAR2,
    x_du_type_desc                      IN     VARCHAR2,
    x_application_id                    IN     NUMBER,
    x_stp_only                          IN     VARCHAR2,
    x_stp_site_only                     IN     VARCHAR2,
    x_start_date                        IN     DATE,
    x_end_date                          IN     DATE,
    x_org_id                            IN     NUMBER,
    x_mode                              IN     VARCHAR2 ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 18-OCT-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     igi_exp_du_type_headers_all
      WHERE    du_type_header_id                 = x_du_type_header_id;
Line: 270

    x_last_update_date           DATE;
Line: 271

    x_last_updated_by            NUMBER;
Line: 272

    x_last_update_login          NUMBER;
Line: 276

    x_last_update_date := SYSDATE;
Line: 278

      x_last_updated_by := 1;
Line: 279

      x_last_update_login := 0;
Line: 281

      x_last_updated_by := fnd_global.user_id;
Line: 282

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

      x_last_update_login := fnd_global.login_id;
Line: 286

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

          FND_LOG.MESSAGE (l_error_level , 'igi.plsql.igiexpsb.IGI_EXP_DU_TYPE_HEADERS_PKG.insert_row',FALSE);
Line: 300

    SELECT    igi_exp_du_type_headers_s1.NEXTVAL
    INTO      x_du_type_header_id
    FROM      dual;
Line: 305

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_du_type_header_id                 => x_du_type_header_id,
      x_du_type_name                      => x_du_type_name,
      x_du_type_desc                      => x_du_type_desc,
      x_application_id                    => x_application_id,
      x_stp_only                          => x_stp_only,
      x_stp_site_only                     => x_stp_site_only,
      x_start_date                        => x_start_date,
      x_end_date                          => x_end_date,
      x_org_id                            => x_org_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: 323

    INSERT INTO igi_exp_du_type_headers_all (
      du_type_header_id,
      du_type_name,
      du_type_desc,
      application_id,
      stp_only,
      stp_site_only,
      start_date,
      end_date,
      org_id,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.du_type_header_id,
      new_references.du_type_name,
      new_references.du_type_desc,
      new_references.application_id,
      new_references.stp_only,
      new_references.stp_site_only,
      new_references.start_date,
      new_references.end_date,
      new_references.org_id,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 363

  END insert_row;
Line: 388

      SELECT
        du_type_name,
        du_type_desc,
        application_id,
        stp_only,
        stp_site_only,
        start_date,
        end_date,
        org_id
      FROM  igi_exp_du_type_headers_all
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 408

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_du_type_header_id                 IN     NUMBER,
    x_du_type_name                      IN     VARCHAR2,
    x_du_type_desc                      IN     VARCHAR2,
    x_application_id                    IN     NUMBER,
    x_stp_only                          IN     VARCHAR2,
    x_stp_site_only                     IN     VARCHAR2,
    x_start_date                        IN     DATE,
    x_end_date                          IN     DATE,
    x_org_id                            IN     NUMBER,
    x_mode                              IN     VARCHAR2 ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 18-OCT-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: 470

    x_last_updated_by            NUMBER;
Line: 471

    x_last_update_login          NUMBER;
Line: 475

    x_last_update_date := SYSDATE;
Line: 477

      x_last_updated_by := 1;
Line: 478

      x_last_update_login := 0;
Line: 480

      x_last_updated_by := fnd_global.user_id;
Line: 481

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

      x_last_update_login := fnd_global.login_id;
Line: 485

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

          FND_LOG.MESSAGE (l_error_level , 'igi.plsql.igiexpsb.IGI_EXP_DU_TYPE_HEADERS_PKG.update_row',FALSE);
Line: 500

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_du_type_header_id                 => x_du_type_header_id,
      x_du_type_name                      => x_du_type_name,
      x_du_type_desc                      => x_du_type_desc,
      x_application_id                    => x_application_id,
      x_stp_only                          => x_stp_only,
      x_stp_site_only                     => x_stp_site_only,
      x_start_date                        => x_start_date,
      x_end_date                          => x_end_date,
      x_org_id                            => x_org_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: 518

    UPDATE igi_exp_du_type_headers_all
      SET
        du_type_name                      = new_references.du_type_name,
        du_type_desc                      = new_references.du_type_desc,
        application_id                    = new_references.application_id,
        stp_only                          = new_references.stp_only,
        stp_site_only                     = new_references.stp_site_only,
        start_date                        = new_references.start_date,
        end_date                          = new_references.end_date,
        org_id                            = new_references.org_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: 537

  END update_row;
Line: 555

  ||  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_exp_du_type_headers_all
      WHERE    du_type_header_id                 = x_du_type_header_id;
Line: 573

      insert_row (
        x_rowid,
        x_du_type_header_id,
        x_du_type_name,
        x_du_type_desc,
        x_application_id,
        x_stp_only,
        x_stp_site_only,
        x_start_date,
        x_end_date,
        x_org_id,
        x_mode
      );
Line: 590

    update_row (
      x_rowid,
      x_du_type_header_id,
      x_du_type_name,
      x_du_type_desc,
      x_application_id,
      x_stp_only,
      x_stp_site_only,
      x_start_date,
      x_end_date,
      x_org_id,
      x_mode
    );
Line: 607

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

    DELETE FROM igi_exp_du_type_headers_all
    WHERE rowid = x_rowid;
Line: 633

  END delete_row;