DBA Data[Home] [Help]

APPS.IGS_EN_SPL_PERM_H_PKG SQL Statements

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

Line: 26

    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 : pradhakr
  ||  Created On : 29-JUN-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)
  */

    CURSOR cur_old_ref_values IS
      SELECT   *
      FROM     IGS_EN_SPL_PERM_H
      WHERE    rowid = x_rowid;
Line: 53

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 86

    new_references.last_updated_by                   := x_last_updated_by;
Line: 87

    new_references.last_update_login                 := x_last_update_login;
Line: 110

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

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

      SELECT   rowid
      FROM     igs_en_spl_perm_h
      WHERE    spl_perm_request_h_id = x_spl_perm_request_h_id
      FOR UPDATE NOWAIT;
Line: 180

      SELECT   rowid
      FROM     igs_en_spl_perm_h
      WHERE   ((spl_perm_request_id = x_spl_perm_request_id));
Line: 220

    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 : pradhakr
  ||  Created On : 29-JUN-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)
  */
  BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_spl_perm_request_h_id,
      x_spl_perm_request_id,
      x_date_submission,
      x_audit_the_course,
      x_approval_status,
      x_reason_for_request,
      x_instructor_more_info,
      x_instructor_deny_info,
      x_student_more_info,
      x_transaction_type,
      x_hist_start_dt,
      x_hist_end_dt,
      x_hist_who,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 259

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_spl_perm_request_h_id             IN OUT NOCOPY NUMBER,
    x_spl_perm_request_id               IN     NUMBER,
    x_date_submission                   IN     DATE,
    x_audit_the_course                  IN     VARCHAR2,
    x_approval_status                   IN     VARCHAR2,
    x_reason_for_request                IN     VARCHAR2,
    x_instructor_more_info              IN     VARCHAR2,
    x_instructor_deny_info              IN     VARCHAR2,
    x_student_more_info                 IN     VARCHAR2,
    x_transaction_type                  IN     VARCHAR2,
    x_hist_start_dt                     IN     DATE,
    x_hist_end_dt                       IN     DATE,
    x_hist_who                          IN     NUMBER,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : pradhakr
  ||  Created On : 29-JUN-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)
  */
    CURSOR c IS
      SELECT   rowid
      FROM     igs_en_spl_perm_h
      WHERE    spl_perm_request_h_id             = x_spl_perm_request_h_id;
Line: 319

    x_last_update_date           DATE;
Line: 320

    x_last_updated_by            NUMBER;
Line: 321

    x_last_update_login          NUMBER;
Line: 325

    x_last_update_date := SYSDATE;
Line: 327

      x_last_updated_by := 1;
Line: 328

      x_last_update_login := 0;
Line: 330

      x_last_updated_by := fnd_global.user_id;
Line: 331

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

      x_last_update_login := fnd_global.login_id;
Line: 335

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

    SELECT    igs_en_spl_perm_h_s.NEXTVAL
    INTO      x_spl_perm_request_h_id
    FROM      dual;
Line: 349

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_spl_perm_request_h_id             => x_spl_perm_request_h_id,
      x_spl_perm_request_id               => x_spl_perm_request_id,
      x_date_submission                   => x_date_submission,
      x_audit_the_course                  => x_audit_the_course,
      x_approval_status                   => x_approval_status,
      x_reason_for_request                => x_reason_for_request,
      x_instructor_more_info              => x_instructor_more_info,
      x_instructor_deny_info              => x_instructor_deny_info,
      x_student_more_info                 => x_student_more_info,
      x_transaction_type                  => x_transaction_type,
      x_hist_start_dt                     => x_hist_start_dt,
      x_hist_end_dt                       => x_hist_end_dt,
      x_hist_who                          => x_hist_who,
      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: 371

    INSERT INTO igs_en_spl_perm_h (
      spl_perm_request_h_id,
      spl_perm_request_id,
      date_submission,
      audit_the_course,
      approval_status,
      reason_for_request,
      instructor_more_info,
      instructor_deny_info,
      student_more_info,
      transaction_type,
      hist_start_dt,
      hist_end_dt,
      hist_who,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.spl_perm_request_h_id,
      new_references.spl_perm_request_id,
      new_references.date_submission,
      new_references.audit_the_course,
      new_references.approval_status,
      new_references.reason_for_request,
      new_references.instructor_more_info,
      new_references.instructor_deny_info,
      new_references.student_more_info,
      new_references.transaction_type,
      new_references.hist_start_dt,
      new_references.hist_end_dt,
      new_references.hist_who,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 419

  END insert_row;
Line: 448

      SELECT
        spl_perm_request_id,
        date_submission,
        audit_the_course,
        approval_status,
        reason_for_request,
        instructor_more_info,
        instructor_deny_info,
        student_more_info,
        transaction_type,
        hist_start_dt,
        hist_end_dt,
        hist_who
      FROM  igs_en_spl_perm_h
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 472

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_spl_perm_request_h_id             IN     NUMBER,
    x_spl_perm_request_id               IN     NUMBER,
    x_date_submission                   IN     DATE,
    x_audit_the_course                  IN     VARCHAR2,
    x_approval_status                   IN     VARCHAR2,
    x_reason_for_request                IN     VARCHAR2,
    x_instructor_more_info              IN     VARCHAR2,
    x_instructor_deny_info              IN     VARCHAR2,
    x_student_more_info                 IN     VARCHAR2,
    x_transaction_type                  IN     VARCHAR2,
    x_hist_start_dt                     IN     DATE,
    x_hist_end_dt                       IN     DATE,
    x_hist_who                          IN     NUMBER,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : pradhakr
  ||  Created On : 29-JUN-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)
  */
    x_last_update_date           DATE ;
