DBA Data[Home] [Help]

APPS.IGS_FI_HIER_ACCOUNTS_PKG SQL Statements

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

Line: 19

    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 : kkillams
  ||  Created On : 19-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     IGS_FI_HIER_ACCOUNTS
      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: 91

      SELECT 'x'
      FROM igs_fi_f_typ_ca_inst
      WHERE acct_hier_id = x_acct_hier_id;
Line: 165

      SELECT   rowid
      FROM     igs_fi_hier_accounts
      WHERE    acct_hier_id = x_acct_hier_id
      FOR UPDATE NOWAIT;
Line: 199

      SELECT   rowid
      FROM     igs_fi_hier_accounts
      WHERE    name = x_name
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 232

    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 : kkillams
  ||  Created On : 19-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
  ||   smadathi    18-FEB-2003     Bug 2473845. Added logic to re initialize l_rowid to null
  ||  jbegum          8-March-02      As part of bug fix of bug#2148665
  ||                                  added call to function check_used_in_ftci
  ||  (reverse chronological order - newest change first)
  */
  BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_acct_hier_id,
      x_name,
      x_description,
      x_default_flag,
      x_zero_fill_flag,
      x_closed_ind,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 267

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_acct_hier_id                      IN OUT NOCOPY NUMBER,
    x_name                              IN     VARCHAR2,
    x_description                       IN     VARCHAR2,
    x_default_flag                      IN     VARCHAR2,
    x_zero_fill_flag                    IN     VARCHAR2,
    x_closed_ind                        IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : kkillams
  ||  Created On : 19-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     igs_fi_hier_accounts
      WHERE    acct_hier_id                      = x_acct_hier_id;
Line: 339

    x_last_update_date           DATE;
Line: 340

    x_last_updated_by            NUMBER;
Line: 341

    x_last_update_login          NUMBER;
Line: 345

    x_last_update_date := SYSDATE;
Line: 347

      x_last_updated_by := 1;
Line: 348

      x_last_update_login := 0;
Line: 350

      x_last_updated_by := fnd_global.user_id;
Line: 351

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

      x_last_update_login := fnd_global.login_id;
Line: 355

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

    SELECT    igs_fi_hier_accounts_s.NEXTVAL
    INTO      x_acct_hier_id
    FROM      dual;
Line: 369

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_acct_hier_id                      => x_acct_hier_id,
      x_name                              => x_name,
      x_description                       => x_description,
      x_default_flag                      => x_default_flag,
      x_zero_fill_flag                    => x_zero_fill_flag,
      x_closed_ind                        => x_closed_ind,
      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: 384

    INSERT INTO igs_fi_hier_accounts (
      acct_hier_id,
      name,
      description,
      default_flag,
      zero_fill_flag,
      closed_ind,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.acct_hier_id,
      new_references.name,
      new_references.description,
      new_references.default_flag,
      new_references.zero_fill_flag,
      new_references.closed_ind,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 418

  END insert_row;
Line: 440

      SELECT
        name,
        description,
        default_flag,
        zero_fill_flag,
        closed_ind
      FROM  igs_fi_hier_accounts
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 457

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_acct_hier_id                      IN     NUMBER,
    x_name                              IN     VARCHAR2,
    x_description                       IN     VARCHAR2,
    x_default_flag                      IN     VARCHAR2,
    x_zero_fill_flag                    IN     VARCHAR2,
    x_closed_ind                        IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : kkillams
  ||  Created On : 19-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: 504

    x_last_updated_by            NUMBER;
Line: 505

    x_last_update_login          NUMBER;
Line: 509

    x_last_update_date := SYSDATE;
Line: 511

      x_last_updated_by := 1;
Line: 512

      x_last_update_login := 0;
Line: 514

      x_last_updated_by := fnd_global.user_id;
Line: 515

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

      x_last_update_login := fnd_global.login_id;
Line: 519

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_acct_hier_id                      => x_acct_hier_id,
      x_name                              => x_name,
      x_description                       => x_description,
      x_default_flag                      => x_default_flag,
      x_zero_fill_flag                    => x_zero_fill_flag,
      x_closed_ind                        => x_closed_ind,
      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: 544

    UPDATE igs_fi_hier_accounts
      SET
        name                              = new_references.name,
        description                       = new_references.description,
        default_flag                      = new_references.default_flag,
        zero_fill_flag                    = new_references.zero_fill_flag,
        closed_ind                        = new_references.closed_ind,
        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: 560

  END update_row;
Line: 576

  ||  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_hier_accounts
      WHERE    acct_hier_id                      = x_acct_hier_id;
Line: 594

      insert_row (
        x_rowid,
        x_acct_hier_id,
        x_name,
        x_description,
        x_default_flag,
        x_zero_fill_flag,
        x_closed_ind,
        x_mode
      );
Line: 608

    update_row (
      x_rowid,
      x_acct_hier_id,
      x_name,
      x_description,
      x_default_flag,
      x_zero_fill_flag,
      x_closed_ind,
      x_mode
    );
Line: 622

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : kkillams
  ||  Created On : 19-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: 641

    DELETE FROM igs_fi_hier_accounts
    WHERE rowid = x_rowid;
Line: 648

  END delete_row;