DBA Data[Home] [Help]

APPS.IGS_PS_USEC_REF_CD_PKG SQL Statements

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

Line: 18

    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_reference_code_type  IN VARCHAR2 ,
    x_reference_code       IN VARCHAR2 ,
    x_reference_code_desc  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)
  ***************************************************************/

    CURSOR cur_old_ref_values IS
      SELECT   *
      FROM     igs_ps_usec_ref_cd
      WHERE    ROWID = x_rowid;
Line: 50

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

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

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

  SELECT 'X'
  FROM   igs_ge_ref_cd_type_all
  WHERE  restricted_flag='Y'
  AND    reference_cd_type=cp_reference_cd_type;
Line: 151

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

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

      SELECT   ROWID
      FROM     igs_ps_usec_ref_cd
      WHERE    unit_section_reference_cd_id = x_unit_section_reference_cd_id
      FOR UPDATE NOWAIT;
Line: 232

      SELECT   ROWID
      FROM     igs_ps_usec_ref_cd
      WHERE    reference_code_type = x_reference_code_type
      AND      reference_code = x_reference_code
      AND      unit_section_reference_id = x_unit_section_reference_id
      AND      ((l_rowid IS NULL) OR (ROWID <> l_rowid));
Line: 269

      SELECT   ROWID
      FROM     igs_ps_usec_ref_cd
      WHERE    unit_section_reference_id = x_unit_section_reference_id ;
Line: 306

      SELECT   ROWID
      FROM     igs_ps_usec_ref_cd
      WHERE    reference_code_type = x_reference_code_type;
Line: 343

      SELECT   ROWID
      FROM     igs_ps_usec_ref_cd
      WHERE    reference_code_type = x_reference_code_type
      AND      reference_code = x_reference_code ;
Line: 372

    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_reference_code_type  IN VARCHAR2 ,
    x_reference_code       IN VARCHAR2 ,
    x_reference_code_desc  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)
  ***************************************************************/
  CURSOR cur_ps_usec_ref_cd_v IS
    SELECT reference_code_type
    FROM   igs_ps_usec_ref_cd_v
    WHERE  unit_section_reference_cd_id = x_unit_section_reference_cd_id;
Line: 403

      x_last_update_date,
      x_last_updated_by,
      x_last_update_login ,
      x_reference_code_type  ,
      x_reference_code       ,
      x_reference_code_desc
    );
Line: 411

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

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

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

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

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

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

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

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

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

  PROCEDURE insert_row (
      x_rowid IN OUT NOCOPY VARCHAR2,
      x_unit_section_reference_cd_id IN OUT NOCOPY NUMBER,
      x_unit_section_reference_id IN NUMBER,
      x_mode IN VARCHAR2 DEFAULT 'R' ,
      x_reference_code_type  IN VARCHAR2 ,
      x_reference_code       IN VARCHAR2 ,
      x_reference_code_desc  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)
  ***************************************************************/

    CURSOR c IS SELECT ROWID FROM igs_ps_usec_ref_cd
             WHERE   unit_section_reference_cd_id= x_unit_section_reference_cd_id;
Line: 514

     x_last_update_date DATE ;
Line: 515

     x_last_updated_by NUMBER ;
Line: 516

     x_last_update_login NUMBER ;
Line: 518

     x_last_update_date := SYSDATE;
Line: 520

        x_last_updated_by := 1;
Line: 521

        x_last_update_login := 0;
Line: 523

               x_last_updated_by := fnd_global.user_id;
Line: 524

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

            x_last_update_login :=fnd_global.login_id;
Line: 528

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

   SELECT igs_ps_usec_ref_cd_s.nextval
   INTO   x_unit_section_reference_cd_id
   FROM   dual;
Line: 540

   p_action=>'INSERT',
   x_rowid=>x_rowid,
        x_unit_section_reference_cd_id=>x_unit_section_reference_cd_id,
        x_unit_section_reference_id=>x_unit_section_reference_id,
        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_reference_code_type=>x_reference_code_type);
