DBA Data[Home] [Help]

APPS.PQP_AAT_BUS SQL Statements

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

Line: 27

    select pbg.security_group_id
      from per_business_groups pbg
         , pqp_assignment_attributes_f aat
     where aat.assignment_attribute_id = p_assignment_attribute_id
       and pbg.business_group_id = aat.business_group_id;
Line: 87

    select pbg.legislation_code
      from per_business_groups pbg
         , pqp_assignment_attributes_f aat
     where aat.assignment_attribute_id = p_assignment_attribute_id
       and pbg.business_group_id = aat.business_group_id;
Line: 451

Procedure chk_non_updateable_args
  (p_effective_date  in date
  ,p_rec             in pqp_aat_shd.g_rec_type
  ) IS
--
  l_proc     varchar2(72) := g_package || 'chk_non_updateable_args';
Line: 484

End chk_non_updateable_args;
Line: 657

  select 1
  from pqp_assignment_attributes_f
  where (assignment_id > p_assignment_id OR assignment_id < p_assignment_id) -- for bug 6871534
  and (primary_company_car in (p_primary_company_car, p_secondary_company_car) or
       secondary_company_car in (p_primary_company_car, p_secondary_company_car))
  and p_validation_start_date <= effective_end_date
  and p_validation_end_date >= effective_start_date;
Line: 713

  select 1
  from pqp_assignment_attributes_f
  where assignment_id = p_assignment_id
  and assignment_attribute_id <> nvl(p_assignment_attribute_id, -1)
  and p_validation_start_date <= effective_end_date
  and p_validation_end_date >= effective_start_date;
Line: 765

  SELECT 'x'
    FROM pay_user_tables
   WHERE user_table_id     = p_rates_table_id
     AND business_group_id = p_business_group_id;
Line: 1027

  Select 'Y'
  From dual
  Where length(nvl(p_tp_safeguarded_grade,'x')) <= 3
    and ascii( substr(p_tp_safeguarded_grade,1,1)) between 65 and 90
    and (-- Either both 2nd and 3rd chars are alpha
         (ascii( substr(p_tp_safeguarded_grade,2,1)) between 65 and 90
          AND
          ascii( substr(p_tp_safeguarded_grade,3,1)) between 65 and 90
         )
         OR -- 2nd and 3rd chars r both numbers
         (ascii( substr(p_tp_safeguarded_grade,2,1)) between 48 and 57
          AND
          ascii( substr(p_tp_safeguarded_grade,3,1)) between 48 and 57
         )
        );
Line: 1044

  Select 'Y'
  From per_grades pg
  Where pg.grade_id = p_tp_safeguarded_grade_id;
Line: 1143

  Select '1'
  From pqp_assignment_attributes_f
  Where assignment_id = p_assignment_id
    and effective_end_date < p_effective_date
    and (  tp_is_teacher = 'TCHR'
        or tp_is_teacher = 'TTR6');
Line: 1152

  Select '1'
  From pqp_assignment_attributes_f
  Where assignment_id = p_assignment_id
    and effective_start_date > p_effective_date
    and tp_is_teacher = 'TTR6';
Line: 1178

     re-used in UPDATE mode checks.
  */
  --
  -- Check 'TCHR' and 'TTR6' history
  --
  open C_TCHR_TTR6_History;
Line: 1240

  if (p_datetrack_mode = hr_api.g_update or
      p_datetrack_mode = hr_api.g_update_override or
      p_datetrack_mode = hr_api.g_update_change_insert) then
  -- 7
    if p_old_job_status = 'TCHR' and p_new_job_status = 'TTR6' then
    -- 8
      pqp_aat_shd.constraint_error
      (p_constraint_name => 'PQP_INVALID_JOB_STATUS');
Line: 1252

  if (p_datetrack_mode = hr_api.g_update or
      p_datetrack_mode = hr_api.g_update_change_insert) then
  -- 11

    /* For old = 'NONT' and (new = 'TTR6' or 'TCHR')
       Rules Handled : 3 and 4(partly) Refer design doc for rules table */
    if p_old_job_status = 'NONT' and
      (p_new_job_status = 'TCHR' or p_new_job_status = 'TTR6') then
    -- 12

      if l_TTR6_Future then
      -- 13
        pqp_aat_shd.constraint_error
        (p_constraint_name => 'PQP_INVALID_JOB_STATUS');
