DBA Data[Home] [Help]

APPS.AME_ATU_BUS SQL Statements

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

Line: 141

     select null
        from  ame_item_class_usages
           where application_id = p_application_id and item_class_id =
            ( select item_class_id from ame_attributes
               where attribute_id = p_attribute_id and sysdate between start_date
                 and nvl(end_date - ame_util.oneSecond,sysdate))
                   and sysdate between start_date and nvl(end_date - ame_util.oneSecond,sysdate);
Line: 185

     select approver_type_id
     into l_approver_type_id
        from ame_attributes
          where attribute_id = p_attribute_id and
            sysdate between start_date and
              nvl(end_date - ame_util.oneSecond, sysdate) ;
Line: 194

      select variable_value
            into l_variable_Value
            from ame_config_vars
            where
              variable_name = 'allowAllApproverTypes' and
              application_id = p_application_id and
              sysdate between start_date and
                 nvl(end_date - ame_util.oneSecond, sysdate);
Line: 207

               select variable_value
                 into l_variable_Value
                 from ame_config_vars
                where
                  variable_name = 'allowAllApproverTypes' and
                  application_id = 0 and
                  sysdate between start_date and
                     nvl(end_date - ame_util.oneSecond, sysdate) ;
Line: 217

      select orig_system into l_orig_system from ame_approver_types
        where approver_type_id = l_approver_type_id and
                    sysdate between start_date and
                     nvl(end_date - ame_util.oneSecond, sysdate) ;
Line: 252

         select count(*) into l_count
           from fnd_flex_value_sets
            where flex_value_set_id = p_value_set_id and
             instr(flex_value_set_name,'$') = 0 ;
Line: 289

    select attribute_type
       into l_attribute_type
     from ame_attributes
       where attribute_id = p_attribute_id
         and sysdate between start_date and
           nvl(end_date - ame_util.oneSecond, sysdate) ;
Line: 302

   select format_type into l_format_type
     from fnd_flex_value_sets
       where flex_value_set_id = p_value_set_id and
          instr(flex_value_set_name,'$') = 0 ;
Line: 369

    select null
      from ame_attributes
      where
        attribute_id = p_attribute_id and
        p_effective_date between start_date and
                 nvl(end_date - ame_util.oneSecond, p_effective_date) ;
Line: 430

    select null
      from ame_calling_apps
      where
        application_id = p_application_id and
        p_effective_date between start_date and
                 nvl(end_date - ame_util.oneSecond, p_effective_date) ;
Line: 494

    select count(*)
      from ame_attribute_usages
      where
        attribute_id = p_attribute_id and
        application_id = p_application_id and
        p_effective_date between start_date and
                 nvl(end_date - ame_util.oneSecond, p_effective_date) ;
Line: 737

  select name,attribute_type
    into l_attribute_name,l_attribute_type
    from ame_attributes
    where attribute_id = p_attribute_id
      and p_effective_date between start_date and
          nvl(end_date - ame_util.oneSecond, p_effective_date) ;
Line: 803

        select name
          into l_attr_name
          from ame_attributes
         where attribute_id = p_attribute_id
           and sysdate between start_date and nvl(end_date - (1/86400),sysdate);
Line: 862

        select ame_util2.specialObject
          into l_object
          from ame_attributes
          where attribute_id = p_attribute_id
            and name in (ame_util.jobLevelStartingPointAttribute
                        ,ame_util.nonDefStartingPointPosAttr
                        ,ame_util.nonDefPosStructureAttr
                        ,ame_util.supStartingPointAttribute
                        ,ame_util.firstStartingPointAttribute
                        ,ame_util.secondStartingPointAttribute
                        )
            and sysdate between start_date and nvl(end_date - (1/86400), sysdate);
Line: 1019

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

     fnd_message.set_name('PER', 'AME_400467_NON_UPDATEABLE_FIELD');
Line: 1052

      fnd_message.set_name('PER', 'AME_400467_NON_UPDATEABLE_FIELD');
Line: 1059

      fnd_message.set_name('PER', 'AME_400467_NON_UPDATEABLE_FIELD');
Line: 1067

End chk_non_updateable_args;
Line: 1103

procedure chk_delete
  (p_attribute_id   in number,
   p_application_id in integer,
   p_object_version_number in number,
   p_effective_date        in date) is

  l_proc       varchar2(72)  :=  g_package||'chk_delete';
Line: 1116

    select use_count
      from ame_attribute_usages
     where
       attribute_id   = p_attribute_id and
       application_id = p_application_id and
       sysdate between start_date and
          nvl(end_date-(ame_util.oneSecond),sysdate);
Line: 1125

    select null
      from ame_mandatory_attributes
      where
        attribute_id = p_attribute_id and
        action_type_id = -1 and
        p_effective_date between start_date and
                 nvl(end_date - ame_util.oneSecond, p_effective_date) ;
Line: 1189

end chk_delete;
Line: 1219

Procedure dt_update_validate
  (p_attribute_id                  in number default hr_api.g_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_update_validate';
Line: 1264

End dt_update_validate;
Line: 1301

Procedure dt_delete_validate
  (p_attribute_id                     in number
  ,p_application_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: 1324

  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: 1363

End dt_delete_validate;
Line: 1368

Procedure insert_validate
  (p_rec                   in ame_atu_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: 1417

End insert_validate;
Line: 1422

Procedure update_validate
  (p_rec                     in ame_atu_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: 1439

  dt_update_validate
    (p_attribute_id                   => p_rec.attribute_id
    ,p_datetrack_mode                 => p_datetrack_mode
    ,p_validation_start_date          => p_validation_start_date
    ,p_validation_end_date            => p_validation_end_date
    );
Line: 1446

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

End update_validate;
Line: 1475

Procedure delete_validate
  (p_rec                    in ame_atu_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: 1490

  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_attribute_id =>  p_rec.attribute_id
    ,p_application_id =>  p_rec.application_id
    );
Line: 1497

  chk_delete
  (p_attribute_id          => p_rec.attribute_id,
   p_application_id        => p_rec.application_id,
   p_object_version_number => p_rec.object_version_number,
   p_effective_date        => p_effective_date);
Line: 1504

End delete_validate;