DBA Data[Home] [Help]

APPS.IGS_PE_CREDENTIALS_PKG SQL Statements

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

Line: 22

    x_last_update_date                  IN     DATE        ,
    x_last_updated_by                   IN     NUMBER      ,
    x_last_update_login                 IN     NUMBER      ,
    x_rating_code                       IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 10-JAN-2002
  ||  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_pe_credentials
      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: 70

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

    new_references.last_update_date                  := x_last_update_date;
Line: 79

    new_references.last_updated_by                   := x_last_updated_by;
Line: 80

    new_references.last_update_login                 := x_last_update_login;
Line: 139

      SELECT   rowid
      FROM     igs_pe_credentials
      WHERE    credential_id = x_credential_id
      FOR UPDATE NOWAIT;
Line: 174

      SELECT   rowid
      FROM     igs_pe_credentials
      WHERE   ((credential_type_id = x_credential_type_id));
Line: 208

      SELECT   rowid
      FROM     igs_pe_credentials
      WHERE   ((rating = x_code_id));
Line: 242

      SELECT   rowid
      FROM     igs_pe_credentials
      WHERE   ((person_id = x_party_id));
Line: 278

    x_last_update_date                  IN     DATE        ,
    x_last_updated_by                   IN     NUMBER      ,
    x_last_update_login                 IN     NUMBER      ,
    x_rating_code                       IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 10-JAN-2002
  ||  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
  ||  ssawhney       16-apr-2003               BUG 2893294, reviewer can BE NULL.
  */
  CURSOR is_reviewer_evaluator IS
  SELECT 'X'
  FROM IGS_PE_TYP_INSTANCES PI,
       IGS_PE_PERSON_TYPES  PT
  WHERE
    PT.PERSON_TYPE_CODE = PI.PERSON_TYPE_CODE AND
	PT.SYSTEM_TYPE IN ('STAFF','FACULTY','EVALUATOR') AND
	SYSDATE BETWEEN PI.START_DATE AND NVL(PI.END_DATE,SYSDATE) AND
	PI.PERSON_ID = x_reviewer_id;
Line: 320

      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      x_rating_code
    );
Line: 328

    IF (p_action IN ('INSERT','UPDATE')) THEN
      IF(x_reviewer_id = x_person_id) THEN
        FND_MESSAGE.SET_NAME('IGS','IGS_PE_REVR_PRSN_SAME');
Line: 348

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_credential_id                     IN OUT NOCOPY NUMBER,
    x_person_id                         IN     NUMBER,
    x_credential_type_id                IN     NUMBER,
    x_date_received                     IN     DATE,
    x_reviewer_id                       IN     NUMBER,
    x_reviewer_notes                    IN     VARCHAR2,
    x_recommender_name                  IN     VARCHAR2,
    x_recommender_title                 IN     VARCHAR2,
    x_recommender_organization          IN     VARCHAR2,
    x_mode                              IN     VARCHAR2  ,
    x_rating_code                       IN     varchar2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 10-JAN-2002
  ||  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_pe_credentials
      WHERE    credential_id                     = x_credential_id;
Line: 405

    x_last_update_date           DATE;
Line: 406

    x_last_updated_by            NUMBER;
Line: 407

    x_last_update_login          NUMBER;
Line: 411

    x_last_update_date := SYSDATE;
Line: 413

      x_last_updated_by := 1;
Line: 414

      x_last_update_login := 0;
Line: 416

      x_last_updated_by := fnd_global.user_id;
Line: 417

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

      x_last_update_login := fnd_global.login_id;
Line: 421

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

    SELECT    igs_pe_credentials_s.NEXTVAL
    INTO      x_credential_id
    FROM      dual;
Line: 435

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_credential_id                     => x_credential_id,
      x_person_id                         => x_person_id,
      x_credential_type_id                => x_credential_type_id,
      x_date_received                     => x_date_received,
      x_reviewer_id                       => x_reviewer_id,
      x_reviewer_notes                    => x_reviewer_notes,
      x_recommender_name                  => x_recommender_name,
      x_recommender_title                 => x_recommender_title,
      x_recommender_organization          => x_recommender_organization,
      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_rating_code                       => x_rating_code
    );
