DBA Data[Home] [Help]

APPS.IGS_UC_COM_SCSICNTS_PKG SQL Statements

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

Line: 29

    x_last_update_date                  IN     DATE    ,
    x_last_updated_by                   IN     NUMBER  ,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 01-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
  || smaddali  10-jun-03    obsoleting timestamp column for ucfd203 - multiple cycles build , bug#2669208
  ||  (reverse chronological order - newest change first)
  */

    CURSOR cur_old_ref_values IS
      SELECT   *
      FROM     IGS_UC_COM_SCSICNTS
      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: 84

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

    new_references.last_update_date                  := x_last_update_date;
Line: 93

    new_references.last_updated_by                   := x_last_updated_by;
Line: 94

    new_references.last_update_login                 := x_last_update_login;
Line: 120

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

      SELECT   rowid
      FROM     igs_uc_com_scsicnts
      WHERE    school = x_school
      AND      sitecode = x_sitecode
      AND      contact_code = x_contact_code ;
Line: 180

      SELECT   rowid
      FROM     igs_uc_com_scsicnts
      WHERE   ((school = x_school) AND
               (sitecode = x_sitecode));
Line: 224

    x_last_update_date                  IN     DATE    ,
    x_last_updated_by                   IN     NUMBER  ,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 01-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
  || smaddali  10-jun-03    obsoleting timestamp column for ucfd203 - multiple cycles build , bug#2669208
  ||  (reverse chronological order - newest change first)
  */
  BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_school,
      x_sitecode,
      x_contact_code,
      x_contact_post,
      x_contact_name,
      x_telephone,
      x_fax,
      x_email,
      x_principal,
      x_lists,
      x_orders,
      x_forms,
      x_referee,
      x_careers,
      x_eas_contact,
      x_imported,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 267

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_school                            IN     NUMBER,
    x_sitecode                          IN     VARCHAR2,
    x_contact_code                      IN     NUMBER,
    x_contact_post                      IN     VARCHAR2,
    x_contact_name                      IN     VARCHAR2,
    x_telephone                         IN     VARCHAR2,
    x_fax                               IN     VARCHAR2,
    x_email                             IN     VARCHAR2,
    x_principal                         IN     VARCHAR2,
    x_lists                             IN     VARCHAR2,
    x_orders                            IN     VARCHAR2,
    x_forms                             IN     VARCHAR2,
    x_referee                           IN     VARCHAR2,
    x_careers                           IN     VARCHAR2,
    x_eas_contact                       IN     VARCHAR2,
    x_imported                          IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 01-OCT-2001
  ||  Purpose : Handles the INSERT DML logic for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  || smaddali  10-jun-03    obsoleting timestamp column for ucfd203 - multiple cycles build , bug#2669208
  ||  (reverse chronological order - newest change first)
  */
    CURSOR c IS
      SELECT   rowid
      FROM     igs_uc_com_scsicnts
      WHERE    school                            = x_school
      AND      sitecode                          = x_sitecode
      AND      contact_code                      = x_contact_code;
Line: 337

    x_last_update_date           DATE;
Line: 338

    x_last_updated_by            NUMBER;
Line: 339

    x_last_update_login          NUMBER;
Line: 343

    x_last_update_date := SYSDATE;
Line: 345

      x_last_updated_by := 1;
Line: 346

      x_last_update_login := 0;
Line: 348

      x_last_updated_by := fnd_global.user_id;
Line: 349

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

      x_last_update_login := fnd_global.login_id;