Line: 550

     INSERT INTO igs_ps_usec_ref_cd (
  unit_section_reference_cd_id
  ,unit_section_reference_id
  ,creation_date
  ,created_by
  ,last_update_date
  ,last_updated_by
  ,last_update_login
  ,reference_code_type
  ,reference_code
  ,reference_code_desc

        ) VALUES  (
  new_references.unit_section_reference_cd_id
  ,new_references.unit_section_reference_id
  ,x_last_update_date
  ,x_last_updated_by
  ,x_last_update_date
  ,x_last_updated_by
  ,x_last_update_login
  ,x_reference_code_type
  ,x_reference_code
  ,x_reference_code_desc
  );
Line: 582

  p_action => 'INSERT' ,
  x_rowid => x_rowid );
Line: 584

 END insert_row;
Line: 605

   CURSOR c1 IS SELECT
      unit_section_reference_id,
      reference_code_type,
      reference_code,
      reference_code_desc
    FROM igs_ps_usec_ref_cd
    WHERE ROWID = x_rowid
    FOR UPDATE NOWAIT;
Line: 618

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

 PROCEDURE update_row (
       x_rowid IN  VARCHAR2,
       x_unit_section_reference_cd_id IN NUMBER,
       x_unit_section_reference_id IN NUMBER,
       x_mode IN VARCHAR2 DEFAULT 'R'  ,
       x_reference_code_type  IN VARCHAR2,
       x_reference_code       IN VARCHAR2 ,
       x_reference_code_desc  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)
  ***************************************************************/

     x_last_update_date DATE ;
Line: 665

     x_last_updated_by NUMBER ;
Line: 666

     x_last_update_login NUMBER ;
Line: 668

      x_last_update_date := SYSDATE;
Line: 670

        x_last_updated_by := 1;
Line: 671

        x_last_update_login := 0;
Line: 673

               x_last_updated_by := fnd_global.user_id;
Line: 674

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

            x_last_update_login :=fnd_global.login_id;
Line: 678

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

   p_action=>'UPDATE',
   x_rowid=>x_rowid,
         x_unit_section_reference_cd_id=>x_unit_section_reference_cd_id,
         x_unit_section_reference_id=>x_unit_section_reference_id,
         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_reference_code_type=>x_reference_code_type,
         x_reference_code=>x_reference_code,
         x_reference_code_desc=>x_reference_code_desc
);
Line: 700

   UPDATE igs_ps_usec_ref_cd SET
      unit_section_reference_id =  new_references.unit_section_reference_id,
      last_update_date = x_last_update_date,
      last_updated_by = x_last_updated_by,
      last_update_login = x_last_update_login,
      reference_code_type= x_reference_code_type,
      reference_code = x_reference_code,
      reference_code_desc = x_reference_code_desc

   WHERE ROWID = x_rowid;
Line: 715

     p_action => 'UPDATE' ,
     x_rowid => x_rowid
   );
Line: 718

 END update_row;
Line: 739

    CURSOR c1 IS SELECT ROWID FROM igs_ps_usec_ref_cd
             WHERE     unit_section_reference_cd_id= x_unit_section_reference_cd_id;
Line: 746

      insert_row (
        x_rowid,
        x_unit_section_reference_cd_id,
        x_unit_section_reference_id,
        x_mode ,
        x_reference_code_type,
        x_reference_code,
        x_reference_code_desc);
Line: 757

    update_row (
       x_rowid,
       x_unit_section_reference_cd_id,
       x_unit_section_reference_id,
       x_mode,
       x_reference_code_type,
       x_reference_code,
       x_reference_code_desc);
Line: 766

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

    DELETE FROM igs_ps_usec_ref_cd
    WHERE ROWID = x_rowid;
Line: 790

      p_action => 'DELETE',
      x_rowid => x_rowid
    );
Line: 793

  END delete_row;