DBA Data[Home] [Help]

APPS.IGS_DA_RQST_PKG SQL Statements

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

Line: 45

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By :
  ||  Created On : 27-MAR-2003
  ||  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_da_rqst
      WHERE    rowid = x_rowid;
Line: 72

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 124

    new_references.last_updated_by                   := x_last_updated_by;
Line: 125

    new_references.last_update_login                 := x_last_update_login;
Line: 148

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

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

      SELECT   rowid
      FROM     igs_da_rqst
      WHERE    batch_id = x_batch_id
      FOR UPDATE NOWAIT;
Line: 238

      SELECT   rowid
      FROM     igs_da_rqst
      WHERE   ((request_type_id = x_request_type_id));
Line: 273

      SELECT   rowid
      FROM     igs_da_rqst
      WHERE   ((person_id_group_id = x_group_id));
Line: 332

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By :
  ||  Created On : 27-MAR-2003
  ||  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_batch_id,
      x_request_type_id,
      x_request_mode,
      x_program_comparison_type,
      x_request_status,
      x_person_id_group_id,
      x_person_id,
      x_requestor_id,
      x_student_release_ind,
      x_special_program,
      x_special_program_catalog,
      x_attribute_category,
      x_attribute1,
      x_attribute2,
      x_attribute3,
      x_attribute4,
      x_attribute5,
      x_attribute6,
      x_attribute7,
      x_attribute8,
      x_attribute9,
      x_attribute10,
      x_attribute11,
      x_attribute12,
      x_attribute13,
      x_attribute14,
      x_attribute15,
      x_attribute16,
      x_attribute17,
      x_attribute18,
      x_attribute19,
      x_attribute20,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 388

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

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

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

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

    ELSIF (p_action = 'VALIDATE_DELETE') THEN
      check_child_existance;
Line: 421

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_batch_id                          IN OUT NOCOPY NUMBER,
    x_request_type_id                   IN     NUMBER,
    x_request_mode                      IN     VARCHAR2,
    x_program_comparison_type           IN     VARCHAR2,
    x_request_status                    IN     VARCHAR2,
    x_person_id_group_id                IN     NUMBER,
    x_person_id                         IN     NUMBER,
    x_requestor_id                      IN     NUMBER,
    x_student_release_ind               IN     VARCHAR2,
    x_special_program                   IN     VARCHAR2,
    x_special_program_catalog           IN     VARCHAR2,
    x_attribute_category                IN     VARCHAR2,
    x_attribute1                        IN     VARCHAR2,
    x_attribute2                        IN     VARCHAR2,
    x_attribute3                        IN     VARCHAR2,
    x_attribute4                        IN     VARCHAR2,
    x_attribute5                        IN     VARCHAR2,
    x_attribute6                        IN     VARCHAR2,
    x_attribute7                        IN     VARCHAR2,
    x_attribute8                        IN     VARCHAR2,
    x_attribute9                        IN     VARCHAR2,
    x_attribute10                       IN     VARCHAR2,
    x_attribute11                       IN     VARCHAR2,
    x_attribute12                       IN     VARCHAR2,
    x_attribute13                       IN     VARCHAR2,
    x_attribute14                       IN     VARCHAR2,
    x_attribute15                       IN     VARCHAR2,
    x_attribute16                       IN     VARCHAR2,
    x_attribute17                       IN     VARCHAR2,
    x_attribute18                       IN     VARCHAR2,
    x_attribute19                       IN     VARCHAR2,
    x_attribute20                       IN     VARCHAR2,
    x_mode                              IN     VARCHAR2,
    X_RETURN_STATUS                     OUT NOCOPY    VARCHAR2,
    X_MSG_DATA                          OUT NOCOPY    VARCHAR2,
    X_MSG_COUNT                         OUT NOCOPY    NUMBER
  ) AS
  /*
  ||  Created By :
  ||  Created On : 27-MAR-2003
  ||  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)
  */

    x_last_update_date           DATE;
Line: 471

    x_last_updated_by            NUMBER;
Line: 472

    x_last_update_login          NUMBER;
Line: 476

    x_last_update_date := SYSDATE;
Line: 478

      x_last_updated_by := 1;
Line: 479

      x_last_update_login := 0;
