DBA Data[Home] [Help]

APPS.IGF_AW_FUND_ROLLOVER_PKG SQL Statements

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

Line: 18

    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
  /*
  ||  Created By : brajendr
  ||  Created On : 11-JUL-2001
  ||  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     IGF_AW_FUND_ROLLOVER_ALL
      WHERE    rowid = x_rowid;
Line: 45

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 70

    new_references.last_updated_by                   := x_last_updated_by;
Line: 71

    new_references.last_update_login                 := x_last_update_login;
Line: 123

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

      SELECT   rowid
      FROM     igf_aw_fund_rollover_all
      WHERE    frol_id = x_frol_id
      FOR UPDATE NOWAIT;
Line: 197

  || vvutukur       18-feb-2002      modified org_id check in cur_rowid cursor and selected from igf_aw_fund_rollover
  ||                                 instead of igf_aw_fund_rollover for bug:2222272.
  ||  (reverse chronological order - newest change first)
  */

    l_org_id      igf_aw_fund_rollover_all.org_id%TYPE   DEFAULT igf_aw_gen.get_org_id;
Line: 205

      SELECT   rowid
      FROM     igf_aw_fund_rollover
      WHERE    cr_cal_type = x_cr_cal_type
      AND      cr_sequence_number = x_cr_sequence_number
      AND      NVL(org_id,NVL(l_org_id,-99)) = NVL(l_org_id,-99)  --bug 2222272
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 243

      SELECT   rowid
      FROM     igf_aw_fund_rollover_all
      WHERE   ((cr_cal_type = x_cal_type) AND
               (cr_sequence_number = x_sequence_number));
Line: 276

    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
  /*
  ||  Created By : brajendr
  ||  Created On : 11-JUL-2001
  ||  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_frol_id,
      x_cr_cal_type,
      x_cr_sequence_number,
      x_sc_sequence_number,
      x_rollover_status,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 307

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

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

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_frol_id                           IN OUT NOCOPY NUMBER,
    x_cr_cal_type                       IN     VARCHAR2,
    x_cr_sequence_number                IN     NUMBER,
    x_sc_sequence_number                IN     NUMBER,
    x_rollover_status                   IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : brajendr
  ||  Created On : 11-JUL-2001
  ||  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)
  */
    CURSOR c IS
      SELECT   rowid
      FROM     igf_aw_fund_rollover_all
      WHERE    frol_id                           = x_frol_id;
Line: 369

    x_last_update_date           DATE;
Line: 370

    x_last_updated_by            NUMBER;
Line: 371

    x_last_update_login          NUMBER;
Line: 375

    x_program_update_date        DATE;
Line: 379

    x_last_update_date := SYSDATE;
Line: 381

      x_last_updated_by := 1;
Line: 382

      x_last_update_login := 0;
Line: 384

      x_last_updated_by := fnd_global.user_id;
Line: 385

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

      x_last_update_login := fnd_global.login_id;
Line: 389

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

        x_program_update_date    := NULL;
Line: 402

        x_program_update_date    := SYSDATE;
Line: 410

    SELECT    igf_aw_fund_rollover_s.NEXTVAL
    INTO      x_frol_id
    FROM      dual;
Line: 417

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_frol_id                           => x_frol_id,
      x_cr_cal_type                       => x_cr_cal_type,
      x_cr_sequence_number                => x_cr_sequence_number,
      x_sc_sequence_number                => x_sc_sequence_number,
      x_rollover_status                   => x_rollover_status,
      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: 431

    INSERT INTO igf_aw_fund_rollover_all (
      frol_id,
      cr_cal_type,
      cr_sequence_number,
      sc_sequence_number,
      rollover_status,
      org_id,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      request_id,
      program_id,
      program_application_id,
      program_update_date
    ) VALUES (
      new_references.frol_id,
      new_references.cr_cal_type,
      new_references.cr_sequence_number,
      new_references.sc_sequence_number,
      new_references.rollover_status,
      new_references.org_id,
      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
    );
Line: 473

  END insert_row;
Line: 494

      SELECT
        cr_cal_type,
        cr_sequence_number,
        sc_sequence_number,
        rollover_status
      FROM  igf_aw_fund_rollover_all
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 510

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_frol_id                           IN     NUMBER,
    x_cr_cal_type                       IN     VARCHAR2,
    x_cr_sequence_number                IN     NUMBER,
    x_sc_sequence_number                IN     NUMBER,
    x_rollover_status                   IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : brajendr
  ||  Created On : 11-JUL-2001
  ||  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: 555

    x_last_updated_by            NUMBER;
Line: 556

    x_last_update_login          NUMBER;
Line: 560

    x_program_update_date        DATE;
Line: 564

    x_last_update_date := SYSDATE;
Line: 566

      x_last_updated_by := 1;
Line: 567

      x_last_update_login := 0;
Line: 569

      x_last_updated_by := fnd_global.user_id;
Line: 570

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

      x_last_update_login := fnd_global.login_id;
Line: 574

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_frol_id                           => x_frol_id,
      x_cr_cal_type                       => x_cr_cal_type,
      x_cr_sequence_number                => x_cr_sequence_number,
      x_sc_sequence_number                => x_sc_sequence_number,
      x_rollover_status                   => x_rollover_status,
      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: 606

        x_program_update_date := old_references.program_update_date;
Line: 608

        x_program_update_date := SYSDATE;
Line: 612

    UPDATE igf_aw_fund_rollover_all
      SET
        cr_cal_type                       = new_references.cr_cal_type,
        cr_sequence_number                = new_references.cr_sequence_number,
        sc_sequence_number                = new_references.sc_sequence_number,
        rollover_status                   = new_references.rollover_status,
        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: 631

  END update_row;
Line: 646

  ||  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     igf_aw_fund_rollover_all
      WHERE    frol_id                           = x_frol_id;
Line: 664

      insert_row (
        x_rowid,
        x_frol_id,
        x_cr_cal_type,
        x_cr_sequence_number,
        x_sc_sequence_number,
        x_rollover_status,
        x_mode
      );
Line: 677

    update_row (
      x_rowid,
      x_frol_id,
      x_cr_cal_type,
      x_cr_sequence_number,
      x_sc_sequence_number,
      x_rollover_status,
      x_mode
    );
Line: 690

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : brajendr
  ||  Created On : 11-JUL-2001
  ||  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: 709

    DELETE FROM igf_aw_fund_rollover_all
    WHERE rowid = x_rowid;
Line: 716

  END delete_row;