DBA Data[Home] [Help]

APPS.IGS_FI_1098T_BATCHS_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 : 21-MAY-2005
  ||  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_1098t_batchs
      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: 115

      SELECT   rowid
      FROM     igs_fi_1098t_batchs
      WHERE    batch_id = x_batch_id
      FOR UPDATE NOWAIT;
Line: 151

      SELECT   rowid
      FROM     igs_fi_1098t_batchs
      WHERE    batch_name = x_batch_name
      AND      tax_year_name = x_tax_year_name
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 185

    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 : 21-MAY-2005
  ||  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_batch_id,
      x_tax_year_name,
      x_batch_name,
      x_file_name,
      x_filling_mode,
      x_object_version_number,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 217

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_batch_id                          IN OUT NOCOPY NUMBER,
    x_tax_year_name                     IN     VARCHAR2,
    x_batch_name                        IN     VARCHAR2,
    x_file_name                         IN     VARCHAR2,
    x_filling_mode                      IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 21-MAY-2005
  ||  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: 270

    x_last_updated_by            NUMBER;
Line: 271

    x_last_update_login          NUMBER;
Line: 275

    x_program_update_date        DATE;
Line: 279

    x_last_update_date := SYSDATE;
Line: 281

      x_last_updated_by := 1;
Line: 282

      x_last_update_login := 0;
Line: 284

      x_last_updated_by := fnd_global.user_id;
Line: 285

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

      x_last_update_login := fnd_global.login_id;
Line: 289

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

        x_program_update_date    := NULL;
Line: 302

        x_program_update_date    := SYSDATE;
Line: 306

      fnd_message.set_token ('ROUTINE', 'IGS_FI_1098T_BATCHS_PKG.INSERT_ROW');
Line: 314

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_batch_id                          => x_batch_id,
      x_tax_year_name                     => x_tax_year_name,
      x_batch_name                        => x_batch_name,
      x_file_name                         => x_file_name,
      x_filling_mode                      => x_filling_mode,
      x_object_version_number             => 0,
      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: 329

    INSERT INTO igs_fi_1098t_batchs (
      batch_id,
      tax_year_name,
      batch_name,
      file_name,
      filling_mode,
      object_version_number,
      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_1098t_batchs_s.NEXTVAL,
      new_references.tax_year_name,
      new_references.batch_name,
      new_references.file_name,
      new_references.filling_mode,
      new_references.object_version_number,
      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, batch_id INTO x_rowid, x_batch_id;
Line: 363

  END insert_row;
Line: 384

      SELECT
        tax_year_name,
        batch_name,
        file_name,
        filling_mode,
        object_version_number
      FROM  igs_fi_1098t_batchs
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 401

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_batch_id                          IN     NUMBER,
    x_tax_year_name                     IN     VARCHAR2,
    x_batch_name                        IN     VARCHAR2,
    x_file_name                         IN     VARCHAR2,
    x_filling_mode                      IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 21-MAY-2005
  ||  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: 446

    x_last_updated_by            NUMBER;
Line: 447

    x_last_update_login          NUMBER;
Line: 451

    x_program_update_date        DATE;
Line: 454

      SELECT object_version_number
      FROM   igs_fi_1098t_batchs
      WHERE  rowid = cp_rowid
      FOR UPDATE NOWAIT;
Line: 467

    x_last_update_date := SYSDATE;
Line: 469

      x_last_updated_by := 1;
Line: 470

      x_last_update_login := 0;
Line: 472

      x_last_updated_by := fnd_global.user_id;
Line: 473

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

      x_last_update_login := fnd_global.login_id;
Line: 477

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

      fnd_message.set_token ('ROUTINE', 'IGS_FI_1098T_BATCHS_PKG.UPDATE_ROW');
Line: 490

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_batch_id                          => x_batch_id,
      x_tax_year_name                     => x_tax_year_name,
      x_batch_name                        => x_batch_name,
      x_file_name                         => x_file_name,
      x_filling_mode                      => x_filling_mode,
      x_object_version_number             => l_v_object_version_number,
      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: 513

        x_program_update_date := old_references.program_update_date;
Line: 515

        x_program_update_date := SYSDATE;
Line: 519

    UPDATE igs_fi_1098t_batchs
      SET
        tax_year_name                     = new_references.tax_year_name,
        batch_name                        = new_references.batch_name,
        file_name                         = new_references.file_name,
        filling_mode                      = new_references.filling_mode,
        object_version_number             = new_references.object_version_number,
        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: 539

  END update_row;
Line: 554

  ||  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_1098t_batchs
      WHERE    batch_id                          = x_batch_id;
Line: 572

      insert_row (
        x_rowid,
        x_batch_id,
        x_tax_year_name,
        x_batch_name,
        x_file_name,
        x_filling_mode,
        x_mode
      );
Line: 585

    update_row (
      x_rowid,
      x_batch_id,
      x_tax_year_name,
      x_batch_name,
      x_file_name,
      x_filling_mode,
      x_mode
    );
Line: 598

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 21-MAY-2005
  ||  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: 617

    DELETE FROM igs_fi_1098t_batchs
    WHERE rowid = x_rowid;
Line: 624

  END delete_row;