DBA Data[Home] [Help]

APPS.IGS_AZ_ADVISORS_PKG SQL Statements

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

Line: 19

    x_accept_delete_flag                IN     VARCHAR2,
    x_creation_date                     IN     DATE,
    x_created_by                        IN     NUMBER,
    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 15-MAY-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_az_advisors
      WHERE    rowid = x_rowid;
Line: 49

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

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

    new_references.accept_delete_flag                := x_accept_delete_flag;
Line: 69

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

    new_references.last_update_date                  := x_last_update_date;
Line: 78

    new_references.last_updated_by                   := x_last_updated_by;
Line: 79

    new_references.last_update_login                 := x_last_update_login;
Line: 127

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

      SELECT   rowid
      FROM     igs_az_advisors
      WHERE    group_advisor_id = x_group_advisor_id;
Line: 202

      SELECT   rowid
      FROM     igs_az_advisors
      WHERE    advisor_person_id = x_advisor_person_id
      AND      group_name = x_group_name
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 238

      SELECT   rowid
      FROM     igs_az_advisors
      WHERE   ((group_name = x_group_name));
Line: 271

    x_accept_delete_flag                IN     VARCHAR2,
    x_creation_date                     IN     DATE,
    x_created_by                        IN     NUMBER,
    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 15-MAY-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_group_advisor_id,
      x_group_name,
      x_advisor_person_id,
      x_start_date,
      x_end_date,
      x_max_students_num,
      x_notified_date,
      x_accept_add_flag,
      x_accept_delete_flag,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 309

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

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

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_group_advisor_id                  IN OUT NOCOPY NUMBER,
    x_group_name                        IN     VARCHAR2,
    x_advisor_person_id                 IN     NUMBER,
    x_start_date                        IN     DATE,
    x_end_date                          IN     DATE,
    x_max_students_num                  IN     NUMBER,
    x_notified_date                     IN     DATE,
    x_accept_add_flag                   IN     VARCHAR2,
    x_accept_delete_flag                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 : [email protected]
  ||  Created On : 15-MAY-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: 375

    x_last_updated_by            NUMBER;
Line: 376

    x_last_update_login          NUMBER;
Line: 381

    x_last_update_date := SYSDATE;
Line: 383

      x_last_updated_by := 1;
Line: 384

      x_last_update_login := 0;
Line: 386

      x_last_updated_by := fnd_global.user_id;
Line: 387

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

      x_last_update_login := fnd_global.login_id;
Line: 391

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

      fnd_message.set_token ('ROUTINE', 'IGS_AZ_ADVISORS_PKG.INSERT_ROW');
Line: 404

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_group_advisor_id                  => x_group_advisor_id,
      x_group_name                        => x_group_name,
      x_advisor_person_id                 => x_advisor_person_id,
      x_start_date                        => x_start_date,
      x_end_date                          => x_end_date,
      x_max_students_num                  => x_max_students_num,
      x_notified_date                     => x_notified_date,
      x_accept_add_flag                   => x_accept_add_flag,
      x_accept_delete_flag                => x_accept_delete_flag,
      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: 422

    INSERT INTO igs_az_advisors (
      group_advisor_id,
      group_name,
      advisor_person_id,
      start_date,
      end_date,
      max_students_num,
      notified_date,
      accept_add_flag,
      accept_delete_flag,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      igs_az_advisors_s.NEXTVAL,
      new_references.group_name,
      new_references.advisor_person_id,
      new_references.start_date,
      new_references.end_date,
      new_references.max_students_num,
      new_references.notified_date,
      new_references.accept_add_flag,
      new_references.accept_delete_flag,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    ) RETURNING ROWID, group_advisor_id INTO x_rowid, x_group_advisor_id;
Line: 479

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

  END insert_row;
