DBA Data[Home] [Help]

APPS.IGS_HE_USR_RTN_CLAS_PKG SQL Statements

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

Line: 21

    x_last_update_date                  IN     DATE        ,
    x_last_updated_by                   IN     NUMBER      ,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 15-JUN-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     IGS_HE_USR_RTN_CLAS
      WHERE    rowid = x_rowid;
Line: 48

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 76

    new_references.last_updated_by                   := x_last_updated_by;
Line: 77

    new_references.last_update_login                 := x_last_update_login;
Line: 100

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

      SELECT   rowid
      FROM     igs_he_usr_rtn_clas
      WHERE    user_return_subclass = x_user_return_subclass
      FOR UPDATE NOWAIT;
Line: 179

      SELECT   rowid
      FROM     igs_he_usr_rtn_clas
      WHERE   ((system_return_class_type = x_system_return_class_type));
Line: 214

    x_last_update_date                  IN     DATE        ,
    x_last_updated_by                   IN     NUMBER      ,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 15-JUN-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_usr_rtn_clas_id,
      x_system_return_class_type,
      x_user_return_subclass,
      x_description,
      x_record_id,
      x_rec_id_seg1,
      x_rec_id_seg2,
      x_rec_id_seg3,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 248

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

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_usr_rtn_clas_id                   IN OUT NOCOPY NUMBER,
    x_system_return_class_type          IN     VARCHAR2,
    x_user_return_subclass              IN     VARCHAR2,
    x_description                       IN     VARCHAR2,
    x_record_id                         IN     VARCHAR2,
    x_rec_id_seg1                       IN     VARCHAR2,
    x_rec_id_seg2                       IN     VARCHAR2,
    x_rec_id_seg3                       IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 15-JUN-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     igs_he_usr_rtn_clas
      WHERE    user_return_subclass              = x_user_return_subclass;
Line: 308

    x_last_update_date           DATE;
Line: 309

    x_last_updated_by            NUMBER;
Line: 310

    x_last_update_login          NUMBER;
Line: 314

    x_last_update_date := SYSDATE;
Line: 316

      x_last_updated_by := 1;
Line: 317

      x_last_update_login := 0;
Line: 319

      x_last_updated_by := fnd_global.user_id;
Line: 320

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

      x_last_update_login := fnd_global.login_id;
Line: 324

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

    SELECT    igs_he_usr_rtn_clas_s.NEXTVAL
    INTO      x_usr_rtn_clas_id
    FROM      dual;
Line: 338

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_usr_rtn_clas_id                   => x_usr_rtn_clas_id,
      x_system_return_class_type          => x_system_return_class_type,
      x_user_return_subclass              => x_user_return_subclass,
      x_description                       => x_description,
      x_record_id                         => x_record_id,
      x_rec_id_seg1                       => x_rec_id_seg1,
      x_rec_id_seg2                       => x_rec_id_seg2,
      x_rec_id_seg3                       => x_rec_id_seg3,
      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: 355

    INSERT INTO igs_he_usr_rtn_clas (
      usr_rtn_clas_id,
      system_return_class_type,
      user_return_subclass,
      description,
      record_id,
      rec_id_seg1,
      rec_id_seg2,
      rec_id_seg3,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.usr_rtn_clas_id,
      new_references.system_return_class_type,
      new_references.user_return_subclass,
      new_references.description,
      new_references.record_id,
      new_references.rec_id_seg1,
      new_references.rec_id_seg2,
      new_references.rec_id_seg3,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 393

  END insert_row;
Line: 417

      SELECT
        usr_rtn_clas_id,
        system_return_class_type,
        description,
        record_id,
        rec_id_seg1,
        rec_id_seg2,
        rec_id_seg3
      FROM  igs_he_usr_rtn_clas
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 436

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_usr_rtn_clas_id                   IN     NUMBER,
    x_system_return_class_type          IN     VARCHAR2,
    x_user_return_subclass              IN     VARCHAR2,
    x_description                       IN     VARCHAR2,
    x_record_id                         IN     VARCHAR2,
    x_rec_id_seg1                       IN     VARCHAR2,
    x_rec_id_seg2                       IN     VARCHAR2,
    x_rec_id_seg3                       IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 15-JUN-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: 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: 512

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_usr_rtn_clas_id                   => x_usr_rtn_clas_id,
      x_system_return_class_type          => x_system_return_class_type,
      x_user_return_subclass              => x_user_return_subclass,
      x_description                       => x_description,
      x_record_id                         => x_record_id,
      x_rec_id_seg1                       => x_rec_id_seg1,
      x_rec_id_seg2                       => x_rec_id_seg2,
      x_rec_id_seg3                       => x_rec_id_seg3,
      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: 529

    UPDATE igs_he_usr_rtn_clas
      SET
        usr_rtn_clas_id                   = new_references.usr_rtn_clas_id,
        system_return_class_type          = new_references.system_return_class_type,
        description                       = new_references.description,
        record_id                         = new_references.record_id,
        rec_id_seg1                       = new_references.rec_id_seg1,
        rec_id_seg2                       = new_references.rec_id_seg2,
        rec_id_seg3                       = new_references.rec_id_seg3,
        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: 547

  END update_row;
Line: 565

  ||  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_he_usr_rtn_clas
      WHERE    user_return_subclass              = x_user_return_subclass;
Line: 583

      insert_row (
        x_rowid,
        x_usr_rtn_clas_id,
        x_system_return_class_type,
        x_user_return_subclass,
        x_description,
        x_record_id,
        x_rec_id_seg1,
        x_rec_id_seg2,
        x_rec_id_seg3,
        x_mode
      );
Line: 599

    update_row (
      x_rowid,
      x_usr_rtn_clas_id,
      x_system_return_class_type,
      x_user_return_subclass,
      x_description,
      x_record_id,
      x_rec_id_seg1,
      x_rec_id_seg2,
      x_rec_id_seg3,
      x_mode
    );
Line: 615

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

    DELETE FROM igs_he_usr_rtn_clas
    WHERE rowid = x_rowid;
Line: 641

  END delete_row;