DBA Data[Home] [Help]

APPS.IGS_AZ_ADVISING_RELS_PKG SQL Statements

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

Line: 19

    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_ADVISING_RELS
      WHERE    rowid = x_rowid;
Line: 46

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 72

    new_references.last_updated_by                   := x_last_updated_by;
Line: 73

    new_references.last_update_login                 := x_last_update_login;
Line: 122

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

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

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

      SELECT   rowid
      FROM     IGS_AZ_ADVISING_RELS
      WHERE    group_advising_rel_id = x_group_advising_rel_id
      FOR UPDATE NOWAIT;
Line: 202

      SELECT   rowid
      FROM     IGS_AZ_ADVISING_RELS
      WHERE    group_name = x_group_name
      AND      group_advisor_id = x_group_advisor_id
      AND      group_student_id = x_group_student_id
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 239

      SELECT   rowid
      FROM     IGS_AZ_ADVISING_RELS
      WHERE   ((group_name = x_group_name));
Line: 274

      SELECT   rowid
      FROM     IGS_AZ_ADVISING_RELS
      WHERE   ((group_student_id = x_group_student_id));
Line: 309

      SELECT   rowid
      FROM     IGS_AZ_ADVISING_RELS
      WHERE   ((group_advisor_id = x_group_advisor_id));
Line: 342

    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_advising_rel_id,
      x_group_name,
      x_group_advisor_id,
      x_group_student_id,
      x_START_DATE,
      x_END_DATE,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 374

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_group_advising_rel_id             IN OUT NOCOPY NUMBER,
    x_group_name                        IN     VARCHAR2,
    x_group_advisor_id                  IN     NUMBER,
    x_group_student_id                  IN     NUMBER,
    x_START_DATE                          IN     DATE,
    x_END_DATE                            IN     DATE,
    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: 432

    x_last_updated_by            NUMBER;
Line: 433

    x_last_update_login          NUMBER;
Line: 437

    x_last_update_date := SYSDATE;
Line: 439

      x_last_updated_by := 1;
Line: 440

      x_last_update_login := 0;
Line: 442

      x_last_updated_by := fnd_global.user_id;
Line: 443

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

      x_last_update_login := fnd_global.login_id;
Line: 447

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

      fnd_message.set_token ('ROUTINE', 'IGS_AZ_ADVISING_RELS_PKG.INSERT_ROW');
Line: 460

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_group_advising_rel_id             => x_group_advising_rel_id,
      x_group_name                        => x_group_name,
      x_group_advisor_id                  => x_group_advisor_id,
      x_group_student_id                  => x_group_student_id,
      x_START_DATE                          => x_START_DATE,
      x_END_DATE                            => x_END_DATE,
      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: 475

    INSERT INTO IGS_AZ_ADVISING_RELS (
      group_advising_rel_id,
      group_name,
      group_advisor_id,
      group_student_id,
      START_DATE,
      END_DATE,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      IGS_AZ_ADVISING_RELS_s.NEXTVAL,
      new_references.group_name,
      new_references.group_advisor_id,
      new_references.group_student_id,
      TRUNC(new_references.START_DATE),
      TRUNC(new_references.END_DATE),
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    ) RETURNING ROWID, group_advising_rel_id INTO x_rowid, x_group_advising_rel_id;
Line: 524

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

  END insert_row;
Line: 557

      SELECT
        group_name,
        group_advisor_id,
        group_student_id,
        START_DATE,
        END_DATE
      FROM  IGS_AZ_ADVISING_RELS
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 574

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

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_group_advising_rel_id             IN     NUMBER,
    x_group_name                        IN     VARCHAR2,
    x_group_advisor_id                  IN     NUMBER,
    x_group_student_id                  IN     NUMBER,
    x_START_DATE                          IN     DATE,
    x_END_DATE                            IN     DATE,
    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: 656

    x_last_updated_by            NUMBER;
Line: 657

    x_last_update_login          NUMBER;
Line: 662

    x_last_update_date := SYSDATE;
Line: 664

      x_last_updated_by := 1;
Line: 665

      x_last_update_login := 0;
Line: 667

      x_last_updated_by := fnd_global.user_id;
Line: 668

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

      x_last_update_login := fnd_global.login_id;
Line: 672

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

      fnd_message.set_token ('ROUTINE', 'IGS_AZ_ADVISING_RELS_PKG.UPDATE_ROW');
Line: 685

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_group_advising_rel_id             => X_group_advising_rel_id,
      x_group_name                        => x_group_name,
      x_group_advisor_id                  => x_group_advisor_id,
      x_group_student_id                  => x_group_student_id,
      x_START_DATE                          => x_START_DATE,
      x_END_DATE                            => x_END_DATE,
      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: 710

    UPDATE IGS_AZ_ADVISING_RELS
      SET
        group_name                        = new_references.group_name,
        group_advisor_id                  = new_references.group_advisor_id,
        group_student_id                  = new_references.group_student_id,
        START_DATE                          = TRUNC(new_references.START_DATE),
        END_DATE                            = TRUNC(new_references.END_DATE),
        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: 752

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

  END update_row;
Line: 775

  ||  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)
  */
    L_RETURN_STATUS                VARCHAR2(10);
Line: 786

      SELECT   rowid
      FROM     IGS_AZ_ADVISING_RELS
      WHERE    group_advising_rel_id             = x_group_advising_rel_id;
Line: 797

      insert_row (
        x_rowid,
        x_group_advising_rel_id,
        x_group_name,
        x_group_advisor_id,
        x_group_student_id,
        x_START_DATE,
        x_END_DATE,
        x_mode,
        L_RETURN_STATUS,
        L_MSG_DATA,
        L_MSG_COUNT

      );
Line: 815

    update_row (
      x_rowid,
      x_group_advising_rel_id,
      x_group_name,
      x_group_advisor_id,
      x_group_student_id,
      x_START_DATE,
      x_END_DATE,
      x_mode,
      L_RETURN_STATUS,
      L_MSG_DATA,
      L_MSG_COUNT
    );
Line: 832

  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: 850

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

    DELETE FROM IGS_AZ_ADVISING_RELS
    WHERE rowid = x_rowid;
Line: 886

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

  END delete_row;