Line: 500

    x_accept_delete_flag                IN     VARCHAR2,
    x_return_status                     OUT NOCOPY    VARCHAR2,
    x_msg_data                          OUT NOCOPY    VARCHAR2,
    x_msg_count                         OUT NOCOPY    NUMBER
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 15-MAY-2003
  ||  Purpose : Handles the LOCK mechanism for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
    CURSOR c1 IS
      SELECT
        group_name,
        advisor_person_id,
        start_date,
        end_date,
        max_students_num,
        notified_date,
        accept_add_flag,
        accept_delete_flag
      FROM  igs_az_advisors
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 536

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

        AND ((tlinfo.accept_delete_flag = x_accept_delete_flag) OR ((tlinfo.accept_delete_flag IS NULL) AND (x_accept_delete_flag IS NULL)))
       ) THEN
      NULL;
Line: 588

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_group_advisor_id                  IN     NUMBER,
    x_group_name                        IN     VARCHAR2,
    x_advisor_person_id                 IN     NUMBER,
    x_start_date                        IN     DATE,
    x_end_date                          IN     DATE,
    x_max_students_num                  IN     NUMBER,
    x_notified_date                     IN     DATE,
    x_accept_add_flag                   IN     VARCHAR2,
    x_accept_delete_flag                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 : [email protected]
  ||  Created On : 15-MAY-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: 625

    x_last_updated_by            NUMBER;
Line: 626

    x_last_update_login          NUMBER;
Line: 631

    x_last_update_date := SYSDATE;
Line: 633

      x_last_updated_by := 1;
Line: 634

      x_last_update_login := 0;
Line: 636

      x_last_updated_by := fnd_global.user_id;
Line: 637

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

      x_last_update_login := fnd_global.login_id;
Line: 641

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

      fnd_message.set_token ('ROUTINE', 'IGS_AZ_ADVISORS_PKG.UPDATE_ROW');
Line: 652

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_group_advisor_id                  => x_group_advisor_id,
      x_group_name                        => x_group_name,
      x_advisor_person_id                 => x_advisor_person_id,
      x_start_date                        => x_start_date,
      x_end_date                          => x_end_date,
      x_max_students_num                  => x_max_students_num,
      x_notified_date                     => x_notified_date,
      x_accept_add_flag                   => x_accept_add_flag,
      x_accept_delete_flag                => x_accept_delete_flag,
      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: 680

         new_references.accept_delete_flag := NULL;
Line: 684

    UPDATE igs_az_advisors
      SET
        group_name                        = new_references.group_name,
        advisor_person_id                 = new_references.advisor_person_id,
        start_date                        = new_references.start_date,
        end_date                          = new_references.end_date,
        max_students_num                  = new_references.max_students_num,
        notified_date                     = new_references.notified_date,
        accept_add_flag                   = new_references.accept_add_flag,
        accept_delete_flag                = new_references.accept_delete_flag,
        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: 727

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

  END update_row;
Line: 748

    x_accept_delete_flag                IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 15-MAY-2003
  ||  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_az_advisors
      WHERE    group_advisor_id                  = x_group_advisor_id;
Line: 776

      insert_row (
        x_rowid,
        x_group_advisor_id,
        x_group_name,
        x_advisor_person_id,
        x_start_date,
        x_end_date,
        x_max_students_num,
        x_notified_date,
        x_accept_add_flag,
        x_accept_delete_flag,
        x_mode,
        l_return_status,
        l_msg_data,
        l_msg_count
      );
Line: 796

    update_row (
      x_rowid,
      x_group_advisor_id,
      x_group_name,
      x_advisor_person_id,
      x_start_date,
      x_end_date,
      x_max_students_num,
      x_notified_date,
      x_accept_add_flag,
      x_accept_delete_flag,
      x_mode,
      l_return_status,
      l_msg_data,
      l_msg_count
    );
Line: 816

  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 : [email protected]
  ||  Created On : 15-MAY-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: 835

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

    DELETE FROM igs_az_advisors
    WHERE rowid = x_rowid;
Line: 871

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

  END delete_row;