DBA Data[Home] [Help]

APPS.IGS_HE_SUBMSN_HEADER_PKG SQL Statements

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

Line: 23

    x_last_update_date                  IN     DATE         ,
    x_last_updated_by                   IN     NUMBER       ,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 15-JUN-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_HE_SUBMSN_HEADER
      WHERE    rowid = x_rowid;
Line: 50

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 80

    new_references.last_updated_by                   := x_last_updated_by;
Line: 81

    new_references.last_update_login                 := x_last_update_login;
Line: 118

      SELECT   rowid
      FROM     igs_he_submsn_header
      WHERE    submission_name = x_submission_name
      FOR UPDATE NOWAIT;
Line: 155

    x_last_update_date                  IN     DATE         ,
    x_last_updated_by                   IN     NUMBER       ,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 15-JUN-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_sub_hdr_id,
      x_submission_name,
      x_description,
      x_enrolment_start_date,
      x_enrolment_end_date,
      x_offset_days,
      x_apply_to_atmpt_st_dt,
      x_apply_to_inst_st_dt,
      x_complete_flag,
      x_validation_country ,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 191

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_sub_hdr_id                        IN OUT NOCOPY NUMBER,
    x_submission_name                   IN OUT NOCOPY VARCHAR2,
    x_description                       IN     VARCHAR2,
    x_enrolment_start_date              IN     DATE,
    x_enrolment_end_date                IN     DATE,
    x_offset_days                       IN     NUMBER,
    x_apply_to_atmpt_st_dt              IN     VARCHAR2,
    x_apply_to_inst_st_dt               IN     VARCHAR2,
    x_complete_flag                     IN     VARCHAR2,
    x_validation_country                IN     VARCHAR2     ,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 15-JUN-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_he_submsn_header
      WHERE    submission_name                   = x_submission_name;
Line: 249

    x_last_update_date           DATE;
Line: 250

    x_last_updated_by            NUMBER;
Line: 251

    x_last_update_login          NUMBER;
Line: 255

    x_last_update_date := SYSDATE;
Line: 257

      x_last_updated_by := 1;
Line: 258

      x_last_update_login := 0;
Line: 260

      x_last_updated_by := fnd_global.user_id;
Line: 261

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

      x_last_update_login := fnd_global.login_id;
Line: 265

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

    SELECT    igs_he_submsn_header_s.NEXTVAL
    INTO      x_sub_hdr_id
    FROM      dual;
Line: 279

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_sub_hdr_id                        => x_sub_hdr_id,
      x_submission_name                   => x_submission_name,
      x_description                       => x_description,
      x_enrolment_start_date              => x_enrolment_start_date,
      x_enrolment_end_date                => x_enrolment_end_date,
      x_offset_days                       => x_offset_days,
      x_apply_to_atmpt_st_dt              => x_apply_to_atmpt_st_dt,
      x_apply_to_inst_st_dt               => x_apply_to_inst_st_dt,
      x_complete_flag                     => x_complete_flag,
      x_validation_country                => x_validation_country,
      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: 298

    INSERT INTO igs_he_submsn_header (
      sub_hdr_id,
      submission_name,
      description,
      enrolment_start_date,
      enrolment_end_date,
      offset_days,
      apply_to_atmpt_st_dt,
      apply_to_inst_st_dt,
      complete_flag,
      validation_country,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.sub_hdr_id,
      new_references.submission_name,
      new_references.description,
      new_references.enrolment_start_date,
      new_references.enrolment_end_date,
      new_references.offset_days,
      new_references.apply_to_atmpt_st_dt,
      new_references.apply_to_inst_st_dt,
      new_references.complete_flag,
      new_references.validation_country,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 340

  END insert_row;
Line: 366

      SELECT
        sub_hdr_id,
        description,
        enrolment_start_date,
        enrolment_end_date,
        offset_days,
        apply_to_atmpt_st_dt,
        apply_to_inst_st_dt,
        complete_flag,
        validation_country
      FROM  igs_he_submsn_header
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 387

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_sub_hdr_id                        IN     NUMBER,
    x_submission_name                   IN     VARCHAR2,
    x_description                       IN     VARCHAR2,
    x_enrolment_start_date              IN     DATE,
    x_enrolment_end_date                IN     DATE,
    x_offset_days                       IN     NUMBER,
    x_apply_to_atmpt_st_dt              IN     VARCHAR2,
    x_apply_to_inst_st_dt               IN     VARCHAR2,
    x_complete_flag                     IN     VARCHAR2,
    x_validation_country                IN     VARCHAR2 ,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 15-JUN-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: 442

    x_last_updated_by            NUMBER;
Line: 443

    x_last_update_login          NUMBER;
Line: 447

    x_last_update_date := SYSDATE;
Line: 449

      x_last_updated_by := 1;
Line: 450

      x_last_update_login := 0;
Line: 452

      x_last_updated_by := fnd_global.user_id;
Line: 453

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

      x_last_update_login := fnd_global.login_id;
Line: 457

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_sub_hdr_id                        => x_sub_hdr_id,
      x_submission_name                   => x_submission_name,
      x_description                       => x_description,
      x_enrolment_start_date              => x_enrolment_start_date,
      x_enrolment_end_date                => x_enrolment_end_date,
      x_offset_days                       => x_offset_days,
      x_apply_to_atmpt_st_dt              => x_apply_to_atmpt_st_dt,
      x_apply_to_inst_st_dt               => x_apply_to_inst_st_dt,
      x_complete_flag                     => x_complete_flag,
      x_validation_country                => x_validation_country,
      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: 486

    UPDATE igs_he_submsn_header
      SET
        sub_hdr_id                        = new_references.sub_hdr_id,
        description                       = new_references.description,
        enrolment_start_date              = new_references.enrolment_start_date,
        enrolment_end_date                = new_references.enrolment_end_date,
        offset_days                       = new_references.offset_days,
        apply_to_atmpt_st_dt              = new_references.apply_to_atmpt_st_dt,
        apply_to_inst_st_dt               = new_references.apply_to_inst_st_dt,
        complete_flag                     = new_references.complete_flag,
        validation_country                = new_references.validation_country,
        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: 506

  END update_row;
Line: 526

  ||  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_he_submsn_header
      WHERE    submission_name                   = x_submission_name;
Line: 544

      insert_row (
        x_rowid,
        x_sub_hdr_id,
        x_submission_name,
        x_description,
        x_enrolment_start_date,
        x_enrolment_end_date,
        x_offset_days,
        x_apply_to_atmpt_st_dt,
        x_apply_to_inst_st_dt,
        x_complete_flag,
        x_validation_country,
        x_mode
      );
Line: 562

    update_row (
      x_rowid,
      x_sub_hdr_id,
      x_submission_name,
      x_description,
      x_enrolment_start_date,
      x_enrolment_end_date,
      x_offset_days,
      x_apply_to_atmpt_st_dt,
      x_apply_to_inst_st_dt,
      x_complete_flag,
      x_validation_country,
      x_mode
    );
Line: 580

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : rgopalan
  ||  Created On : 15-JUN-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: 599

    DELETE FROM igs_he_submsn_header
    WHERE rowid = x_rowid;
Line: 606

  END delete_row;