DBA Data[Home] [Help]

APPS.HR_APPLICANT_DATAUPD SQL Statements

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

Line: 5

   g_RunUpdateMode_profile constant varchar2(30)  := 'HR_APL_UPD_RUN_MODE';
Line: 10

   g_updateName            constant varchar2(30)  := 'HRAPLUPD1';
Line: 61

    SELECT application_id, date_end, person_id, object_version_number
          ,date_received, business_group_id
      FROM per_applications appl
     WHERE appl.rowid between p_start_rowid and p_end_rowid
       AND date_end IS NOT NULL
       AND EXISTS
           (SELECT 'Y'
             FROM per_all_assignments_f paf
            WHERE paf.application_id = appl.application_id
              AND paf.assignment_type = 'A'
              AND paf.effective_end_date > appl.date_end)
     ORDER BY date_end DESC;
Line: 75

     SELECT person_id, full_name, applicant_number,object_version_number
       FROM per_all_people_f
      WHERE person_id = cp_person_id
        AND (effective_start_date > cp_termination_date
             OR
             cp_termination_date between effective_start_date
                                     and effective_end_date)
      for update nowait;
Line: 85

     SELECT null
       FROM per_person_type_usages_f ptu
           ,per_person_types         ppt
      WHERE person_id = cp_person_id
        AND (effective_start_date > cp_termination_date
             OR
             cp_termination_date between effective_start_date
                                     and effective_end_date)
        AND ptu.person_type_id = ppt.person_type_id
        AND ppt.system_person_type in ('APL','EX_APL')
      for update of ptu.person_type_id nowait; -- #4919613
Line: 98

     SELECT count(assignment_id)
      FROM per_all_assignments_f paf
     WHERE paf.application_id = p_application_id
       AND paf.assignment_type = 'A'
       AND paf.effective_end_date > p_termination_date
       AND paf.effective_end_date <> hr_general.end_of_time
       AND paf.effective_start_date =
           (select max(effective_start_date)  -- do not consider DT updates
              from per_all_assignments_f paf2
              where paf2.assignment_id = paf.assignment_id
                and paf2.effective_end_date > p_termination_date);
Line: 111

     SELECT count(assignment_id)
      FROM per_all_assignments_f paf
     WHERE paf.application_id = p_application_id
       AND paf.assignment_type = 'A'
       AND paf.effective_end_date > p_termination_date
       AND paf.effective_start_date =
           (select max(effective_start_date) -- do not consider DT updates
              from per_all_assignments_f paf2
              where paf2.assignment_id = paf.assignment_id
                and paf2.effective_end_date > p_termination_date);
Line: 192

         hr_utility.trace('  30: update person and ptu records');
Line: 198

         hr_applicant_internal.Update_PER_PTU_Records
            (p_business_group_id        => l_appl_rec.business_group_id
            ,p_person_id                => l_appl_rec.person_id
            ,p_effective_date           => l_appl_rec.date_received
            ,p_applicant_number         => l_person_rec.applicant_number
            ,p_APL_person_type_id       => null
            ,p_per_effective_start_date => l_validation_start_date
            ,p_per_effective_end_date   => l_validation_end_date
            ,p_per_object_version_number => l_per_object_version_number --bug 4095315
            );
Line: 211

         hr_utility.trace('  40: update application');
Line: 224

            if RunUpdateMode = g_ADPatchRunMode then
              --
              IF l_count = 4 then
                l_continue_process := FALSE;
Line: 268

      if RunUpdateMode = g_ADPatchRunMode then
        --
        -- Fix for bug 4205784.comment out the following code.
        --
           --raise;
Line: 293

PROCEDURE Update_APL_using_LTU
   (errbuf              OUT nocopy varchar2
   ,retcode             OUT nocopy number
   ,p_this_worker       IN number
   ,p_total_workers     IN number
   ,p_table_owner       IN varchar2
   ,p_table_name        IN varchar2
   ,p_update_name       IN varchar2
   ,p_batchsize         IN number)
IS

  l_any_rows_to_process boolean;
Line: 311

   ad_parallel_updates_pkg.initialize_rowid_range(
           ad_parallel_updates_pkg.ROWID_RANGE,
           p_table_owner,
           p_table_name,
           p_update_name,
           p_this_worker,
           p_total_workers,
           p_batchsize, 0);