Line: 481

      x_last_updated_by := fnd_global.user_id;
Line: 482

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

      x_last_update_login := fnd_global.login_id;
Line: 486

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

      fnd_message.set_token ('ROUTINE', 'IGS_DA_RQST_PKG.INSERT_ROW');
Line: 498

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_batch_id                          => x_batch_id,
      x_request_type_id                   => x_request_type_id,
      x_request_mode                      => x_request_mode,
      x_program_comparison_type           => x_program_comparison_type,
      x_request_status                    => x_request_status,
      x_person_id_group_id                => x_person_id_group_id,
      x_person_id                         => x_person_id,
      x_requestor_id                      => x_requestor_id,
      x_student_release_ind               => x_student_release_ind,
      x_special_program                   => x_special_program,
      x_special_program_catalog           => x_special_program_catalog,
      x_attribute_category                => x_attribute_category,
      x_attribute1                        => x_attribute1,
      x_attribute2                        => x_attribute2,
      x_attribute3                        => x_attribute3,
      x_attribute4                        => x_attribute4,
      x_attribute5                        => x_attribute5,
      x_attribute6                        => x_attribute6,
      x_attribute7                        => x_attribute7,
      x_attribute8                        => x_attribute8,
      x_attribute9                        => x_attribute9,
      x_attribute10                       => x_attribute10,
      x_attribute11                       => x_attribute11,
      x_attribute12                       => x_attribute12,
      x_attribute13                       => x_attribute13,
      x_attribute14                       => x_attribute14,
      x_attribute15                       => x_attribute15,
      x_attribute16                       => x_attribute16,
      x_attribute17                       => x_attribute17,
      x_attribute18                       => x_attribute18,
      x_attribute19                       => x_attribute19,
      x_attribute20                       => x_attribute20,
      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: 538

    INSERT INTO igs_da_rqst (
      batch_id,
      request_type_id,
      request_mode,
      program_comparison_type,
      request_status,
      person_id_group_id,
      person_id,
      requestor_id,
      student_release_ind,
      special_program,
      special_program_catalog,
      attribute_category,
      attribute1,
      attribute2,
      attribute3,
      attribute4,
      attribute5,
      attribute6,
      attribute7,
      attribute8,
      attribute9,
      attribute10,
      attribute11,
      attribute12,
      attribute13,
      attribute14,
      attribute15,
      attribute16,
      attribute17,
      attribute18,
      attribute19,
      attribute20,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.batch_id,
      new_references.request_type_id,
      new_references.request_mode,
      new_references.program_comparison_type,
      new_references.request_status,
      new_references.person_id_group_id,
      new_references.person_id,
      new_references.requestor_id,
      new_references.student_release_ind,
      new_references.special_program,
      new_references.special_program_catalog,
      new_references.attribute_category,
      new_references.attribute1,
      new_references.attribute2,
      new_references.attribute3,
      new_references.attribute4,
      new_references.attribute5,
      new_references.attribute6,
      new_references.attribute7,
      new_references.attribute8,
      new_references.attribute9,
      new_references.attribute10,
      new_references.attribute11,
      new_references.attribute12,
      new_references.attribute13,
      new_references.attribute14,
      new_references.attribute15,
      new_references.attribute16,
      new_references.attribute17,
      new_references.attribute18,
      new_references.attribute19,
      new_references.attribute20,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    ) RETURNING ROWID, batch_id INTO x_rowid, x_batch_id;
Line: 643

             FND_MESSAGE.SET_TOKEN('NAME','Insert_Row : '||SQLERRM);
Line: 652

  END insert_row;
Line: 703

      SELECT
        request_type_id,
        request_mode,
        program_comparison_type,
        request_status,
        person_id_group_id,
        person_id,
        requestor_id,
        student_release_ind,
        special_program,
        special_program_catalog,
        attribute_category,
        attribute1,
        attribute2,
        attribute3,
        attribute4,
        attribute5,
        attribute6,
        attribute7,
        attribute8,
        attribute9,
        attribute10,
        attribute11,
        attribute12,
        attribute13,
        attribute14,
        attribute15,
        attribute16,
        attribute17,
        attribute18,
        attribute19,
        attribute20
      FROM  igs_da_rqst
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 746

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

	 FND_MESSAGE.SET_TOKEN('NAME','Insert_Row : '||SQLERRM);
