DBA Data[Home] [Help]

APPS.IGF_AP_APPL_SETUP_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,
    x_application_code                  IN     VARCHAR2,
    x_application_name                  IN     VARCHAR2,
    x_active_flag                       IN     VARCHAR2	   DEFAULT NULL,
    x_answer_type_code                  IN     VARCHAR2,
    x_destination_txt                   IN     VARCHAR2    DEFAULT NULL,
    x_ld_cal_type                       IN     VARCHAR2    DEFAULT NULL,
    x_ld_sequence_number                IN     NUMBER      DEFAULT NULL,
    x_all_terms_flag                    IN     VARCHAR2    DEFAULT NULL,
    x_override_exist_ant_data_flag      IN     VARCHAR2    DEFAULT NULL,
    x_required_flag                     IN     VARCHAR2    DEFAULT NULL,
    x_minimum_value_num                 IN     NUMBER      DEFAULT NULL,
    x_maximum_value_num                 IN     NUMBER      DEFAULT NULL,
    x_minimum_date                      IN     DATE        DEFAULT NULL,
    x_maximium_date                     IN     DATE        DEFAULT NULL,
    x_lookup_code                       IN     VARCHAR2    DEFAULT NULL,
    x_hint_txt                          IN     VARCHAR2    DEFAULT NULL
  ) AS
  /*
  ||  Created By : brajendr
  ||  Created On : 07-DEC-2000
  ||  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_AP_APPL_SETUP_ALL
      WHERE    rowid = x_rowid;
Line: 62

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 105

    new_references.last_updated_by                   := x_last_updated_by;
Line: 106

    new_references.last_update_login                 := x_last_update_login;
Line: 159

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

      SELECT   rowid
      FROM     igf_ap_appl_setup_all
      WHERE    question_id = x_question_id
      FOR UPDATE NOWAIT;
Line: 237

      SELECT   rowid
      FROM     igf_ap_appl_setup_all
      WHERE   ((ci_cal_type = x_cal_type) AND
               (ci_sequence_number = x_sequence_number));
Line: 278

      SELECT   rowid
      FROM     igf_ap_appl_setup_all
      WHERE    ci_cal_type = x_ci_cal_type
      AND      ci_sequence_number = x_ci_sequence_number
      AND      application_code = x_application_code
      AND      question = x_question
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 314

    x_last_update_date                  IN     DATE        DEFAULT NULL,
    x_last_updated_by                   IN     NUMBER      DEFAULT NULL,
    x_last_update_login                 IN     NUMBER      DEFAULT NULL,
    x_application_code                  IN     VARCHAR2,
    x_application_name                  IN     VARCHAR2,
    x_active_flag                       IN     VARCHAR2,
    x_answer_type_code                  IN     VARCHAR2,
    x_destination_txt                   IN     VARCHAR2,
    x_ld_cal_type                       IN     VARCHAR2,
    x_ld_sequence_number                IN     NUMBER,
    x_all_terms_flag                    IN     VARCHAR2,
    x_override_exist_ant_data_flag      IN     VARCHAR2,
    x_required_flag                     IN     VARCHAR2,
    x_minimum_value_num                 IN     NUMBER,
    x_maximum_value_num                 IN     NUMBER,
    x_minimum_date                      IN     DATE,
    x_maximium_date                     IN     DATE,
    x_lookup_code                       IN     VARCHAR2,
    x_hint_txt                          IN     VARCHAR2
  ) AS
  /*
  ||  Created By : brajendr
  ||  Created On : 07-DEC-2000
  ||  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_question_id,
      x_question,
      x_enabled,
      x_org_id,
      x_ci_cal_type,
      x_ci_sequence_number,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      x_application_code,
      x_application_name,
      x_active_flag,
      x_answer_type_code,
      x_destination_txt,
      x_ld_cal_type,
      x_ld_sequence_number,
      x_all_terms_flag,
      x_override_exist_ant_data_flag,
      x_required_flag,
      x_minimum_value_num,
      x_maximum_value_num,
      x_minimum_date,
      x_maximium_date,
      x_lookup_code,
      x_hint_txt
    );
Line: 378

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

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

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_question_id                       IN OUT NOCOPY NUMBER,
    x_question                          IN     VARCHAR2,
    x_enabled                           IN     VARCHAR2,
    x_org_id                            IN     NUMBER,
    x_ci_cal_type                       IN     VARCHAR2,
    x_ci_sequence_number                IN     NUMBER,
    x_mode                              IN     VARCHAR2 DEFAULT 'R',
    x_application_code                  IN     VARCHAR2,
    x_application_name                  IN     VARCHAR2,
    x_active_flag                       IN     VARCHAR2,
    x_answer_type_code                  IN     VARCHAR2,
    x_destination_txt                   IN     VARCHAR2,
    x_ld_cal_type                       IN     VARCHAR2,
    x_ld_sequence_number                IN     NUMBER,
    x_all_terms_flag                    IN     VARCHAR2,
    x_override_exist_ant_data_flag      IN     VARCHAR2,
    x_required_flag                     IN     VARCHAR2,
    x_minimum_value_num                 IN     NUMBER,
    x_maximum_value_num                 IN     NUMBER,
    x_minimum_date                      IN     DATE,
    x_maximium_date                     IN     DATE,
    x_lookup_code                       IN     VARCHAR2,
    x_hint_txt                          IN     VARCHAR2
  ) AS
  /*
  ||  Created By : brajendr
  ||  Created On : 07-DEC-2000
  ||  Purpose : Handles the INSERT DML logic for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  || vvutukur       16-feb-2002      removed l_org_id portion and passed igf_aw_gen.get_org_id to before_dml.
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
    CURSOR c IS
      SELECT   rowid
      FROM     igf_ap_appl_setup_all
      WHERE    question_id                       = x_question_id;
Line: 459

    x_last_update_date           DATE;
Line: 460

    x_last_updated_by            NUMBER;
Line: 461

    x_last_update_login          NUMBER;
Line: 465

    SELECT igf_ap_appl_setup_s.nextval
	INTO x_question_id
	FROM dual;
Line: 469

    x_last_update_date := SYSDATE;
Line: 471

      x_last_updated_by := 1;
Line: 472

      x_last_update_login := 0;
Line: 474

      x_last_updated_by := fnd_global.user_id;
Line: 475

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

      x_last_update_login := fnd_global.login_id;
Line: 479

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

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_question_id                       => x_question_id,
      x_question                          => x_question,
      x_enabled                           => NVL (x_enabled,'Y' ),
      x_org_id                            => igf_aw_gen.get_org_id,
      x_ci_cal_type                       => x_ci_cal_type,
      x_ci_sequence_number                => x_ci_sequence_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,
      x_application_code                  => x_application_code,
      x_application_name                  => x_application_name,
      x_active_flag                       => x_active_flag,
      x_answer_type_code                  => x_answer_type_code,
      x_destination_txt                   => x_destination_txt,
      x_ld_cal_type                       => x_ld_cal_type,
      x_ld_sequence_number                => x_ld_sequence_number,
      x_all_terms_flag                    => x_all_terms_flag,
      x_override_exist_ant_data_flag      => x_override_exist_ant_data_flag,
      x_required_flag                     => x_required_flag,
      x_minimum_value_num                 => x_minimum_value_num,
      x_maximum_value_num                 => x_maximum_value_num,
      x_minimum_date                      => x_minimum_date,
      x_maximium_date                     => x_maximium_date,
      x_lookup_code                       => x_lookup_code,
      x_hint_txt                          => x_hint_txt
    );
Line: 521

    INSERT INTO igf_ap_appl_setup_all (
      question_id,
      question,
      enabled,
      org_id,
      ci_cal_type,
      ci_sequence_number,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      application_code,
      application_name,
      active_flag,
      answer_type_code,
      destination_txt,
      ld_cal_type,
      ld_sequence_number,
      all_terms_flag,
      override_exist_ant_data_flag,
      required_flag,
      minimum_value_num,
      maximum_value_num,
      minimum_date,
      maximium_date,
      lookup_code,
      hint_txt
    ) VALUES (
      new_references.question_id,
      new_references.question,
      new_references.enabled,
      new_references.org_id,
      new_references.ci_cal_type,
      new_references.ci_sequence_number,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      new_references.application_code,
      new_references.application_name,
      new_references.active_flag,
      new_references.answer_type_code,
      new_references.destination_txt,
      new_references.ld_cal_type,
      new_references.ld_sequence_number,
      new_references.all_terms_flag,
      new_references.override_exist_ant_data_flag,
      new_references.required_flag,
      new_references.minimum_value_num,
      new_references.maximum_value_num,
      new_references.minimum_date,
      new_references.maximium_date,
      new_references.lookup_code,
      new_references.hint_txt
    );
Line: 587

  END insert_row;
Line: 626

      SELECT
        question,
        enabled,
        org_id,
        ci_cal_type,
        ci_sequence_number,
        application_code,
        application_name,
        active_flag,
        answer_type_code,
        destination_txt,
        ld_cal_type,
        ld_sequence_number,
        all_terms_flag,
        override_exist_ant_data_flag,
        required_flag,
        minimum_value_num,
        maximum_value_num,
        minimum_date,
        maximium_date,
        lookup_code,
        hint_txt
      FROM  igf_ap_appl_setup_all
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 660

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_question_id                       IN     NUMBER,
    x_question                          IN     VARCHAR2,
    x_enabled                           IN     VARCHAR2,
    x_org_id                            IN     NUMBER,
    x_ci_cal_type                       IN     VARCHAR2,
    x_ci_sequence_number                IN     NUMBER,
    x_mode                              IN     VARCHAR2 DEFAULT 'R',
    x_application_code                  IN     VARCHAR2,
    x_application_name                  IN     VARCHAR2,
    x_active_flag                       IN     VARCHAR2,
    x_answer_type_code                  IN     VARCHAR2,
    x_destination_txt                   IN     VARCHAR2,
    x_ld_cal_type                       IN     VARCHAR2,
    x_ld_sequence_number                IN     NUMBER,
    x_all_terms_flag                    IN     VARCHAR2,
    x_override_exist_ant_data_flag      IN     VARCHAR2,
    x_required_flag                     IN     VARCHAR2,
    x_minimum_value_num                 IN     NUMBER,
    x_maximum_value_num                 IN     NUMBER,
    x_minimum_date                      IN     DATE,
    x_maximium_date                     IN     DATE,
    x_lookup_code                       IN     VARCHAR2,
    x_hint_txt                          IN     VARCHAR2
  ) AS
  /*
  ||  Created By : brajendr
  ||  Created On : 07-DEC-2000
  ||  Purpose : Handles the UPDATE DML logic for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  || vvutukur        16-feb-2002     passed igf_aw_gen.get_org_id in call to up before_dml call.bug:2222272.
  ||  (reverse chronological order - newest change first)
  */
    x_last_update_date           DATE ;