Line: 1394

  Select 'Y'
  From pay_rates pr
  Where pr.rate_type = p_tp_safeguarded_rate_type
    and pr.rate_id = p_tp_safeguarded_rate_id;
Line: 1522

  Select 'Y'
  From per_spinal_points psp
  Where psp.spinal_point_id = p_tp_spinal_point_id;
Line: 1618

  Select 'Y'
  From pay_rates pr
      ,per_grade_spines_f pgs
      ,per_spinal_point_steps_f psps
  Where pr.parent_spine_id = pgs.parent_spine_id
    and psps.grade_spine_id = pgs.grade_spine_id
    and pgs.grade_id = p_tp_safeguarded_grade_id
    and pr.rate_id = p_tp_safeguarded_rate_id
    and psps.spinal_point_id = p_tp_spinal_point_id
    and p_validation_start_date <= psps.effective_end_date
    and p_validation_end_date >= psps.effective_start_date;
Line: 1791

Procedure dt_update_validate
  (p_datetrack_mode                in varchar2
  ,p_validation_start_date         in date
  ,p_validation_end_date           in date
  ) Is
--
  l_proc  varchar2(72) := g_package||'dt_update_validate';
Line: 1847

End dt_update_validate;
Line: 1884

Procedure dt_delete_validate
  (p_assignment_attribute_id          in number
  ,p_datetrack_mode                   in varchar2
  ,p_validation_start_date            in date
  ,p_validation_end_date              in date
  ) Is
--
  l_proc        varchar2(72)    := g_package||'dt_delete_validate';
Line: 1908

  If (p_datetrack_mode = hr_api.g_delete or
      p_datetrack_mode = hr_api.g_zap) then
    --
    --
    -- Ensure the arguments are not null
    --
    hr_api.mandatory_arg_error
      (p_api_name       => l_proc
      ,p_argument       => 'validation_start_date'
      ,p_argument_value => p_validation_start_date
      );
Line: 1955

End dt_delete_validate;
Line: 1960

Procedure insert_validate
  (p_rec                   in pqp_aat_shd.g_rec_type
  ,p_effective_date        in date
  ,p_datetrack_mode        in varchar2
  ,p_validation_start_date in date
  ,p_validation_end_date   in date
  ) is
--
  l_proc        varchar2(72) := g_package||'insert_validate';
Line: 2148

End insert_validate;
Line: 2153

Procedure update_validate
  (p_rec                     in pqp_aat_shd.g_rec_type
  ,p_effective_date          in date
  ,p_datetrack_mode          in varchar2
  ,p_validation_start_date   in date
  ,p_validation_end_date     in date
  ) is
--
  l_proc        varchar2(72) := g_package||'update_validate';
Line: 2172

  dt_update_validate
    (p_datetrack_mode                 => p_datetrack_mode
    ,p_validation_start_date          => p_validation_start_date
    ,p_validation_end_date            => p_validation_end_date
    );
Line: 2178

  chk_non_updateable_args
    (p_effective_date  => p_effective_date
    ,p_rec             => p_rec
    );
Line: 2367

End update_validate;
Line: 2372

Procedure delete_validate
  (p_rec                    in pqp_aat_shd.g_rec_type
  ,p_effective_date         in date
  ,p_datetrack_mode         in varchar2
  ,p_validation_start_date  in date
  ,p_validation_end_date    in date
  ) is
--
  l_proc        varchar2(72) := g_package||'delete_validate';
Line: 2384

  select assignment_id
  from pqp_assignment_attributes_f
  where assignment_attribute_id = p_rec.assignment_attribute_id
  and p_effective_date between effective_start_date
                       and effective_end_date;
Line: 2396

  dt_delete_validate
    (p_datetrack_mode                   => p_datetrack_mode
    ,p_validation_start_date            => p_validation_start_date
    ,p_validation_end_date              => p_validation_end_date
    ,p_assignment_attribute_id          => p_rec.assignment_attribute_id
    );
Line: 2409

  if p_datetrack_mode in ('DELETE_NEXT_CHANGE', 'FUTURE_CHANGE') then
  --
    open c_asg;
Line: 2425

End delete_validate;