Line: 353

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

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_school                            => x_school,
      x_sitecode                          => x_sitecode,
      x_contact_code                      => x_contact_code,
      x_contact_post                      => x_contact_post,
      x_contact_name                      => x_contact_name,
      x_telephone                         => x_telephone,
      x_fax                               => x_fax,
      x_email                             => x_email,
      x_principal                         => x_principal,
      x_lists                             => x_lists,
      x_orders                            => x_orders,
      x_forms                             => x_forms,
      x_referee                           => x_referee,
      x_careers                           => x_careers,
      x_eas_contact                       => x_eas_contact,
      x_imported                          => x_imported,
      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: 388

    INSERT INTO igs_uc_com_scsicnts (
      school,
      sitecode,
      contact_code,
      contact_post,
      contact_name,
      telephone,
      fax,
      email,
      principal,
      lists,
      orders,
      forms,
      referee,
      careers,
      eas_contact,
      imported,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.school,
      new_references.sitecode,
      new_references.contact_code,
      new_references.contact_post,
      new_references.contact_name,
      new_references.telephone,
      new_references.fax,
      new_references.email,
      new_references.principal,
      new_references.lists,
      new_references.orders,
      new_references.forms,
      new_references.referee,
      new_references.careers,
      new_references.eas_contact,
      new_references.imported,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 442

  END insert_row;
Line: 475

      SELECT
        contact_post,
        contact_name,
        telephone,
        fax,
        email,
        principal,
        lists,
        orders,
        forms,
        referee,
        careers,
        eas_contact,
        imported
      FROM  igs_uc_com_scsicnts
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 500

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_school                            IN     NUMBER,
    x_sitecode                          IN     VARCHAR2,
    x_contact_code                      IN     NUMBER,
    x_contact_post                      IN     VARCHAR2,
    x_contact_name                      IN     VARCHAR2,
    x_telephone                         IN     VARCHAR2,
    x_fax                               IN     VARCHAR2,
    x_email                             IN     VARCHAR2,
    x_principal                         IN     VARCHAR2,
    x_lists                             IN     VARCHAR2,
    x_orders                            IN     VARCHAR2,
    x_forms                             IN     VARCHAR2,
    x_referee                           IN     VARCHAR2,
    x_careers                           IN     VARCHAR2,
    x_eas_contact                       IN     VARCHAR2,
    x_imported                          IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 01-OCT-2001
  ||  Purpose : Handles the UPDATE DML logic for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  || smaddali  10-jun-03    obsoleting timestamp column for ucfd203 - multiple cycles build , bug#2669208
  ||  (reverse chronological order - newest change first)
  */
    x_last_update_date           DATE ;
Line: 566

    x_last_updated_by            NUMBER;
Line: 567

    x_last_update_login          NUMBER;
Line: 571

    x_last_update_date := SYSDATE;
Line: 573

      x_last_updated_by := 1;
Line: 574

      x_last_update_login := 0;
Line: 576

      x_last_updated_by := fnd_global.user_id;
Line: 577

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

      x_last_update_login := fnd_global.login_id;
Line: 581

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_school                            => x_school,
      x_sitecode                          => x_sitecode,
      x_contact_code                      => x_contact_code,
      x_contact_post                      => x_contact_post,
      x_contact_name                      => x_contact_name,
      x_telephone                         => x_telephone,
      x_fax                               => x_fax,
      x_email                             => x_email,
      x_principal                         => x_principal,
      x_lists                             => x_lists,
      x_orders                            => x_orders,
      x_forms                             => x_forms,
      x_referee                           => x_referee,
      x_careers                           => x_careers,
      x_eas_contact                       => x_eas_contact,
      x_imported                          => x_imported,
      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: 616

    UPDATE igs_uc_com_scsicnts
      SET
        contact_post                      = new_references.contact_post,
        contact_name                      = new_references.contact_name,
        telephone                         = new_references.telephone,
        fax                               = new_references.fax,
        email                             = new_references.email,
        principal                         = new_references.principal,
        lists                             = new_references.lists,
        orders                            = new_references.orders,
        forms                             = new_references.forms,
        referee                           = new_references.referee,
        careers                           = new_references.careers,
        eas_contact                       = new_references.eas_contact,
        imported                          = new_references.imported,
        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: 640

  END update_row;
Line: 666

  ||  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
  || smaddali  10-jun-03    obsoleting timestamp column for ucfd203 - multiple cycles build , bug#2669208
  ||  (reverse chronological order - newest change first)
  */
    CURSOR c1 IS
      SELECT   rowid
      FROM     igs_uc_com_scsicnts
      WHERE    school                            = x_school
      AND      sitecode                          = x_sitecode
      AND      contact_code                      = x_contact_code;
Line: 687

      insert_row (
        x_rowid,
        x_school,
        x_sitecode,
        x_contact_code,
        x_contact_post,
        x_contact_name,
        x_telephone,
        x_fax,
        x_email,
        x_principal,
        x_lists,
        x_orders,
        x_forms,
        x_referee,
        x_careers,
        x_eas_contact,
        x_imported,
        x_mode
      );
Line: 711

    update_row (
      x_rowid,
      x_school,
      x_sitecode,
      x_contact_code,
      x_contact_post,
      x_contact_name,
      x_telephone,
      x_fax,
      x_email,
      x_principal,
      x_lists,
      x_orders,
      x_forms,
      x_referee,
      x_careers,
      x_eas_contact,
      x_imported,
      x_mode
    );
Line: 735

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 01-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: 754

    DELETE FROM igs_uc_com_scsicnts
    WHERE rowid = x_rowid;
Line: 761

  END delete_row;