DBA Data[Home] [Help]

APPS.IGS_TR_GROUP_NOTE_PKG SQL Statements

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

Line: 16

    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

    CURSOR cur_old_ref_values IS
      SELECT   *
      FROM     igs_tr_group_note
      WHERE    ROWID = x_rowid;
Line: 35

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

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

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

      new_references.last_update_date := x_last_update_date;
Line: 60

      new_references.last_updated_by := x_last_updated_by;
Line: 61

      new_references.last_update_login := x_last_update_login;
Line: 96

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

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

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

      SELECT   ROWID
      FROM     igs_tr_group_note
      WHERE    tracking_group_id = x_tracking_group_id
      AND      reference_number = x_reference_number
      FOR UPDATE NOWAIT;
Line: 162

      SELECT   ROWID
      FROM     igs_tr_group_note
      WHERE    reference_number = x_reference_number ;
Line: 188

      SELECT   ROWID
      FROM     igs_tr_group_note
      WHERE    tracking_group_id = x_tracking_group_id ;
Line: 214

      SELECT   ROWID
      FROM     igs_tr_group_note
      WHERE    trk_note_type = x_trk_note_type ;
Line: 243

    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
  BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_tracking_group_id,
      x_reference_number,
      x_trk_note_type,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 262

    IF (p_action = 'INSERT') THEN
      IF get_pk_for_validation ( new_references.tracking_group_id, new_references.reference_number) THEN
        fnd_message.set_name ('IGS', 'IGS_GE_RECORD_ALREADY_EXISTS');
Line: 271

    ELSIF (p_action = 'UPDATE') THEN
      check_constraints;
Line: 275

    ELSIF (p_action = 'VALIDATE_INSERT') THEN
      IF get_pk_for_validation ( new_references.tracking_group_id, new_references.reference_number) THEN
         fnd_message.set_name ('IGS', 'IGS_GE_RECORD_ALREADY_EXISTS');
Line: 283

    ELSIF (p_action = 'VALIDATE_UPDATE') THEN
       check_constraints;
Line: 299

  PROCEDURE insert_row (
    x_rowid IN OUT NOCOPY VARCHAR2,
    x_tracking_group_id IN NUMBER,
    x_reference_number IN NUMBER,
    x_trk_note_type IN VARCHAR2,
    x_mode IN VARCHAR2 DEFAULT 'R'
  ) AS

    CURSOR c IS
      SELECT ROWID
        FROM igs_tr_group_note
        WHERE tracking_group_id = x_tracking_group_id
        AND reference_number = x_reference_number;
Line: 313

    x_last_update_date DATE;
Line: 314

    x_last_updated_by NUMBER;
Line: 315

    x_last_update_login NUMBER;
Line: 319

    x_last_update_date := SYSDATE;
Line: 321

      x_last_updated_by := 1;
Line: 322

      x_last_update_login := 0;
Line: 324

      x_last_updated_by := fnd_global.user_id;
Line: 326

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

      x_last_update_login :=fnd_global.login_id;
Line: 331

      IF x_last_update_login IS NULL THEN
        x_last_update_login := -1;
Line: 340

    before_dml(p_action =>'INSERT',
      x_rowid =>x_rowid,
      x_tracking_group_id => x_tracking_group_id,
      x_reference_number=> x_reference_number,
      x_trk_note_type => x_trk_note_type,
      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: 352

    INSERT INTO igs_tr_group_note (
      tracking_group_id,
      reference_number,
      trk_note_type,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.tracking_group_id,
      new_references.reference_number,
      new_references.trk_note_type,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 381

      p_action =>'INSERT',
      x_rowid => x_rowid
    );
Line: 385

  END insert_row;
Line: 395

      SELECT trk_note_type
      FROM igs_tr_group_note
      WHERE ROWID = x_rowid
      FOR UPDATE NOWAIT;
Line: 408

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

  PROCEDURE update_row (
    x_rowid IN VARCHAR2,
    x_tracking_group_id IN NUMBER,
    x_reference_number IN NUMBER,
    x_trk_note_type IN VARCHAR2,
    x_mode IN VARCHAR2 DEFAULT 'R'
   ) AS
    x_last_update_date DATE;
Line: 434

    x_last_updated_by NUMBER;
Line: 435

    x_last_update_login NUMBER;
Line: 438

    x_last_update_date := SYSDATE;
Line: 441

      x_last_updated_by := 1;
Line: 442

      x_last_update_login := 0;
Line: 446

      x_last_updated_by := fnd_global.user_id;
Line: 447

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

      x_last_update_login :=fnd_global.login_id;
Line: 452

      IF x_last_update_login IS NULL THEN
        x_last_update_login := -1;
Line: 461

    before_dml(p_action =>'UPDATE',
      x_rowid =>x_rowid,
      x_tracking_group_id => x_tracking_group_id,
      x_reference_number=> x_reference_number,
      x_trk_note_type => x_trk_note_type,
      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: 473

    UPDATE igs_tr_group_note SET
      trk_note_type = new_references.trk_note_type,
      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: 485

      p_action =>'UPDATE',
      x_rowid => x_rowid
    );
Line: 489

  END update_row;
Line: 500

      SELECT   ROWID
      FROM     igs_tr_group_note
      WHERE    tracking_group_id = x_tracking_group_id
      AND      reference_number = x_reference_number;
Line: 512

      insert_row (
        x_rowid,
        x_tracking_group_id,
        x_reference_number,
        x_trk_note_type,
        x_mode
      );
Line: 523

    update_row (
      x_rowid,
      x_tracking_group_id,
      x_reference_number,
      x_trk_note_type,
      x_mode);
Line: 532

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  BEGIN

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

    DELETE FROM igs_tr_group_note WHERE ROWID = x_rowid;
Line: 548

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

  END delete_row;