DBA Data[Home] [Help]

APPS.IGS_AD_HZ_EXTRACURR_ACT_PKG SQL Statements

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

Line: 19

    x_last_update_date                  IN     DATE        DEFAULT NULL,
    x_last_updated_by                   IN     NUMBER      DEFAULT NULL,
    x_last_update_login                 IN     NUMBER      DEFAULT NULL
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 29-AUG-2000
  ||  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_AD_HZ_EXTRACURR_ACT
      WHERE    ROWID = x_rowid;
Line: 46

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 73

    new_references.last_updated_by                   := x_last_updated_by;
Line: 74

    new_references.last_update_login                 := x_last_update_login;
Line: 80

         SELECT   ROWID
         FROM     hz_person_interest
         WHERE    person_interest_id = new_references.person_interest_id ;
Line: 102

            Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
Line: 117

            Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
Line: 137

      SELECT   ROWID
      FROM     igs_ad_hz_extracurr_act
      WHERE    hz_extracurr_act_id = x_hz_extracurr_act_id
      FOR UPDATE NOWAIT;
Line: 171

      SELECT   ROWID
      FROM     igs_ad_hz_extracurr_act
      WHERE   ((person_interest_id  = x_person_interest_id ));
Line: 204

    x_last_update_date                  IN     DATE        DEFAULT NULL,
    x_last_updated_by                   IN     NUMBER      DEFAULT NULL,
    x_last_update_login                 IN     NUMBER      DEFAULT NULL
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 29-AUG-2000
  ||  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_hz_extracurr_act_id,
      x_person_interest_id,
      x_end_date,
      x_hours_per_week,
      x_weeks_per_year,
      x_activity_source_cd,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 236

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

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

    ELSIF (p_action = 'DELETE') THEN
	NULL;
Line: 256

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_hz_extracurr_act_id               IN OUT NOCOPY NUMBER,
    x_person_interest_id                IN     NUMBER,
    x_end_date                          IN     DATE,
    x_hours_per_week                    IN     NUMBER,
    x_weeks_per_year                    IN     NUMBER,
    x_activity_source_cd                IN     VARCHAR2 DEFAULT NULL,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 29-AUG-2000
  ||  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_ad_hz_extracurr_act
      WHERE    hz_extracurr_act_id	= x_hz_extracurr_act_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_program_update_date        DATE;
Line: 306

    x_last_update_date := SYSDATE;
Line: 308

      x_last_updated_by := 1;
Line: 309

      x_last_update_login := 0;
Line: 311

      x_last_updated_by := fnd_global.user_id;
Line: 312

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

      x_last_update_login := fnd_global.login_id;
Line: 316

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

        x_program_update_date:=NULL;
Line: 328

        x_program_update_date:=SYSDATE;
Line: 338

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_hz_extracurr_act_id               => x_hz_extracurr_act_id,
      x_person_interest_id                => x_person_interest_id,
      x_end_date                          => x_end_date,
      x_hours_per_week                    => x_hours_per_week,
      x_weeks_per_year                    => x_weeks_per_year,
      x_activity_source_cd                => x_activity_source_cd,
      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: 356

 INSERT INTO igs_ad_hz_extracurr_act (
      hz_extracurr_act_id,
      person_interest_id,
      end_date,
      hours_per_week,
      weeks_per_year,
      activity_source_cd,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      request_id,
      program_application_id,
      program_update_date,
      program_id
    ) VALUES (
      IGS_AD_HZ_EXTRACURR_ACT_S.NEXTVAL,
      new_references.person_interest_id,
      new_references.end_date,
      new_references.hours_per_week,
      new_references.weeks_per_year,
      new_references.activity_source_cd,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      x_request_id,
      x_program_application_id,
      x_program_update_date,
      x_program_id
    )RETURNING HZ_EXTRACURR_ACT_ID INTO X_HZ_EXTRACURR_ACT_ID;
Line: 415

 END insert_row;
Line: 437

      SELECT
        hz_extracurr_act_id,
        person_interest_id,
        end_date,
        hours_per_week,
        weeks_per_year,
        activity_source_cd
      FROM  igs_ad_hz_extracurr_act
      WHERE ROWID = x_rowid
      FOR UPDATE NOWAIT;
Line: 455

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_hz_extracurr_act_id               IN     NUMBER,
    x_person_interest_id                IN     NUMBER,
    x_end_date                          IN     DATE,
    x_hours_per_week                    IN     NUMBER,
    x_weeks_per_year                    IN     NUMBER,
    x_activity_source_cd                IN     VARCHAR2 DEFAULT NULL,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 29-AUG-2000
  ||  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: 503

    x_last_updated_by            NUMBER;
Line: 504

    x_last_update_login          NUMBER;
Line: 508

    x_program_update_date        DATE;
Line: 512

    x_last_update_date := SYSDATE;
Line: 514

      x_last_updated_by := 1;
Line: 515

      x_last_update_login := 0;
Line: 517

      x_last_updated_by := fnd_global.user_id;
Line: 518

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

      x_last_update_login := fnd_global.login_id;
Line: 522

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

      x_last_update_login := fnd_global.login_id;
Line: 526

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

        x_program_update_date:=NULL;
Line: 538

        x_program_update_date:=SYSDATE;
Line: 547

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_hz_extracurr_act_id               => x_hz_extracurr_act_id,
      x_person_interest_id                => x_person_interest_id,
      x_end_date                          => x_end_date,
      x_hours_per_week                    => x_hours_per_week,
      x_weeks_per_year                    => x_weeks_per_year,
      x_activity_source_cd                => x_activity_source_cd,
      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: 565

 UPDATE igs_ad_hz_extracurr_act
      SET
        hz_extracurr_act_id               = new_references.hz_extracurr_act_id,
        person_interest_id                = new_references.person_interest_id,
        end_date                          = new_references.end_date,
        hours_per_week                    = new_references.hours_per_week,
        weeks_per_year                    = new_references.weeks_per_year,
        activity_source_cd                = new_references.activity_source_cd,
        last_update_date                  = x_last_update_date,
        last_updated_by                   = x_last_updated_by,
        last_update_login                 = x_last_update_login,
        request_id                        = x_request_id,
        program_application_id            = x_program_application_id,
        program_update_date               = x_program_update_date,
        program_id                        = x_program_id
      WHERE ROWID = x_rowid;
Line: 606

 END update_row;
Line: 622

  ||  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_ad_hz_extracurr_act
      WHERE    hz_extracurr_act_id	= x_hz_extracurr_act_id;
Line: 640

      insert_row (
        x_rowid,
        x_hz_extracurr_act_id,
        x_person_interest_id,
        x_end_date,
        x_hours_per_week,
        x_weeks_per_year,
        x_activity_source_cd ,
        x_mode
      );
Line: 654

    update_row (
      x_rowid,
      x_hz_extracurr_act_id,
      x_person_interest_id,
      x_end_date,
      x_hours_per_week,
      x_weeks_per_year,
      x_activity_source_cd,
      x_mode
    );
Line: 668

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2,
  x_mode IN VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 29-AUG-2000
  ||  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: 691

 DELETE FROM igs_ad_hz_extracurr_act
    WHERE ROWID = x_rowid;
Line: 705

  END delete_row;