DBA Data[Home] [Help]

APPS.IGS_EN_TIMESLOT_PREF_PKG SQL Statements

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

Line: 17

    x_last_update_date IN DATE DEFAULT NULL,
    x_last_updated_by IN NUMBER DEFAULT NULL,
    x_last_update_login IN NUMBER DEFAULT NULL,
    x_sequence_number IN NUMBER DEFAULT NULL
  ) AS

  /*************************************************************
  Created By :
  Date Created By :
  Purpose :
  Know limitations, enhancements or remarks
  Change History
  Who             When            What

  (reverse chronological order - newest change first)
  ***************************************************************/

    CURSOR cur_old_ref_values IS
      SELECT   *
      FROM     IGS_EN_TIMESLOT_PREF
      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: 62

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

    new_references.last_update_date := x_last_update_date;
Line: 70

    new_references.last_updated_by := x_last_updated_by;
Line: 71

    new_references.last_update_login := x_last_update_login;
Line: 146

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

      SELECT   rowid
      FROM     igs_en_timeslot_pref
      WHERE    igs_en_timeslot_pref_id = x_igs_en_timeslot_pref_id
      FOR UPDATE NOWAIT;
Line: 207

      SELECT   rowid
      FROM     igs_en_timeslot_pref
      WHERE    igs_en_timeslot_prty_id = x_igs_en_timeslot_prty_id
      AND      preference_code = x_preference_code
      AND      ((preference_version IS NULL and x_preference_version IS NULL)
                OR preference_version = x_preference_version)
      AND      ((sequence_number IS NULL and x_sequence_number IS NULL)
                OR sequence_number = x_sequence_number)
      AND      ((l_rowid is null) or (rowid <> l_rowid))

      ;
Line: 249

      SELECT   rowid
      FROM     igs_en_timeslot_pref
      WHERE    igs_en_timeslot_prty_id = x_igs_en_timeslot_prty_id ;
Line: 270

  PROCEDURE BeforeInsertUpdate(p_inserting BOOLEAN , p_updating BOOLEAN) AS
  p_message_name VARCHAR2(30);
Line: 272

  CURSOR grp_id_cur is select group_id from igs_pe_persid_group_all
  WHERE group_cd = new_references.preference_code;
Line: 276

   IF ( p_inserting = TRUE OR (p_updating = TRUE AND new_references.preference_code <> old_references.preference_code ) ) THEN
    OPEN grp_id_cur;
Line: 286

  END BeforeInsertUpdate;
Line: 298

    x_last_update_date IN DATE DEFAULT NULL,
    x_last_updated_by IN NUMBER DEFAULT NULL,
    x_last_update_login IN NUMBER DEFAULT NULL,
    x_sequence_number IN NUMBER DEFAULT NULL
  ) AS
  /*************************************************************
  Created By :
  Date Created By :
  Purpose :
  Know limitations, enhancements or remarks
  Change History
  Who             When            What

  (reverse chronological order - newest change first)
  ***************************************************************/

  BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_igs_en_timeslot_pref_id,
      x_igs_en_timeslot_prty_id,
      x_preference_order,
      x_preference_code,
      x_preference_version,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      x_sequence_number
    );
Line: 332

    IF (p_action = 'INSERT') THEN
      -- Call all the procedures related to Before Insert.
      Null;
Line: 335

      BeforeInsertUpdate(TRUE,FALSE);
Line: 345

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

      BeforeInsertUpdate(FALSE,TRUE);
Line: 352

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

    ELSIF (p_action = 'VALIDATE_INSERT') THEN
	 -- Call all the procedures related to Before Insert.
      BeforeInsertUpdate(TRUE,FALSE);
Line: 366

    ELSIF (p_action = 'VALIDATE_UPDATE') THEN
      BeforeInsertUpdate(FALSE,TRUE);
Line: 370

    ELSIF (p_action = 'VALIDATE_DELETE') THEN
      NULL;
Line: 395

    IF (p_action = 'INSERT') THEN
      -- Call all the procedures related to After Insert.
      Null;
Line: 398

    ELSIF (p_action = 'UPDATE') THEN
      -- Call all the procedures related to After Update.
      Null;
Line: 401

    ELSIF (p_action = 'DELETE') THEN
      -- Call all the procedures related to After Delete.
      Null;
Line: 408

 PROCEDURE insert_row (
      x_rowid IN OUT NOCOPY VARCHAR2,
       x_igs_en_timeslot_pref_id IN OUT NOCOPY NUMBER,
       x_igs_en_timeslot_prty_id IN NUMBER,
       x_preference_order IN NUMBER,
       x_preference_code IN VARCHAR2,
       x_preference_version IN NUMBER,
      x_mode IN VARCHAR2 DEFAULT 'R',
      x_sequence_number IN NUMBER
  ) AS
  /*************************************************************
  Created By :
  Date Created By :
  Purpose :
  Know limitations, enhancements or remarks
  Change History
  Who             When            What
 ayedubat        16,JUL 2002    Removed the default NULL value of the in parameter,x_sequence_number for the bug fix:2464172
  (reverse chronological order - newest change first)
  ***************************************************************/

    CURSOR c IS SELECT ROWID FROM igs_en_timeslot_pref
             WHERE                 igs_en_timeslot_pref_id= x_igs_en_timeslot_pref_id
;
Line: 432

     x_last_update_date DATE ;
Line: 433

     x_last_updated_by NUMBER ;
Line: 434

     x_last_update_login NUMBER ;
Line: 436

     x_last_update_date := SYSDATE;
Line: 438

        x_last_updated_by := 1;
Line: 439

        x_last_update_login := 0;
Line: 441

               x_last_updated_by := fnd_global.user_id;
