DBA Data[Home] [Help]

APPS.IGI_EXP_NUM_SCHEMES_PKG SQL Statements

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

Line: 22

    x_last_update_date                  IN     DATE        ,
    x_last_updated_by                   IN     NUMBER      ,
    x_last_update_login                 IN     NUMBER      ) AS
  /*
  ||  Created By :
  ||  Created On : 27-SEP-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     IGI_EXP_NUM_SCHEMES_ALL
      WHERE    rowid = x_rowid;
Line: 48

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 77

    new_references.last_updated_by                   := x_last_updated_by;
Line: 78

    new_references.last_update_login                 := x_last_update_login;
Line: 96

      SELECT   rowid
      FROM     igi_exp_num_schemes_all
      WHERE    num_scheme_id = x_num_scheme_id
      FOR UPDATE NOWAIT;
Line: 132

    x_last_update_date                  IN     DATE        ,
    x_last_updated_by                   IN     NUMBER      ,
    x_last_update_login                 IN     NUMBER      ) AS
  /*
  ||  Created By :
  ||  Created On : 27-SEP-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_num_scheme_id,
      x_numbering_type,
      x_numbering_class,
      x_du_tu_type_id,
      x_prefix,
      x_suffix,
      x_fiscal_year,
      x_next_seq_val,
      x_org_id,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 166

    IF (p_action = 'INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation(
             new_references.num_scheme_id
           )
         ) THEN
        fnd_message.set_name('IGI','IGI_EXP_DUP_ROW');
Line: 176

    ELSIF (p_action = 'VALIDATE_INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation (
             new_references.num_scheme_id
           )
         ) THEN
        fnd_message.set_name('IGI','IGI_EXP_DUP_ROW');
Line: 191

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_num_scheme_id                     IN OUT NOCOPY NUMBER,
    x_numbering_type                    IN     VARCHAR2,
    x_numbering_class                   IN     VARCHAR2,
    x_du_tu_type_id                     IN     VARCHAR2,
    x_prefix                            IN     VARCHAR2,
    x_suffix                            IN     VARCHAR2,
    x_fiscal_year                       IN     VARCHAR2,
    x_next_seq_val                      IN     VARCHAR2,
    x_org_id                            IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 ) AS
  /*
  ||  Created By :
  ||  Created On : 27-SEP-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     igi_exp_num_schemes_all
      WHERE    num_scheme_id                     = x_num_scheme_id;
Line: 217

    x_last_update_date           DATE;
Line: 218

    x_last_updated_by            NUMBER;
Line: 219

    x_last_update_login          NUMBER;
Line: 223

    x_last_update_date := SYSDATE;
Line: 225

      x_last_updated_by := 1;
Line: 226

      x_last_update_login := 0;
Line: 228

      x_last_updated_by := fnd_global.user_id;
Line: 229

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

      x_last_update_login := fnd_global.login_id;
Line: 233

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

    SELECT    igi_exp_num_schemes_s1.NEXTVAL
    INTO      x_num_scheme_id
    FROM      dual;
Line: 247

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_num_scheme_id                     => x_num_scheme_id,
      x_numbering_type                    => x_numbering_type,
      x_numbering_class                   => x_numbering_class,
      x_du_tu_type_id                     => x_du_tu_type_id,
      x_prefix                            => x_prefix,
      x_suffix                            => x_suffix,
      x_fiscal_year                       => x_fiscal_year,
      x_next_seq_val                      => x_next_seq_val,
      x_org_id                            => x_org_id,
      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: 265

    INSERT INTO igi_exp_num_schemes_all (
      num_scheme_id,
      numbering_type,
      numbering_class,
      du_tu_type_id,
      prefix,
      suffix,
      fiscal_year,
      next_seq_val,
      org_id,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.num_scheme_id,
      new_references.numbering_type,
      new_references.numbering_class,
      new_references.du_tu_type_id,
      new_references.prefix,
      new_references.suffix,
      new_references.fiscal_year,
      new_references.next_seq_val,
      new_references.org_id,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 305

  END insert_row;
Line: 330

      SELECT
        numbering_type,
        numbering_class,
        du_tu_type_id,
        prefix,
        suffix,
        fiscal_year,
        next_seq_val,
        org_id
      FROM  igi_exp_num_schemes_all
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 350

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_num_scheme_id                     IN     NUMBER,
    x_numbering_type                    IN     VARCHAR2,
    x_numbering_class                   IN     VARCHAR2,
    x_du_tu_type_id                     IN     VARCHAR2,
    x_prefix                            IN     VARCHAR2,
    x_suffix                            IN     VARCHAR2,
    x_fiscal_year                       IN     VARCHAR2,
    x_next_seq_val                      IN     VARCHAR2,
    x_org_id                            IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 ) AS
  /*
  ||  Created By :
  ||  Created On : 27-SEP-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: 402

    x_last_updated_by            NUMBER;
Line: 403

    x_last_update_login          NUMBER;
Line: 407

    x_last_update_date := SYSDATE;
Line: 409

      x_last_updated_by := 1;
Line: 410

      x_last_update_login := 0;
Line: 412

      x_last_updated_by := fnd_global.user_id;
Line: 413

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

      x_last_update_login := fnd_global.login_id;
Line: 417

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_num_scheme_id                     => x_num_scheme_id,
      x_numbering_type                    => x_numbering_type,
      x_numbering_class                   => x_numbering_class,
      x_du_tu_type_id                     => x_du_tu_type_id,
      x_prefix                            => x_prefix,
      x_suffix                            => x_suffix,
      x_fiscal_year                       => x_fiscal_year,
      x_next_seq_val                      => x_next_seq_val,
      x_org_id                            => x_org_id,
      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: 445

    UPDATE igi_exp_num_schemes_all
      SET
        numbering_type                    = new_references.numbering_type,
        numbering_class                   = new_references.numbering_class,
        du_tu_type_id                     = new_references.du_tu_type_id,
        prefix                            = new_references.prefix,
        suffix                            = new_references.suffix,
        fiscal_year                       = new_references.fiscal_year,
        next_seq_val                      = new_references.next_seq_val,
        org_id                            = new_references.org_id,
        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: 464

  END update_row;
Line: 482

  ||  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     igi_exp_num_schemes_all
      WHERE    num_scheme_id                     = x_num_scheme_id;
Line: 500

      insert_row (
        x_rowid,
        x_num_scheme_id,
        x_numbering_type,
        x_numbering_class,
        x_du_tu_type_id,
        x_prefix,
        x_suffix,
        x_fiscal_year,
        x_next_seq_val,
        x_org_id,
        x_mode
      );
Line: 517

    update_row (
      x_rowid,
      x_num_scheme_id,
      x_numbering_type,
      x_numbering_class,
      x_du_tu_type_id,
      x_prefix,
      x_suffix,
      x_fiscal_year,
      x_next_seq_val,
      x_org_id,
      x_mode
    );
Line: 534

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By :
  ||  Created On : 27-SEP-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: 553

    DELETE FROM igi_exp_num_schemes_all
    WHERE rowid = x_rowid;
Line: 560

  END delete_row;