Line: 457

 INSERT INTO igs_pe_credentials (
      credential_id,
      person_id,
      credential_type_id,
      date_received,
      reviewer_id,
      reviewer_notes,
      recommender_name,
      recommender_title,
      recommender_organization,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      rating_code
    ) VALUES (
      new_references.credential_id,
      new_references.person_id,
      new_references.credential_type_id,
      new_references.date_received,
      new_references.reviewer_id,
      new_references.reviewer_notes,
      new_references.recommender_name,
      new_references.recommender_title,
      new_references.recommender_organization,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      new_references.rating_code
    );
Line: 516

 END insert_row;
Line: 542

      SELECT
        person_id,
        credential_type_id,
        date_received,
        reviewer_id,
        reviewer_notes,
        recommender_name,
        recommender_title,
        recommender_organization,
	rating_code
      FROM  igs_pe_credentials
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 563

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_credential_id                     IN     NUMBER,
    x_person_id                         IN     NUMBER,
    x_credential_type_id                IN     NUMBER,
    x_date_received                     IN     DATE,
    x_reviewer_id                       IN     NUMBER,
    x_reviewer_notes                    IN     VARCHAR2,
    x_recommender_name                  IN     VARCHAR2,
    x_recommender_title                 IN     VARCHAR2,
    x_recommender_organization          IN     VARCHAR2,
    x_mode                              IN     VARCHAR2  ,
    x_rating_code                       IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 10-JAN-2002
  ||  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: 618

    x_last_updated_by            NUMBER;
Line: 619

    x_last_update_login          NUMBER;
Line: 623

    x_last_update_date := SYSDATE;
Line: 625

      x_last_updated_by := 1;
Line: 626

      x_last_update_login := 0;
Line: 628

      x_last_updated_by := fnd_global.user_id;
Line: 629

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

      x_last_update_login := fnd_global.login_id;
Line: 633

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_credential_id                     => x_credential_id,
      x_person_id                         => x_person_id,
      x_credential_type_id                => x_credential_type_id,
      x_date_received                     => x_date_received,
      x_reviewer_id                       => x_reviewer_id,
      x_reviewer_notes                    => x_reviewer_notes,
      x_recommender_name                  => x_recommender_name,
      x_recommender_title                 => x_recommender_title,
      x_recommender_organization          => x_recommender_organization,
      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_rating_code                       => x_rating_code
    );
Line: 665

 UPDATE igs_pe_credentials
      SET
        person_id                         = new_references.person_id,
        credential_type_id                = new_references.credential_type_id,
        date_received                     = new_references.date_received,
        reviewer_id                       = new_references.reviewer_id,
        reviewer_notes                    = new_references.reviewer_notes,
        recommender_name                  = new_references.recommender_name,
        recommender_title                 = new_references.recommender_title,
        recommender_organization          = new_references.recommender_organization,
        last_update_date                  = x_last_update_date,
        last_updated_by                   = x_last_updated_by,
        last_update_login                 = x_last_update_login ,
	 rating_code                      = new_references.rating_code
      WHERE rowid = x_rowid;
Line: 705

 END update_row;
Line: 725

  ||  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_pe_credentials
      WHERE    credential_id                     = x_credential_id;
Line: 743

      insert_row (
        x_rowid,
        x_credential_id,
        x_person_id,
        x_credential_type_id,
        x_date_received,
        x_reviewer_id,
        x_reviewer_notes,
        x_recommender_name,
        x_recommender_title,
        x_recommender_organization,
        x_mode,
	x_rating_code
      );
Line: 761

    update_row (
      x_rowid,
      x_credential_id,
      x_person_id,
      x_credential_type_id,
      x_date_received,
      x_reviewer_id,
      x_reviewer_notes,
      x_recommender_name,
      x_recommender_title,
      x_recommender_organization,
      x_mode ,
      x_rating_code
    );
Line: 779

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2,
  x_mode IN VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 10-JAN-2002
  ||  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: 802

 DELETE FROM igs_pe_credentials
    WHERE rowid = x_rowid;
Line: 816

  END delete_row;