DBA Data[Home] [Help]

APPS.IGS_PS_UNIT_X_GRP_PKG SQL Statements

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

Line: 18

    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)
  ||  shtatiko		28-oct-2002	added max_enr_group and max_ovr_group
  ||  					as oer Bug# 2613933.
  */

    CURSOR cur_old_ref_values IS
      SELECT   *
      FROM     IGS_PS_UNIT_X_GRP
      WHERE    rowid = x_rowid;
Line: 47

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 72

    new_references.last_updated_by                   := x_last_updated_by;
Line: 73

    new_references.last_update_login                 := x_last_update_login;
Line: 134

      SELECT   rowid
      FROM     igs_ps_unit_x_grp
      WHERE    unit_x_listed_group_id = x_unit_x_listed_group_id
      FOR UPDATE NOWAIT;
Line: 169

      SELECT   rowid
      FROM     igs_ps_unit_x_grp
      WHERE    unit_x_listed_group_name = x_unit_x_listed_group_name
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 201

    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)
  ||  shtatiko		28-oct-2002	added max_enr_group and max_ovr_group
  ||  					as oer Bug# 2613933.
  */
  BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_unit_x_listed_group_id,
      x_unit_x_listed_group_name,
      x_location_inheritance,
      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: 234

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

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

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_unit_x_listed_group_id            IN OUT NOCOPY NUMBER,
    x_unit_x_listed_group_name          IN     VARCHAR2,
    x_location_inheritance              IN     VARCHAR2,
    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)
  ||  shtatiko		28-oct-2002	added max_enr_group and max_ovr_group
  ||  					as oer Bug# 2613933.
  */
    CURSOR c IS
      SELECT   rowid
      FROM     igs_ps_unit_x_grp
      WHERE    unit_x_listed_group_id            = x_unit_x_listed_group_id;
Line: 296

    x_last_update_date           DATE;
Line: 297

    x_last_updated_by            NUMBER;
Line: 298

    x_last_update_login          NUMBER;
Line: 302

    x_last_update_date := SYSDATE;
Line: 304

      x_last_updated_by := 1;
Line: 305

      x_last_update_login := 0;
Line: 307

      x_last_updated_by := fnd_global.user_id;
Line: 308

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

      x_last_update_login := fnd_global.login_id;
Line: 312

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

    SELECT    igs_ps_unit_x_grp_s.NEXTVAL
    INTO      x_unit_x_listed_group_id
    FROM      dual;
Line: 326

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_unit_x_listed_group_id            => x_unit_x_listed_group_id,
      x_unit_x_listed_group_name          => x_unit_x_listed_group_name,
      x_location_inheritance              => x_location_inheritance,
      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: 340

    INSERT INTO igs_ps_unit_x_grp (
      unit_x_listed_group_id,
      unit_x_listed_group_name,
      location_inheritance,
      max_enr_group,
      max_ovr_group,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.unit_x_listed_group_id,
      new_references.unit_x_listed_group_name,
      new_references.location_inheritance,
      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: 372

  END insert_row;
Line: 395

      SELECT
        unit_x_listed_group_name,
        location_inheritance,
	max_enr_group,
	max_ovr_group
      FROM  igs_ps_unit_x_grp
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 411

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_unit_x_listed_group_id            IN     NUMBER,
    x_unit_x_listed_group_name          IN     VARCHAR2,
    x_location_inheritance              IN     VARCHAR2,
    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)
  ||  shtatiko		28-oct-2002	added max_enr_group and max_ovr_group
  ||  					as oer Bug# 2613933.
  */
    x_last_update_date           DATE ;
Line: 459

    x_last_updated_by            NUMBER;
Line: 460

    x_last_update_login          NUMBER;
Line: 464

    x_last_update_date := SYSDATE;
Line: 466

      x_last_updated_by := 1;
Line: 467

      x_last_update_login := 0;
Line: 469

      x_last_updated_by := fnd_global.user_id;
Line: 470

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

      x_last_update_login := fnd_global.login_id;
Line: 474

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_unit_x_listed_group_id            => x_unit_x_listed_group_id,
      x_unit_x_listed_group_name          => x_unit_x_listed_group_name,
      x_location_inheritance              => x_location_inheritance,
      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: 498

    UPDATE igs_ps_unit_x_grp
      SET
        unit_x_listed_group_name          = new_references.unit_x_listed_group_name,
        location_inheritance              = new_references.location_inheritance,
	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: 513

  END update_row;
Line: 528

  ||  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)
  ||  shtatiko		28-oct-2002	added max_enr_group and max_ovr_group
  ||  					as oer Bug# 2613933.
  */
    CURSOR c1 IS
      SELECT   rowid
      FROM     igs_ps_unit_x_grp
      WHERE    unit_x_listed_group_id            = x_unit_x_listed_group_id;
Line: 548

      insert_row (
        x_rowid,
        x_unit_x_listed_group_id,
        x_unit_x_listed_group_name,
        x_location_inheritance,
	x_max_enr_group,
	x_max_ovr_group,
	x_mode
      );
Line: 561

    update_row (
      x_rowid,
      x_unit_x_listed_group_id,
      x_unit_x_listed_group_name,
      x_location_inheritance,
      x_max_enr_group,
      x_max_ovr_group,
      x_mode
    );
Line: 573

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

    DELETE FROM igs_ps_unit_x_grp
    WHERE rowid = x_rowid;
Line: 599

  END delete_row;