DBA Data[Home] [Help]

APPS.IGS_PS_NSUS_RTN_DTL_PKG SQL Statements

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

Line: 20

    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 : 10-SEP-2004
  ||  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_ps_nsus_rtn_dtl
      WHERE    rowid = x_rowid;
Line: 47

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 74

    new_references.last_updated_by                   := x_last_updated_by;
Line: 75

    new_references.last_update_login                 := x_last_update_login;
Line: 174

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

      SELECT   rowid
      FROM     igs_ps_nsus_rtn_dtl
      WHERE    non_std_usec_rtn_dtl_id = x_non_std_usec_rtn_dtl_id
      FOR UPDATE NOWAIT;
Line: 230

      SELECT   rowid
      FROM     igs_ps_nsus_rtn_dtl
      WHERE    non_std_usec_rtn_id = x_non_std_usec_rtn_id
      AND      offset_value = x_offset_value
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 265

      SELECT   rowid
      FROM     igs_ps_nsus_rtn_dtl
      WHERE   ((non_std_usec_rtn_id = x_non_std_usec_rtn_id));
Line: 299

    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 : 10-SEP-2004
  ||  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_non_std_usec_rtn_dtl_id,
      x_non_std_usec_rtn_id,
      x_offset_value,
      x_retention_percent,
      x_retention_amount,
      x_offset_date,
      x_override_date_flag,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 332

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_non_std_usec_rtn_dtl_id           IN OUT NOCOPY NUMBER,
    x_non_std_usec_rtn_id               IN     NUMBER,
    x_offset_value                      IN     NUMBER,
    x_retention_percent                 IN     NUMBER,
    x_retention_amount                  IN     NUMBER,
    x_offset_date                       IN     DATE,
    x_override_date_flag                IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 10-SEP-2004
  ||  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: 393

    x_last_updated_by            NUMBER;
Line: 394

    x_last_update_login          NUMBER;
Line: 398

    x_last_update_date := SYSDATE;
Line: 400

      x_last_updated_by := 1;
Line: 401

      x_last_update_login := 0;
Line: 403

      x_last_updated_by := fnd_global.user_id;
Line: 404

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

      x_last_update_login := fnd_global.login_id;
Line: 408

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

      fnd_message.set_token ('ROUTINE', 'IGS_PS_NSUS_RTN_DTL_PKG.INSERT_ROW');
Line: 421

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_non_std_usec_rtn_dtl_id           => x_non_std_usec_rtn_dtl_id,
      x_non_std_usec_rtn_id               => x_non_std_usec_rtn_id,
      x_offset_value                      => x_offset_value,
      x_retention_percent                 => x_retention_percent,
      x_retention_amount                  => x_retention_amount,
      x_offset_date                       => x_offset_date,
      x_override_date_flag                => x_override_date_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: 437

    INSERT INTO igs_ps_nsus_rtn_dtl (
      non_std_usec_rtn_dtl_id,
      non_std_usec_rtn_id,
      offset_value,
      retention_percent,
      retention_amount,
      offset_date,
      override_date_flag,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      igs_ps_nsus_rtn_dtl_s.NEXTVAL,
      new_references.non_std_usec_rtn_id,
      new_references.offset_value,
      new_references.retention_percent,
      new_references.retention_amount,
      new_references.offset_date,
      new_references.override_date_flag,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    ) RETURNING ROWID, non_std_usec_rtn_dtl_id INTO x_rowid, x_non_std_usec_rtn_dtl_id;
Line: 465

  END insert_row;
Line: 488

      SELECT
        non_std_usec_rtn_id,
        offset_value,
        retention_percent,
        retention_amount,
        offset_date,
        override_date_flag
      FROM  igs_ps_nsus_rtn_dtl
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 506

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_non_std_usec_rtn_dtl_id           IN     NUMBER,
    x_non_std_usec_rtn_id               IN     NUMBER,
    x_offset_value                      IN     NUMBER,
    x_retention_percent                 IN     NUMBER,
    x_retention_amount                  IN     NUMBER,
    x_offset_date                       IN     DATE,
    x_override_date_flag                IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 10-SEP-2004
  ||  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_last_update_date := SYSDATE;
Line: 562

      x_last_updated_by := 1;
Line: 563

      x_last_update_login := 0;
Line: 565

      x_last_updated_by := fnd_global.user_id;
Line: 566

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

      x_last_update_login := fnd_global.login_id;
Line: 570

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

      fnd_message.set_token ('ROUTINE', 'IGS_PS_NSUS_RTN_DTL_PKG.UPDATE_ROW');
Line: 581

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_non_std_usec_rtn_dtl_id           => x_non_std_usec_rtn_dtl_id,
      x_non_std_usec_rtn_id               => x_non_std_usec_rtn_id,
      x_offset_value                      => x_offset_value,
      x_retention_percent                 => x_retention_percent,
      x_retention_amount                  => x_retention_amount,
      x_offset_date                       => x_offset_date,
      x_override_date_flag                => x_override_date_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: 597

    UPDATE igs_ps_nsus_rtn_dtl
      SET
        non_std_usec_rtn_id               = new_references.non_std_usec_rtn_id,
        offset_value                      = new_references.offset_value,
        retention_percent                 = new_references.retention_percent,
        retention_amount                  = new_references.retention_amount,
        offset_date                       = new_references.offset_date,
        override_date_flag                = new_references.override_date_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: 614

  END update_row;
Line: 631

  ||  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_ps_nsus_rtn_dtl
      WHERE    non_std_usec_rtn_dtl_id           = x_non_std_usec_rtn_dtl_id;
Line: 649

      insert_row (
        x_rowid,
        x_non_std_usec_rtn_dtl_id,
        x_non_std_usec_rtn_id,
        x_offset_value,
        x_retention_percent,
        x_retention_amount,
        x_offset_date,
        x_override_date_flag,
        x_mode
      );
Line: 664

    update_row (
      x_rowid,
      x_non_std_usec_rtn_dtl_id,
      x_non_std_usec_rtn_id,
      x_offset_value,
      x_retention_percent,
      x_retention_amount,
      x_offset_date,
      x_override_date_flag,
      x_mode
    );
Line: 679

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 10-SEP-2004
  ||  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: 698

    DELETE FROM igs_ps_nsus_rtn_dtl
    WHERE rowid = x_rowid;
Line: 705

  END delete_row;