Line: 739

    x_last_updated_by            NUMBER;
Line: 740

    x_last_update_login          NUMBER;
Line: 745

    x_last_update_date := SYSDATE;
Line: 747

      x_last_updated_by := 1;
Line: 748

      x_last_update_login := 0;
Line: 750

      x_last_updated_by := fnd_global.user_id;
Line: 751

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

      x_last_update_login := fnd_global.login_id;
Line: 755

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_question_id                       => x_question_id,
      x_question                          => x_question,
      x_enabled                           => NVL (x_enabled,'Y' ),
      x_org_id                            => igf_aw_gen.get_org_id,
      x_ci_cal_type                       => x_ci_cal_type,
      x_ci_sequence_number                => x_ci_sequence_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,
      x_application_code                  => x_application_code,
      x_application_name                  => x_application_name,
      x_active_flag                       => x_active_flag,
      x_answer_type_code                  => x_answer_type_code,
      x_destination_txt                   => x_destination_txt,
      x_ld_cal_type                       => x_ld_cal_type,
      x_ld_sequence_number                => x_ld_sequence_number,
      x_all_terms_flag                    => x_all_terms_flag,
      x_override_exist_ant_data_flag      => x_override_exist_ant_data_flag,
      x_required_flag                     => x_required_flag,
      x_minimum_value_num                 => x_minimum_value_num,
      x_maximum_value_num                 => x_maximum_value_num,
      x_minimum_date                      => x_minimum_date,
      x_maximium_date                     => x_maximium_date,
      x_lookup_code                       => x_lookup_code,
      x_hint_txt                          => x_hint_txt
    );