Line: 533

    x_last_updated_by            NUMBER;
Line: 534

    x_last_update_login          NUMBER;
Line: 538

    x_last_update_date := SYSDATE;
Line: 540

      x_last_updated_by := 1;
Line: 541

      x_last_update_login := 0;
Line: 543

      x_last_updated_by := fnd_global.user_id;
Line: 544

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

      x_last_update_login := fnd_global.login_id;
Line: 548

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_spl_perm_request_h_id             => x_spl_perm_request_h_id,
      x_spl_perm_request_id               => x_spl_perm_request_id,
      x_date_submission                   => x_date_submission,
      x_audit_the_course                  => x_audit_the_course,
      x_approval_status                   => x_approval_status,
      x_reason_for_request                => x_reason_for_request,
      x_instructor_more_info              => x_instructor_more_info,
      x_instructor_deny_info              => x_instructor_deny_info,
      x_student_more_info                 => x_student_more_info,
      x_transaction_type                  => x_transaction_type,
      x_hist_start_dt                     => x_hist_start_dt,
      x_hist_end_dt                       => x_hist_end_dt,
      x_hist_who                          => x_hist_who,
      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: 580

    UPDATE igs_en_spl_perm_h
      SET
        spl_perm_request_id               = new_references.spl_perm_request_id,
        date_submission                   = new_references.date_submission,
        audit_the_course                  = new_references.audit_the_course,
        approval_status                   = new_references.approval_status,
        reason_for_request                = new_references.reason_for_request,
        instructor_more_info              = new_references.instructor_more_info,
        instructor_deny_info              = new_references.instructor_deny_info,
        student_more_info                 = new_references.student_more_info,
        transaction_type                  = new_references.transaction_type,
        hist_start_dt                     = new_references.hist_start_dt,
        hist_end_dt                       = new_references.hist_end_dt,
        hist_who                          = new_references.hist_who,
        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: 603

  END update_row;
Line: 626

  ||  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_en_spl_perm_h
      WHERE    spl_perm_request_h_id             = x_spl_perm_request_h_id;
Line: 644

      insert_row (
        x_rowid,
        x_spl_perm_request_h_id,
        x_spl_perm_request_id,
        x_date_submission,
        x_audit_the_course,
        x_approval_status,
        x_reason_for_request,
        x_instructor_more_info,
        x_instructor_deny_info,
        x_student_more_info,
        x_transaction_type,
        x_hist_start_dt,
        x_hist_end_dt,
        x_hist_who,
        x_mode
      );
Line: 665

    update_row (
      x_rowid,
      x_spl_perm_request_h_id,
      x_spl_perm_request_id,
      x_date_submission,
      x_audit_the_course,
      x_approval_status,
      x_reason_for_request,
      x_instructor_more_info,
      x_instructor_deny_info,
      x_student_more_info,
      x_transaction_type,
      x_hist_start_dt,
      x_hist_end_dt,
      x_hist_who,
      x_mode
    );
Line: 686

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : pradhakr
  ||  Created On : 29-JUN-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: 705

    DELETE FROM igs_en_spl_perm_h
    WHERE rowid = x_rowid;
Line: 712

  END delete_row;