DBA Data[Home] [Help]

APPS.IGS_PS_USEC_X_GRP_PKG SQL Statements

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

Line: 20

    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 : 25-MAY-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)
  ||  vvutukur       Enh#2613933   Added 2 new columns x_max_enr_group,x_max_ovr_group.
  */

    CURSOR cur_old_ref_values IS
      SELECT   *
      FROM     IGS_PS_USEC_X_GRP
      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: 66

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

    new_references.last_update_date                  := x_last_update_date;
Line: 75

    new_references.last_updated_by                   := x_last_updated_by;
Line: 76

    new_references.last_update_login                 := x_last_update_login;
Line: 128

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

      SELECT   rowid
      FROM     igs_ps_usec_x_grp
      WHERE    usec_x_listed_group_id = x_usec_x_listed_group_id
      FOR UPDATE NOWAIT;
Line: 205

      SELECT   rowid
      FROM     igs_ps_usec_x_grp
      WHERE    usec_x_listed_group_name = x_usec_x_listed_group_name
      AND      cal_type = x_cal_type
      AND      ci_sequence_number = x_ci_sequence_number
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 243

      SELECT   rowid
      FROM     igs_ps_usec_x_grp
      WHERE   ((cal_type = x_cal_type) AND
               (ci_sequence_number = x_ci_sequence_number));
Line: 278

    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 : 25-MAY-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)
  ||  vvutukur       Enh#2613933   Added 2 new columns x_max_enr_group,x_max_ovr_group.
  */
  BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_usec_x_listed_group_id,
      x_usec_x_listed_group_name,
      x_location_inheritance,
      x_cal_type,
      x_ci_sequence_number,
      x_max_enr_group,
      x_max_ovr_group,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 312

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

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

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

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

    ELSIF (p_action = 'VALIDATE_UPDATE') THEN
      check_uniqueness;
Line: 344

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_usec_x_listed_group_id            IN OUT NOCOPY NUMBER,
    x_usec_x_listed_group_name          IN     VARCHAR2,
    x_location_inheritance              IN     VARCHAR2,
    x_cal_type                          IN     VARCHAR2,
    x_ci_sequence_number                IN     NUMBER,
    x_max_enr_group                     IN     NUMBER,
    x_max_ovr_group                     IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 25-MAY-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)
  ||  vvutukur       Enh#2613933   Added 2 new columns x_max_enr_group,x_max_ovr_group.
  */
    CURSOR c IS
      SELECT   rowid
      FROM     igs_ps_usec_x_grp
      WHERE    usec_x_listed_group_id            = x_usec_x_listed_group_id;
Line: 377

    x_last_update_date           DATE;
Line: 378

    x_last_updated_by            NUMBER;
Line: 379

    x_last_update_login          NUMBER;
Line: 383

    x_last_update_date := SYSDATE;
Line: 385

      x_last_updated_by := 1;
Line: 386

      x_last_update_login := 0;
Line: 388

      x_last_updated_by := fnd_global.user_id;
Line: 389

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

      x_last_update_login := fnd_global.login_id;
Line: 393

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

    SELECT    igs_ps_usec_x_grp_s.NEXTVAL
    INTO      x_usec_x_listed_group_id
    FROM      dual;
Line: 407

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_usec_x_listed_group_id            => x_usec_x_listed_group_id,
      x_usec_x_listed_group_name          => x_usec_x_listed_group_name,
      x_location_inheritance              => x_location_inheritance,
      x_cal_type                          => x_cal_type,
      x_ci_sequence_number                => x_ci_sequence_number,
      x_max_enr_group                     => x_max_enr_group,
      x_max_ovr_group                     => x_max_ovr_group,
      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: 423

    INSERT INTO igs_ps_usec_x_grp (
      usec_x_listed_group_id,
      usec_x_listed_group_name,
      location_inheritance,
      cal_type,
      ci_sequence_number,
      max_enr_group,
      max_ovr_group,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.usec_x_listed_group_id,
      new_references.usec_x_listed_group_name,
      new_references.location_inheritance,
      new_references.cal_type,
      new_references.ci_sequence_number,
      new_references.max_enr_group,
      new_references.max_ovr_group,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 459

  END insert_row;
Line: 483

      SELECT
        usec_x_listed_group_name,
        location_inheritance,
        cal_type,
        ci_sequence_number,
	max_enr_group,
	max_ovr_group
      FROM  igs_ps_usec_x_grp
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 501

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_usec_x_listed_group_id            IN     NUMBER,
    x_usec_x_listed_group_name          IN     VARCHAR2,
    x_location_inheritance              IN     VARCHAR2,
    x_cal_type                          IN     VARCHAR2,
    x_ci_sequence_number                IN     NUMBER,
    x_max_enr_group                     IN     NUMBER,
    x_max_ovr_group                     IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 25-MAY-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)
  ||  vvutukur       Enh#2613933   Added 2 new columns x_max_enr_group,x_max_ovr_group.
  */
    x_last_update_date           DATE ;
Line: 553

    x_last_updated_by            NUMBER;
Line: 554

    x_last_update_login          NUMBER;
Line: 558

    x_last_update_date := SYSDATE;
Line: 560

      x_last_updated_by := 1;
Line: 561

      x_last_update_login := 0;
Line: 563

      x_last_updated_by := fnd_global.user_id;
Line: 564

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

      x_last_update_login := fnd_global.login_id;
Line: 568

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_usec_x_listed_group_id            => x_usec_x_listed_group_id,
      x_usec_x_listed_group_name          => x_usec_x_listed_group_name,
      x_location_inheritance              => x_location_inheritance,
      x_cal_type                          => x_cal_type,
      x_ci_sequence_number                => x_ci_sequence_number,
      x_max_enr_group                     => x_max_enr_group,
      x_max_ovr_group                     => x_max_ovr_group,
      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: 594

    UPDATE igs_ps_usec_x_grp
      SET
        usec_x_listed_group_name          = new_references.usec_x_listed_group_name,
        location_inheritance              = new_references.location_inheritance,
        cal_type                          = new_references.cal_type,
        ci_sequence_number                = new_references.ci_sequence_number,
	max_enr_group                     = new_references.max_enr_group,
	max_ovr_group                     = new_references.max_ovr_group,
        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: 611

  END update_row;
Line: 628

  ||  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)
  ||  vvutukur       Enh#2613933   Added 2 new columns x_max_enr_group,x_max_ovr_group.
  */
    CURSOR c1 IS
      SELECT   rowid
      FROM     igs_ps_usec_x_grp
      WHERE    usec_x_listed_group_id            = x_usec_x_listed_group_id;
Line: 647

      insert_row (
        x_rowid,
        x_usec_x_listed_group_id,
        x_usec_x_listed_group_name,
        x_location_inheritance,
        x_cal_type,
        x_ci_sequence_number,
	x_max_enr_group,
	x_max_ovr_group,
        x_mode
      );
Line: 662

    update_row (
      x_rowid,
      x_usec_x_listed_group_id,
      x_usec_x_listed_group_name,
      x_location_inheritance,
      x_cal_type,
      x_ci_sequence_number,
      x_max_enr_group,
      x_max_ovr_group,
      x_mode
    );
Line: 677

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

    DELETE FROM igs_ps_usec_x_grp
    WHERE rowid = x_rowid;
Line: 703

  END delete_row;