Line: 796

    UPDATE igf_ap_appl_setup_all
      SET
        question                          = new_references.question,
        enabled                           = new_references.enabled,
        ci_cal_type                       = new_references.ci_cal_type,
        ci_sequence_number                = new_references.ci_sequence_number,
        last_update_date                  = x_last_update_date,
        last_updated_by                   = x_last_updated_by,
        last_update_login                 = x_last_update_login,
        application_code                  = new_references.application_code,
        application_name                  = new_references.application_name,
        active_flag                       = new_references.active_flag,
        answer_type_code                  = new_references.answer_type_code,
        destination_txt                   = new_references.destination_txt,
        ld_cal_type                       = new_references.ld_cal_type,
        ld_sequence_number                = new_references.ld_sequence_number,
        all_terms_flag                    = new_references.all_terms_flag,
        override_exist_ant_data_flag      = new_references.override_exist_ant_data_flag,
        required_flag                     = new_references.required_flag,
        minimum_value_num                 = new_references.minimum_value_num,
        maximum_value_num                 = new_references.maximum_value_num,
        minimum_date                      = new_references.minimum_date,
        maximium_date                     = new_references.maximium_date,
        lookup_code                       = new_references.lookup_code,
        hint_txt                          = new_references.hint_txt
      WHERE rowid = x_rowid;
