DBA Data[Home] [Help]

APPS.IGS_FI_PP_STD_ATTRS_PKG SQL Statements

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

Line: 46

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : smvk
  ||  Created On : 24-AUG-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_fi_pp_std_attrs
      WHERE    rowid = x_rowid;
Line: 73

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 126

    new_references.last_updated_by                   := x_last_updated_by;
Line: 127

    new_references.last_update_login                 := x_last_update_login;
Line: 169

      SELECT   rowid
      FROM     hz_parties
      WHERE    party_id = new_references.person_id
      AND      status = 'A';
Line: 187

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

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

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

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

      SELECT   rowid
      FROM     igs_fi_pp_std_attrs
      WHERE    student_plan_id = x_student_plan_id
      FOR UPDATE NOWAIT;
Line: 439

      SELECT   rowid
      FROM     igs_fi_pp_std_attrs
      WHERE    person_id = x_person_id
      AND      payment_plan_name = x_payment_plan_name
      AND      plan_start_date = x_plan_start_date
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 476

      SELECT   rowid
      FROM     igs_fi_pp_std_attrs
      WHERE   ((fee_cal_type = x_cal_type) AND
               (fee_ci_sequence_number = x_sequence_number));
Line: 498

  PROCEDURE  BeforeRowInsertUpdateDelete( p_inserting IN BOOLEAN DEFAULT FALSE,
                                          p_updating  IN BOOLEAN DEFAULT FALSE,
                                          p_deleting  IN BOOLEAN DEFAULT FALSE ) AS
  /*
  ||  Created By : shtatiko
  ||  Created On : 24-AUG-2003
  ||  Purpose : To carryout actions to be done before inserting/updating/deleting
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
  l_n_invoice_id igs_fi_inv_int_all.invoice_id%TYPE;
Line: 538

  END BeforeRowInsertUpdateDelete;
Line: 578

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : smvk
  ||  Created On : 24-AUG-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_student_plan_id,
      x_person_id,
      x_payment_plan_name,
      x_plan_start_date,
      x_plan_end_date,
      x_plan_status_code,
      x_processing_fee_amt,
      x_processing_fee_type,
      x_fee_cal_type,
      x_fee_ci_sequence_number,
      x_notes,
      x_invoice_id,
      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: 637

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

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

      BeforeRowInsertUpdateDelete(p_updating => TRUE);
Line: 654

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_student_plan_id                   IN OUT NOCOPY NUMBER,
    x_person_id                         IN     NUMBER,
    x_payment_plan_name                 IN     VARCHAR2,
    x_plan_start_date                   IN     DATE,
    x_plan_end_date                     IN     DATE,
    x_plan_status_code                  IN     VARCHAR2,
    x_processing_fee_amt                IN     NUMBER,
    x_processing_fee_type               IN     VARCHAR2,
    x_fee_cal_type                      IN     VARCHAR2,
    x_fee_ci_sequence_number            IN     NUMBER,
    x_notes                             IN     VARCHAR2,
    x_invoice_id                        IN     NUMBER,
    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
  ) AS
  /*
  ||  Created By : smvk
  ||  Created On : 24-AUG-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: 725

    x_last_updated_by            NUMBER;
Line: 726

    x_last_update_login          NUMBER;
Line: 730

    x_program_update_date        DATE;
Line: 734

    x_last_update_date := SYSDATE;
Line: 736

      x_last_updated_by := 1;
Line: 737

      x_last_update_login := 0;
Line: 739

      x_last_updated_by := fnd_global.user_id;
Line: 740

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

      x_last_update_login := fnd_global.login_id;
Line: 744

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

        x_program_update_date    := NULL;
Line: 757

        x_program_update_date    := SYSDATE;
Line: 761

      fnd_message.set_token ('ROUTINE', 'IGS_FI_PP_STD_ATTRS_PKG.INSERT_ROW');
Line: 769

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_student_plan_id                   => x_student_plan_id,
      x_person_id                         => x_person_id,
      x_payment_plan_name                 => x_payment_plan_name,
      x_plan_start_date                   => x_plan_start_date,
      x_plan_end_date                     => x_plan_end_date,
      x_plan_status_code                  => x_plan_status_code,
      x_processing_fee_amt                => x_processing_fee_amt,
      x_processing_fee_type               => x_processing_fee_type,
      x_fee_cal_type                      => x_fee_cal_type,
      x_fee_ci_sequence_number            => x_fee_ci_sequence_number,
      x_notes                             => x_notes,
      x_invoice_id                        => x_invoice_id,
      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: 811

    INSERT INTO igs_fi_pp_std_attrs (
      student_plan_id,
      person_id,
      payment_plan_name,
      plan_start_date,
      plan_end_date,
      plan_status_code,
      processing_fee_amt,
      processing_fee_type,
      fee_cal_type,
      fee_ci_sequence_number,
      notes,
      invoice_id,
      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,
      request_id,
      program_id,
      program_application_id,
      program_update_date
    ) VALUES (
      igs_fi_pp_std_attrs_s.NEXTVAL,
      new_references.person_id,
      new_references.payment_plan_name,
      new_references.plan_start_date,
      new_references.plan_end_date,
      new_references.plan_status_code,
      new_references.processing_fee_amt,
      new_references.processing_fee_type,
      new_references.fee_cal_type,
      new_references.fee_ci_sequence_number,
      new_references.notes,
      new_references.invoice_id,
      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 ,
      x_request_id,
      x_program_id,
      x_program_application_id,
      x_program_update_date
    ) RETURNING ROWID, student_plan_id INTO x_rowid, x_student_plan_id;
Line: 899

  END insert_row;
Line: 948

      SELECT
        person_id,
        payment_plan_name,
        plan_start_date,
        plan_end_date,
        plan_status_code,
        processing_fee_amt,
        processing_fee_type,
        fee_cal_type,
        fee_ci_sequence_number,
        notes,
        invoice_id,
        attribute_category,
        attribute1,
        attribute2,
        attribute3,
        attribute4,
        attribute5,
        attribute6,
        attribute7,
        attribute8,
        attribute9,
        attribute10,
        attribute11,
        attribute12,
        attribute13,
        attribute14,
        attribute15,
        attribute16,
        attribute17,
        attribute18,
        attribute19,
        attribute20
      FROM  igs_fi_pp_std_attrs
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 992

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_student_plan_id                   IN     NUMBER,
    x_person_id                         IN     NUMBER,
    x_payment_plan_name                 IN     VARCHAR2,
    x_plan_start_date                   IN     DATE,
    x_plan_end_date                     IN     DATE,
    x_plan_status_code                  IN     VARCHAR2,
    x_processing_fee_amt                IN     NUMBER,
    x_processing_fee_type               IN     VARCHAR2,
    x_fee_cal_type                      IN     VARCHAR2,
    x_fee_ci_sequence_number            IN     NUMBER,
    x_notes                             IN     VARCHAR2,
    x_invoice_id                        IN     NUMBER,
    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
  ) AS
  /*
  ||  Created By : smvk
  ||  Created On : 24-AUG-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: 1093

    x_last_updated_by            NUMBER;
Line: 1094

    x_last_update_login          NUMBER;
Line: 1098

    x_program_update_date        DATE;
Line: 1102

    x_last_update_date := SYSDATE;
Line: 1104

      x_last_updated_by := 1;
Line: 1105

      x_last_update_login := 0;
Line: 1107

      x_last_updated_by := fnd_global.user_id;
Line: 1108

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

      x_last_update_login := fnd_global.login_id;
Line: 1112

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

      fnd_message.set_token ('ROUTINE', 'IGS_FI_PP_STD_ATTRS_PKG.UPDATE_ROW');
Line: 1123

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_student_plan_id                   => x_student_plan_id,
      x_person_id                         => x_person_id,
      x_payment_plan_name                 => x_payment_plan_name,
      x_plan_start_date                   => x_plan_start_date,
      x_plan_end_date                     => x_plan_end_date,
      x_plan_status_code                  => x_plan_status_code,
      x_processing_fee_amt                => x_processing_fee_amt,
      x_processing_fee_type               => x_processing_fee_type,
      x_fee_cal_type                      => x_fee_cal_type,
      x_fee_ci_sequence_number            => x_fee_ci_sequence_number,
      x_notes                             => x_notes,
      x_invoice_id                        => x_invoice_id,
      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: 1173

        x_program_update_date := old_references.program_update_date;
Line: 1175

        x_program_update_date := SYSDATE;
Line: 1179

    UPDATE igs_fi_pp_std_attrs
      SET
        person_id                         = new_references.person_id,
        payment_plan_name                 = new_references.payment_plan_name,
        plan_start_date                   = new_references.plan_start_date,
        plan_end_date                     = new_references.plan_end_date,
        plan_status_code                  = new_references.plan_status_code,
        processing_fee_amt                = new_references.processing_fee_amt,
        processing_fee_type               = new_references.processing_fee_type,
        fee_cal_type                      = new_references.fee_cal_type,
        fee_ci_sequence_number            = new_references.fee_ci_sequence_number,
        notes                             = new_references.notes,
        invoice_id                        = new_references.invoice_id,
        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 ,
        request_id                        = x_request_id,
        program_id                        = x_program_id,
        program_application_id            = x_program_application_id,
        program_update_date               = x_program_update_date
      WHERE rowid = x_rowid;
Line: 1226

  END update_row;
Line: 1269

  ||  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_fi_pp_std_attrs
      WHERE    student_plan_id                   = x_student_plan_id;
Line: 1287

      insert_row (
        x_rowid,
        x_student_plan_id,
        x_person_id,
        x_payment_plan_name,
        x_plan_start_date,
        x_plan_end_date,
        x_plan_status_code,
        x_processing_fee_amt,
        x_processing_fee_type,
        x_fee_cal_type,
        x_fee_ci_sequence_number,
        x_notes,
        x_invoice_id,
        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
      );
Line: 1328

    update_row (
      x_rowid,
      x_student_plan_id,
      x_person_id,
      x_payment_plan_name,
      x_plan_start_date,
      x_plan_end_date,
      x_plan_status_code,
      x_processing_fee_amt,
      x_processing_fee_type,
      x_fee_cal_type,
      x_fee_ci_sequence_number,
      x_notes,
      x_invoice_id,
      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
    );
Line: 1369

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : smvk
  ||  Created On : 24-AUG-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

    before_dml (
      p_action => 'DELETE',
      x_rowid => x_rowid
    );
Line: 1388

    DELETE FROM igs_fi_pp_std_attrs
    WHERE rowid = x_rowid;
Line: 1395

  END delete_row;