DBA Data[Home] [Help]

APPS.BEN_PLAN_TYPE_OPTION_TYPE_API SQL Statements

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

Line: 70

    select  opt.Group_opt_id ,
            opt.object_version_number
      from ben_opt_f opt
           where  opt.opt_id = p_opt_id
             and  p_effective_date between
                  opt.effective_start_date and opt.effective_end_date ;
Line: 78

    select  ptp.opt_typ_cd
      from ben_pl_typ_f  ptp
           where  ptp.pl_typ_id  = p_pl_typ_id
             and  p_effective_date between
                  ptp.effective_start_date and ptp.effective_end_date ;
Line: 283

         BEN_option_definition_API.update_option_definition
                           (p_validate => FALSE
                           ,p_OPT_ID => p_opt_id
                           ,p_EFFECTIVE_START_DATE => l_eff_st_dt
                           ,p_EFFECTIVE_END_DATE   => l_eff_end_dt
                           ,p_group_opt_id         => p_opt_id
                           ,p_OBJECT_VERSION_NUMBER=> l_opt_ovn
                           ,p_effective_date       => p_effective_date
                           ,p_datetrack_mode =>  'CORRECTION'
                          );
Line: 335

    /* Inserted for nocopy changes */
    p_pl_typ_opt_typ_id := null;
Line: 347

procedure update_plan_type_option_type
  (p_validate                       in  boolean   default false
  ,p_pl_typ_opt_typ_id              in  number
  ,p_effective_start_date           out nocopy date
  ,p_effective_end_date             out nocopy date
  ,p_pl_typ_opt_typ_cd              in  varchar2  default hr_api.g_varchar2
  ,p_opt_id                         in  number    default hr_api.g_number
  ,p_pl_typ_id                      in  number    default hr_api.g_number
  ,p_business_group_id              in  number    default hr_api.g_number
  ,p_legislation_code         in  varchar2  default hr_api.g_varchar2
  ,p_legislation_subgroup         in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute_category         in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute1                 in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute2                 in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute3                 in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute4                 in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute5                 in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute6                 in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute7                 in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute8                 in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute9                 in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute10                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute11                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute12                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute13                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute14                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute15                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute16                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute17                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute18                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute19                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute20                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute21                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute22                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute23                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute24                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute25                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute26                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute27                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute28                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute29                in  varchar2  default hr_api.g_varchar2
  ,p_pon_attribute30                in  varchar2  default hr_api.g_varchar2
  ,p_object_version_number          in out nocopy number
  ,p_effective_date                 in  date
  ,p_datetrack_mode                 in  varchar2
  ) is
  --
  -- Declare cursors and local variables
  --
  l_proc varchar2(72) := g_package||'update_plan_type_option_type';
Line: 403

    select  opt.Group_opt_id ,
            opt.object_version_number
      from ben_opt_f opt
           where  opt.opt_id = p_opt_id
             and  p_effective_date between
                  opt.effective_start_date and opt.effective_end_date ;
Line: 411

    select  ptp.opt_typ_cd
      from ben_pl_typ_f  ptp
           where  ptp.pl_typ_id  = p_pl_typ_id
             and  p_effective_date between
                  ptp.effective_start_date and ptp.effective_end_date ;
Line: 429

  savepoint update_plan_type_option_type;
