DBA Data[Home] [Help]

APPS.AME_APT_BUS SQL Statements

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

Line: 37

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

End chk_non_updateable_args;
Line: 104

        SELECT lookup_code
          from FND_LOOKUPS
          where lookup_type like 'FND_WF_ORIG_SYSTEMS'
            and lookup_code = p_orig_system
            and rownum <2 ;
Line: 166

    select null
      from ame_approver_types
    where orig_system = p_orig_system
      and p_effective_date between start_date and
            nvl(end_date - ame_util.oneSecond, p_effective_date);
Line: 232

procedure chk_delete(p_approver_type_id                     in   number
                    ,p_orig_system                          in   varchar2
                    ,p_effective_date                       in   date
                    ) IS
  l_proc           varchar2(72) := g_package || 'CHK_DELETE';
Line: 241

     select null
        from ame_approver_types
        where approver_type_id = p_approver_type_id
        and   p_effective_date between start_date
        and   nvl(end_date - ame_util.oneSecond, p_effective_date)
        and  ame_utility_pkg.is_seed_user(created_by) = ame_util.seededDataCreatedById;
Line: 249

    select null
      from ame_attributes
      where approver_type_id = p_approver_type_id
      and   p_effective_date between start_date
      and  nvl(end_date - ame_util.oneSecond, p_effective_date);
Line: 256

    select null
      from ame_approver_type_usages
      where approver_type_id = p_approver_type_id
      and   p_effective_date between start_date
      and   nvl(end_date - ame_util.oneSecond, p_effective_date);
Line: 263

    select null
      from AME_APPROVAL_GROUP_MEMBERS
      where orig_system = p_orig_system;
Line: 268

    select null
       from AME_CONDITIONS cond
           ,WF_ROLES wfr
       where cond.parameter_two = wfr.name
         and wfr.orig_system = p_orig_system
         and p_effective_date between cond.start_date
         and nvl(cond.end_date - ame_util.oneSecond, p_effective_date);
Line: 277

    select null
        from AME_ACTIONS actions
            ,WF_ROLES wfr
            ,ame_action_types act
        where actions.parameter = wfr.name
          and wfr.orig_system = p_orig_system
          and act.name ='substitution'
          and p_effective_date between actions.start_date
          and nvl(actions.end_date - ame_util.oneSecond, p_effective_date);
Line: 376

                       (p_associated_column1 => 'AME_APPROVER_TYPE.DELETE'
                       ) then
        hr_utility.set_location(' Leaving:'||l_proc, 40);
Line: 382

  End chk_delete;
Line: 413

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

End dt_update_validate;
Line: 494

Procedure dt_delete_validate
  (p_approver_type_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: 516

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

End dt_delete_validate;
Line: 568

Procedure insert_validate
  (p_rec                   in  ame_apt_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: 589

End insert_validate;
Line: 594

Procedure update_validate
  (p_rec                     in ame_apt_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: 611

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

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

End update_validate;
Line: 629

Procedure delete_validate
  (p_rec                    in ame_apt_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: 641

     select orig_system
        from ame_approver_types
        where approver_type_id = p_rec.approver_type_id
        and   p_effective_date between start_date
        and   nvl(end_date - ame_util.oneSecond, p_effective_date);
Line: 657

  chk_delete(p_approver_type_id  => p_rec.approver_type_id
            ,p_orig_system       => l_orig_system
            ,p_effective_date    => p_effective_date);
Line: 661

  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_approver_type_id                 => p_rec.approver_type_id
    );
Line: 669

End delete_validate;