Line: 827

  END update_row;
Line: 859

  ||  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_ap_appl_setup_all
      WHERE    question_id                       = x_question_id;
Line: 877

      insert_row (
        x_rowid,
        x_question_id,
        x_question,
        x_enabled,
        x_org_id,
        x_ci_cal_type,
        x_ci_sequence_number,
        x_mode,
        x_application_code,
        x_application_name,
        x_active_flag,
        x_answer_type_code,
        x_destination_txt,
        x_ld_cal_type,
        x_ld_sequence_number,
        x_all_terms_flag,
        x_override_exist_ant_data_flag,
        x_required_flag,
        x_minimum_value_num,
        x_maximum_value_num,
        x_minimum_date,
        x_maximium_date,
        x_lookup_code,
        x_hint_txt
      );
Line: 907

    update_row (
      x_rowid,
      x_question_id,
      x_question,
      x_enabled,
      x_org_id,
      x_ci_cal_type,
      x_ci_sequence_number,
      x_mode,
      x_application_code,
      x_application_name,
      x_active_flag,
      x_answer_type_code,
      x_destination_txt,
      x_ld_cal_type,
      x_ld_sequence_number,
      x_all_terms_flag,
      x_override_exist_ant_data_flag,
      x_required_flag,
      x_minimum_value_num,
      x_maximum_value_num,
      x_minimum_date,
      x_maximium_date,
      x_lookup_code,
      x_hint_txt
    );
Line: 937

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : brajendr
  ||  Created On : 07-DEC-2000
  ||  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: 956

    DELETE FROM igf_ap_appl_setup_all
    WHERE rowid = x_rowid;
Line: 963

  END delete_row;