Line: 441

    ben_plan_type_option_type_bk2.update_plan_type_option_type_b
      (
       p_pl_typ_opt_typ_id              =>  p_pl_typ_opt_typ_id
      ,p_pl_typ_opt_typ_cd              =>  p_pl_typ_opt_typ_cd
      ,p_opt_id                         =>  p_opt_id
      ,p_pl_typ_id                      =>  p_pl_typ_id
      ,p_business_group_id              =>  p_business_group_id
      ,p_legislation_code         =>  p_legislation_code
      ,p_legislation_subgroup         =>  p_legislation_subgroup
      ,p_pon_attribute_category         =>  p_pon_attribute_category
      ,p_pon_attribute1                 =>  p_pon_attribute1
      ,p_pon_attribute2                 =>  p_pon_attribute2
      ,p_pon_attribute3                 =>  p_pon_attribute3
      ,p_pon_attribute4                 =>  p_pon_attribute4
      ,p_pon_attribute5                 =>  p_pon_attribute5
      ,p_pon_attribute6                 =>  p_pon_attribute6
      ,p_pon_attribute7                 =>  p_pon_attribute7
      ,p_pon_attribute8                 =>  p_pon_attribute8
      ,p_pon_attribute9                 =>  p_pon_attribute9
      ,p_pon_attribute10                =>  p_pon_attribute10
      ,p_pon_attribute11                =>  p_pon_attribute11
      ,p_pon_attribute12                =>  p_pon_attribute12
      ,p_pon_attribute13                =>  p_pon_attribute13
      ,p_pon_attribute14                =>  p_pon_attribute14
      ,p_pon_attribute15                =>  p_pon_attribute15
      ,p_pon_attribute16                =>  p_pon_attribute16
      ,p_pon_attribute17                =>  p_pon_attribute17
      ,p_pon_attribute18                =>  p_pon_attribute18
      ,p_pon_attribute19                =>  p_pon_attribute19
      ,p_pon_attribute20                =>  p_pon_attribute20
      ,p_pon_attribute21                =>  p_pon_attribute21
      ,p_pon_attribute22                =>  p_pon_attribute22
      ,p_pon_attribute23                =>  p_pon_attribute23
      ,p_pon_attribute24                =>  p_pon_attribute24
      ,p_pon_attribute25                =>  p_pon_attribute25
      ,p_pon_attribute26                =>  p_pon_attribute26
      ,p_pon_attribute27                =>  p_pon_attribute27
      ,p_pon_attribute28                =>  p_pon_attribute28
      ,p_pon_attribute29                =>  p_pon_attribute29
      ,p_pon_attribute30                =>  p_pon_attribute30
      ,p_object_version_number          =>  p_object_version_number
    ,p_effective_date                      => trunc(p_effective_date)
    ,p_datetrack_mode                      => p_datetrack_mode
      );
Line: 488

        (p_module_name => 'UPDATE_plan_type_option_type'
        ,p_hook_type   => 'BP'
        );
Line: 547

    ben_plan_type_option_type_bk2.update_plan_type_option_type_a
      (
       p_pl_typ_opt_typ_id              =>  p_pl_typ_opt_typ_id
      ,p_effective_start_date           =>  l_effective_start_date
      ,p_effective_end_date             =>  l_effective_end_date
      ,p_pl_typ_opt_typ_cd              =>  p_pl_typ_opt_typ_cd
      ,p_opt_id                         =>  p_opt_id
      ,p_pl_typ_id                      =>  p_pl_typ_id
      ,p_business_group_id              =>  p_business_group_id
      ,p_legislation_code         =>  p_legislation_code
      ,p_legislation_subgroup         =>  p_legislation_subgroup
      ,p_pon_attribute_category         =>  p_pon_attribute_category
      ,p_pon_attribute1                 =>  p_pon_attribute1
      ,p_pon_attribute2                 =>  p_pon_attribute2
      ,p_pon_attribute3                 =>  p_pon_attribute3
      ,p_pon_attribute4                 =>  p_pon_attribute4
      ,p_pon_attribute5                 =>  p_pon_attribute5
      ,p_pon_attribute6                 =>  p_pon_attribute6
      ,p_pon_attribute7                 =>  p_pon_attribute7
      ,p_pon_attribute8                 =>  p_pon_attribute8
      ,p_pon_attribute9                 =>  p_pon_attribute9
      ,p_pon_attribute10                =>  p_pon_attribute10
      ,p_pon_attribute11                =>  p_pon_attribute11
      ,p_pon_attribute12                =>  p_pon_attribute12
      ,p_pon_attribute13                =>  p_pon_attribute13
      ,p_pon_attribute14                =>  p_pon_attribute14
      ,p_pon_attribute15                =>  p_pon_attribute15
      ,p_pon_attribute16                =>  p_pon_attribute16
      ,p_pon_attribute17                =>  p_pon_attribute17
      ,p_pon_attribute18                =>  p_pon_attribute18
      ,p_pon_attribute19                =>  p_pon_attribute19
      ,p_pon_attribute20                =>  p_pon_attribute20
      ,p_pon_attribute21                =>  p_pon_attribute21
      ,p_pon_attribute22                =>  p_pon_attribute22
      ,p_pon_attribute23                =>  p_pon_attribute23
      ,p_pon_attribute24                =>  p_pon_attribute24
      ,p_pon_attribute25                =>  p_pon_attribute25
      ,p_pon_attribute26                =>  p_pon_attribute26
      ,p_pon_attribute27                =>  p_pon_attribute27
      ,p_pon_attribute28                =>  p_pon_attribute28
      ,p_pon_attribute29                =>  p_pon_attribute29
      ,p_pon_attribute30                =>  p_pon_attribute30
      ,p_object_version_number          =>  l_object_version_number
      ,p_effective_date                     => trunc(p_effective_date)
      ,p_datetrack_mode                     => p_datetrack_mode
      );