Line: 320

   ad_parallel_updates_pkg.get_rowid_range(
           l_start_rowid,
           l_end_rowid,
           l_any_rows_to_process,
           p_batchsize,
           TRUE);
Line: 331

      ad_parallel_updates_pkg.processed_rowid_range(
          l_rows_processed,
          l_end_rowid);
Line: 341

      ad_parallel_updates_pkg.get_rowid_range(
         l_start_rowid,
         l_end_rowid,
         l_any_rows_to_process,
         p_batchsize,
         FALSE);
Line: 350

END Update_APL_using_LTU;
Line: 357

PROCEDURE Update_APL_inCM_Manager
   (p_errbuf        out nocopy varchar2
   ,p_retcode       out nocopy varchar2
   ,X_batch_size    in  number
   ,X_Num_Workers   in  number
   ,p_process_All   in  varchar2
   ,p_caller        in  varchar2 -- MB:  Move parameter up so it occurs before
                                 -- optional parameters.
   ,p_apl_id        in  number default 0
   --,p_caller        in  varchar2
   ) IS
--
   cursor csr_get_apl_rowid(cp_apl_id number) is
      select rowid
        from per_applications
       where application_id = cp_apl_id;
Line: 382

   l_update_name varchar2(30);
Line: 391

   l_update_name := g_updateName;    -- this matches name used in ADPATCH script
Line: 402

   fnd_file.put_line(FND_FILE.LOG, '   UpdateName : '||l_update_name);
Line: 415

            hr_update_utility.setUpdateProcessing(p_update_name => l_update_name);
Line: 419

            hr_update_utility.setUpdateComplete(p_update_name => l_update_name);
Line: 423

            ** a manual submission delete the PAY_UPGRADE_STATUS record.
            */
            if p_caller = 'F' then
               delete from pay_upgrade_status
                     where upgrade_definition_id =
                            (select upgrade_definition_id
                               from pay_upgrade_definitions
                              where short_name = l_update_name);
Line: 431

               fnd_file.put_line(FND_FILE.LOG,' ** Upgrade Status row deleted successfully **');
Line: 438

               l_update_name := l_update_name||'_'||to_char(sysdate,'DDMMRRHH24MISS');
Line: 450

                       X_Argument6                  => l_update_name,
                       X_Argument7                  => p_apl_id
                       );
Line: 482

END Update_APL_inCM_Manager;
Line: 490

PROCEDURE Update_APL_inCM_Worker
   (p_errbuf        out nocopy varchar2
   ,p_retcode       out nocopy varchar2
   ,X_batch_size    in  number
   ,X_Worker_Id     in  number
   ,X_Num_Workers   in  number
   ,p_process_All   in  varchar2
   ,p_caller        in  varchar2 -- Move parameter up so it occurs before
                                 -- optional parameters.
   ,p_updateName    in varchar2
   ,p_apl_id        in  number default 0
   --,p_caller        in  varchar2
   ) IS
--
   cursor csr_get_apl_rowid(cp_apl_id number) is
      select rowid
        from per_applications
       where application_id = cp_apl_id;
Line: 536

   fnd_file.put_line(FND_FILE.LOG, '   updateName : '||p_updateName);
Line: 541

            hr_applicant_dataupd.Update_APL_using_LTU
               (errbuf              => p_errbuf
               ,retcode             => p_retcode
               ,p_this_worker       => X_worker_id
               ,p_total_workers     => X_num_workers
               ,p_table_owner       => l_table_owner
               ,p_table_name        => l_table_name
               ,p_update_name       => p_updateName
               ,p_batchsize         => X_batch_size);
Line: 560

END Update_APL_inCM_Worker;
Line: 569

   l_result := hr_update_utility.isUpdateComplete
      (p_app_shortname      => g_concProgramName
      ,p_function_name      => null
      ,p_business_group_id  => null
      ,p_update_name        => g_updateName);
Line: 592

FUNCTION RunUpdateMode RETURN varchar2 IS
--
   l_value varchar2(100);
Line: 599

   l_value := FND_PROFILE.value(g_RunUpdateMode_profile);
Line: 606

END RunUpdateMode;
Line: 613

   return(RunUpdateMode = g_ADPatchRunMode);
Line: 621

    return(RunUpdateMode = g_CMRunMode);