Line: 442

            IF x_last_updated_by IS NULL then
                x_last_updated_by := -1;
Line: 445

            x_last_update_login := fnd_global.login_id;
Line: 446

         IF x_last_update_login IS NULL THEN
            x_last_update_login := -1;
Line: 455

     select igs_en_timeslot_pref_s.nextval into x_igs_en_timeslot_pref_id from dual;
Line: 458

 		p_action=>'INSERT',
 		x_rowid=>X_ROWID,
 	       x_igs_en_timeslot_pref_id=>x_igs_en_timeslot_pref_id,
 	       x_igs_en_timeslot_prty_id=>x_igs_en_timeslot_prty_id,
 	       x_preference_order=>x_preference_order,
 	       x_preference_code=>x_preference_code,
 	       x_preference_version=>x_preference_version,
	       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,
               x_sequence_number=> x_sequence_number
              );
Line: 472

     INSERT INTO igs_en_timeslot_pref (
		igs_en_timeslot_pref_id
		,igs_en_timeslot_prty_id
		,preference_order
		,preference_code
		,preference_version
	        ,creation_date
		,created_by
		,last_update_date
		,last_updated_by
		,last_update_login
                ,sequence_number
        ) VALUES  (
	        new_references.igs_en_timeslot_pref_id
	        ,new_references.igs_en_timeslot_prty_id
	        ,new_references.preference_order
	        ,new_references.preference_code
	        ,new_references.preference_version
	        ,x_last_update_date
		,x_last_updated_by
		,x_last_update_date
		,x_last_updated_by
		,x_last_update_login
                ,x_sequence_number
);
Line: 505

		p_action => 'INSERT' ,
		x_rowid => X_ROWID );
Line: 507

END insert_row;
Line: 528

   CURSOR c1 IS SELECT
      igs_en_timeslot_prty_id
,      preference_order
,      preference_code
,      preference_version
,      sequence_number
  FROM igs_en_timeslot_pref
    WHERE ROWID = x_rowid
    FOR UPDATE NOWAIT;
Line: 542

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

 PROCEDURE update_row (
    x_rowid IN  VARCHAR2,
    x_IGS_EN_TIMESLOT_PREF_ID IN NUMBER,
    x_IGS_EN_TIMESLOT_PRTY_ID IN NUMBER,
    x_PREFERENCE_ORDER IN NUMBER,
    x_PREFERENCE_CODE IN VARCHAR2,
    x_PREFERENCE_VERSION IN NUMBER,
    x_mode IN VARCHAR2 DEFAULT 'R',
    x_sequence_number IN NUMBER
  ) AS
  /*************************************************************
  Created By :
  Date Created By :
  Purpose :
  Know limitations, enhancements or remarks
  Change History
  Who             When            What

  (reverse chronological order - newest change first)
  ***************************************************************/

     x_last_update_date DATE ;
Line: 589

     x_last_updated_by NUMBER ;
Line: 590

     x_last_update_login NUMBER ;
Line: 592

     x_last_update_date := SYSDATE;
Line: 594

        x_last_updated_by := 1;
Line: 595

        x_last_update_login := 0;
Line: 597

               x_last_updated_by := fnd_global.user_id;
Line: 598

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

            x_last_update_login := fnd_global.login_id;
Line: 602

         IF x_last_update_login IS NULL THEN
            x_last_update_login := -1;
Line: 611

 		p_action=>'UPDATE',
 		x_rowid=>X_ROWID,
 	       x_igs_en_timeslot_pref_id=>X_IGS_EN_TIMESLOT_PREF_ID,
 	       x_igs_en_timeslot_prty_id=>X_IGS_EN_TIMESLOT_PRTY_ID,
 	       x_preference_order=>X_PREFERENCE_ORDER,
 	       x_preference_code=>X_PREFERENCE_CODE,
 	       x_preference_version=>X_PREFERENCE_VERSION,
	       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,
               x_sequence_number=>x_sequence_number
             );
Line: 625

   UPDATE igs_en_timeslot_pref SET
      igs_en_timeslot_prty_id =  NEW_REFERENCES.igs_en_timeslot_prty_id,
      preference_order =  NEW_REFERENCES.preference_order,
      preference_code =  NEW_REFERENCES.preference_code,
      preference_version =  NEW_REFERENCES.preference_version,
	last_update_date = x_last_update_date,
	last_updated_by = x_last_updated_by,
	last_update_login = x_last_update_login,
        sequence_number = x_sequence_number
	  WHERE ROWID = x_rowid;
Line: 640

	p_action => 'UPDATE' ,
	x_rowid => X_ROWID
	);
Line: 643

END update_row;
Line: 665

    CURSOR c1 IS SELECT ROWID FROM igs_en_timeslot_pref
             WHERE     igs_en_timeslot_pref_id= x_igs_en_timeslot_pref_id
;
Line: 673

    insert_row (
      x_rowid,
       X_igs_en_timeslot_pref_id,
       X_igs_en_timeslot_prty_id,
       X_preference_order,
       X_preference_code,
       X_preference_version,
      x_mode,
      x_sequence_number
     );
Line: 686

update_row (
      x_rowid,
       x_igs_en_timeslot_pref_id,
       x_igs_en_timeslot_prty_id,
       x_preference_order,
       x_preference_code,
       x_preference_version,
      x_mode,
      x_sequence_number
      );
Line: 697

PROCEDURE delete_row (
  x_rowid IN VARCHAR2
) AS
  /*************************************************************
  Created By :
  Date Created By :
  Purpose :
  Know 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: 716

 DELETE FROM igs_en_timeslot_pref
 WHERE ROWID = x_rowid;
Line: 722

 p_action => 'DELETE',
 x_rowid => X_ROWID
);
Line: 725

END delete_row;