Line: 596

        (p_module_name => 'UPDATE_plan_type_option_type'
        ,p_hook_type   => 'AP'
        );
Line: 619

         BEN_option_definition_API.update_option_definition
                           (p_validate => FALSE
                           ,p_OPT_ID => p_opt_id
                           ,p_EFFECTIVE_START_DATE => l_eff_st_dt
                           ,p_EFFECTIVE_END_DATE   => l_eff_end_dt
                           ,p_group_opt_id         =>  p_opt_id
                           ,p_OBJECT_VERSION_NUMBER=> l_opt_ovn
                           ,p_effective_date       => p_effective_date
                           ,p_datetrack_mode =>  'CORRECTION'
                          );
Line: 657

    ROLLBACK TO update_plan_type_option_type;
Line: 669

    ROLLBACK TO update_plan_type_option_type;
Line: 670

    /* Inserted for nocopy changes */
    p_object_version_number := l_object_version_number;
Line: 676

end update_plan_type_option_type;
Line: 681

procedure delete_plan_type_option_type
  (p_validate                       in  boolean  default false
  ,p_pl_typ_opt_typ_id              in  number
  ,p_effective_start_date           out nocopy date
  ,p_effective_end_date             out nocopy date
  ,p_object_version_number          in out nocopy number
  ,p_effective_date                 in  date
  ,p_datetrack_mode                 in  varchar2
  ) is
  --
  -- Declare cursors and local variables
  --
    cursor c1 is
  	select opt.opt_id, opt.object_version_number
	from ben_pl_typ_opt_typ_f pon, ben_opt_f opt
	where pon.opt_id = opt.opt_id
	and pon.pl_typ_opt_typ_id = p_pl_typ_opt_typ_id
	and p_effective_date between pon.effective_start_date and pon.effective_end_date
	and p_effective_date between opt.effective_start_date and opt.effective_end_date;
Line: 702

	select count(*)
	from ben_pl_typ_opt_typ_f
	where pl_typ_opt_typ_cd = 'CWB'
	and opt_id = p_opt_id
	and p_effective_date between effective_start_date and effective_end_date;
Line: 712

  l_proc varchar2(72) := g_package||'update_plan_type_option_type';
Line: 723

  savepoint delete_plan_type_option_type;
Line: 741

    ben_plan_type_option_type_bk3.delete_plan_type_option_type_b
      (
       p_pl_typ_opt_typ_id              =>  p_pl_typ_opt_typ_id
      ,p_object_version_number          =>  p_object_version_number
    ,p_effective_date                      => trunc(p_effective_date)
    ,p_datetrack_mode                      => p_datetrack_mode
      );
Line: 751

        (p_module_name => 'DELETE_plan_type_option_type'
        ,p_hook_type   => 'BP'
        );
Line: 773

    ben_plan_type_option_type_bk3.delete_plan_type_option_type_a
      (
       p_pl_typ_opt_typ_id              =>  p_pl_typ_opt_typ_id
      ,p_effective_start_date           =>  l_effective_start_date
      ,p_effective_end_date             =>  l_effective_end_date
      ,p_object_version_number          =>  l_object_version_number
    ,p_effective_date                      => trunc(p_effective_date)
    ,p_datetrack_mode                      => p_datetrack_mode
      );
Line: 785

        (p_module_name => 'DELETE_plan_type_option_type'
        ,p_hook_type   => 'AP'
        );
Line: 812

	update ben_opt_f
	set group_opt_id = null
	where opt_id = l_opt_id
	and p_effective_date between effective_start_date and effective_end_date;
Line: 829

    ROLLBACK TO delete_plan_type_option_type;
Line: 842

    ROLLBACK TO delete_plan_type_option_type;
Line: 843

    /* Inserted for nocopy changes */
    p_object_version_number := l_object_version_number;
Line: 849

end delete_plan_type_option_type;