Line: 832

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_batch_id                          IN     NUMBER,
    x_request_type_id                   IN     NUMBER,
    x_request_mode                      IN     VARCHAR2,
    x_program_comparison_type           IN     VARCHAR2,
    x_request_status                    IN     VARCHAR2,
    x_person_id_group_id                IN     NUMBER,
    x_person_id                         IN     NUMBER,
    x_requestor_id                      IN     NUMBER,
    x_student_release_ind               IN     VARCHAR2,
    x_special_program                   IN     VARCHAR2,
    x_special_program_catalog           IN     VARCHAR2,
    x_attribute_category                IN     VARCHAR2,
    x_attribute1                        IN     VARCHAR2,
    x_attribute2                        IN     VARCHAR2,
    x_attribute3                        IN     VARCHAR2,
    x_attribute4                        IN     VARCHAR2,
    x_attribute5                        IN     VARCHAR2,
    x_attribute6                        IN     VARCHAR2,
    x_attribute7                        IN     VARCHAR2,
    x_attribute8                        IN     VARCHAR2,
    x_attribute9                        IN     VARCHAR2,
    x_attribute10                       IN     VARCHAR2,
    x_attribute11                       IN     VARCHAR2,
    x_attribute12                       IN     VARCHAR2,
    x_attribute13                       IN     VARCHAR2,
    x_attribute14                       IN     VARCHAR2,
    x_attribute15                       IN     VARCHAR2,
    x_attribute16                       IN     VARCHAR2,
    x_attribute17                       IN     VARCHAR2,
    x_attribute18                       IN     VARCHAR2,
    x_attribute19                       IN     VARCHAR2,
    x_attribute20                       IN     VARCHAR2,
    x_mode                              IN     VARCHAR2,
    X_RETURN_STATUS                     OUT NOCOPY    VARCHAR2,
    X_MSG_DATA                          OUT NOCOPY    VARCHAR2,
    X_MSG_COUNT                         OUT NOCOPY    NUMBER
  ) AS
  /*
  ||  Created By :
  ||  Created On : 27-MAR-2003
  ||  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: 881

    x_last_updated_by            NUMBER;
Line: 882

    x_last_update_login          NUMBER;
Line: 886

    x_last_update_date := SYSDATE;
Line: 888

      x_last_updated_by := 1;
Line: 889

      x_last_update_login := 0;
Line: 891

      x_last_updated_by := fnd_global.user_id;
Line: 892

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

      x_last_update_login := fnd_global.login_id;
Line: 896

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

      fnd_message.set_token ('ROUTINE', 'IGS_DA_RQST_PKG.UPDATE_ROW');
Line: 909

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_batch_id                          => x_batch_id,
      x_request_type_id                   => x_request_type_id,
      x_request_mode                      => x_request_mode,
      x_program_comparison_type           => x_program_comparison_type,
      x_request_status                    => x_request_status,
      x_person_id_group_id                => x_person_id_group_id,
      x_person_id                         => x_person_id,
      x_requestor_id                      => x_requestor_id,
      x_student_release_ind               => x_student_release_ind,
      x_special_program                   => x_special_program,
      x_special_program_catalog           => x_special_program_catalog,
      x_attribute_category                => x_attribute_category,
      x_attribute1                        => x_attribute1,
      x_attribute2                        => x_attribute2,
      x_attribute3                        => x_attribute3,
      x_attribute4                        => x_attribute4,
      x_attribute5                        => x_attribute5,
      x_attribute6                        => x_attribute6,
      x_attribute7                        => x_attribute7,
      x_attribute8                        => x_attribute8,
      x_attribute9                        => x_attribute9,
      x_attribute10                       => x_attribute10,
      x_attribute11                       => x_attribute11,
      x_attribute12                       => x_attribute12,
      x_attribute13                       => x_attribute13,
      x_attribute14                       => x_attribute14,
      x_attribute15                       => x_attribute15,
      x_attribute16                       => x_attribute16,
      x_attribute17                       => x_attribute17,
      x_attribute18                       => x_attribute18,
      x_attribute19                       => x_attribute19,
      x_attribute20                       => x_attribute20,
      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: 950

    UPDATE igs_da_rqst
      SET
        request_type_id                   = new_references.request_type_id,
        request_mode                      = new_references.request_mode,
        program_comparison_type           = new_references.program_comparison_type,
        request_status                    = new_references.request_status,
        person_id_group_id                = new_references.person_id_group_id,
        person_id                         = new_references.person_id,
        requestor_id                      = new_references.requestor_id,
        student_release_ind               = new_references.student_release_ind,
        special_program                   = new_references.special_program,
        special_program_catalog           = new_references.special_program_catalog,
        attribute_category                = new_references.attribute_category,
        attribute1                        = new_references.attribute1,
        attribute2                        = new_references.attribute2,
        attribute3                        = new_references.attribute3,
        attribute4                        = new_references.attribute4,
        attribute5                        = new_references.attribute5,
        attribute6                        = new_references.attribute6,
        attribute7                        = new_references.attribute7,
        attribute8                        = new_references.attribute8,
        attribute9                        = new_references.attribute9,
        attribute10                       = new_references.attribute10,
        attribute11                       = new_references.attribute11,
        attribute12                       = new_references.attribute12,
        attribute13                       = new_references.attribute13,
        attribute14                       = new_references.attribute14,
        attribute15                       = new_references.attribute15,
        attribute16                       = new_references.attribute16,
        attribute17                       = new_references.attribute17,
        attribute18                       = new_references.attribute18,
        attribute19                       = new_references.attribute19,
        attribute20                       = new_references.attribute20,
        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: 1019

           FND_MESSAGE.SET_TOKEN('NAME','Update_Row : '||SQLERRM);
Line: 1027

  END update_row;
Line: 1069

  ||  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_da_rqst
      WHERE    batch_id                          = x_batch_id;
Line: 1089

      insert_row (
        x_rowid,
        x_batch_id,
        x_request_type_id,
        x_request_mode,
        x_program_comparison_type,
        x_request_status,
        x_person_id_group_id,
        x_person_id,
        x_requestor_id,
        x_student_release_ind,
        x_special_program,
        x_special_program_catalog,
        x_attribute_category,
        x_attribute1,
        x_attribute2,
        x_attribute3,
        x_attribute4,
        x_attribute5,
        x_attribute6,
        x_attribute7,
        x_attribute8,
        x_attribute9,
        x_attribute10,
        x_attribute11,
        x_attribute12,
        x_attribute13,
        x_attribute14,
        x_attribute15,
        x_attribute16,
        x_attribute17,
        x_attribute18,
        x_attribute19,
        x_attribute20,
        x_mode ,
        L_RETURN_STATUS,
	L_MSG_DATA     ,
	L_MSG_COUNT
      );
Line: 1132

    update_row (
      x_rowid,
      x_batch_id,
      x_request_type_id,
      x_request_mode,
      x_program_comparison_type,
      x_request_status,
      x_person_id_group_id,
      x_person_id,
      x_requestor_id,
      x_student_release_ind,
      x_special_program,
      x_special_program_catalog,
      x_attribute_category,
      x_attribute1,
      x_attribute2,
      x_attribute3,
      x_attribute4,
      x_attribute5,
      x_attribute6,
      x_attribute7,
      x_attribute8,
      x_attribute9,
      x_attribute10,
      x_attribute11,
      x_attribute12,
      x_attribute13,
      x_attribute14,
      x_attribute15,
      x_attribute16,
      x_attribute17,
      x_attribute18,
      x_attribute19,
      x_attribute20,
      x_mode,
      L_RETURN_STATUS,
      L_MSG_DATA     ,
      L_MSG_COUNT
    );
Line: 1175

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2 ,
    X_RETURN_STATUS                     OUT NOCOPY    VARCHAR2,
    X_MSG_DATA                          OUT NOCOPY    VARCHAR2,
    X_MSG_COUNT                         OUT NOCOPY    NUMBER
  ) AS
  /*
  ||  Created By :
  ||  Created On : 27-MAR-2003
  ||  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
    FND_MSG_PUB.initialize;
Line: 1193

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

    DELETE FROM igs_da_rqst
    WHERE rowid = x_rowid;
Line: 1231

           FND_MESSAGE.SET_TOKEN('NAME','Insert_Row : '||SQLERRM);
Line: 1239

  END delete_row;