DBA Data[Home] [Help]

PACKAGE: APPS.PAY_IVL_UPD

Source


1 Package pay_ivl_upd AUTHID CURRENT_USER as
2 /* $Header: pyivlrhi.pkh 120.0 2005/05/29 06:04:54 appldev noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |---------------------------------< upd >----------------------------------|
6 -- ----------------------------------------------------------------------------
7 -- {Start Of Comments}
8 --
9 -- Description:
10 --   This procedure is the record interface for the update
11 --   process for the specified entity. The role of this process is
12 --   to perform the datetrack update mode, fully validating the row
13 --   for the HR schema passing back to the calling process, any system
14 --   generated values (e.g. object version number attribute). This process
15 --   is the main backbone of the upd process. The processing of
16 --   this procedure is as follows:
17 --   1) Ensure that the datetrack update mode is valid.
18 --   2) The row to be updated is then locked and selected into the record
19 --      structure g_old_rec.
20 --   3) Because on update parameters which are not part of the update do not
21 --      have to be defaulted, we need to build up the updated row by
22 --      converting any system defaulted parameters to their corresponding
23 --      value.
24 --   4) The controlling validation process update_validate is then executed
25 --      which will execute all private and public validation business rule
26 --      processes.
27 --   5) The pre_update process is then executed which enables any
28 --      logic to be processed before the update dml process is executed.
29 --   6) The update_dml process will physical perform the update dml into the
30 --      specified entity.
31 --   7) The post_update process is then executed which enables any
32 --      logic to be processed after the update dml process.
33 --
34 -- Prerequisites:
35 --   The main parameters to the process have to be in the record
36 --   format.
37 --
38 -- In Parameters:
39 --   p_effective_date
40 --     Specifies the date of the datetrack update operation.
41 --   p_datetrack_mode
42 --     Determines the datetrack update mode.
43 --
44 -- Post Success:
45 --   The specified row will be fully validated and datetracked updated for
46 --   the specified entity without being committed for the datetrack mode.
47 --
48 -- Post Failure:
49 --   If an error has occurred, an error message will be raised.
50 --
51 -- Developer Implementation Notes:
52 --   None.
53 --
54 -- Access Status:
55 --   Internal Development Use Only.
56 --
57 -- ----------------------------------------------------------------------------
58 Procedure upd
59   (p_effective_date        in     date
60   ,p_datetrack_mode        in     varchar2
61   ,p_rec                   in out nocopy pay_ivl_shd.g_rec_type
62   ,p_default_val_warning   out nocopy    boolean
63   ,p_min_max_warning       out nocopy    boolean
64   ,p_link_inp_val_warning  out nocopy    boolean
65   ,p_pay_basis_warning     out nocopy    boolean
66   ,p_formula_warning       out nocopy    boolean
67   ,p_assignment_id_warning out nocopy    boolean
68   ,p_formula_message       out nocopy    varchar2
69   );
70 --
71 -- ----------------------------------------------------------------------------
72 -- |-------------------------------< upd >------------------------------------|
73 -- ----------------------------------------------------------------------------
74 -- {Start Of Comments}
75 --
76 -- Description:
77 --   This procedure is the attribute interface for the datetrack update
78 --   process for the specified entity and is the outermost layer.
79 --   The role of this process is to update a fully validated row into the
80 --   HR schema passing back to the calling process, any system generated
81 --   values (e.g. object version number attributes). The processing of this
82 --   procedure is as follows:
83 --   1) The attributes are converted into a local record structure by
84 --      calling the convert_args function.
85 --   2) After the conversion has taken place, the corresponding record upd
86 --      interface process is executed.
87 --   3) OUT parameters are then set to their corresponding record attributes.
88 --
89 -- Prerequisites:
90 --
91 -- In Parameters:
92 --   p_effective_date
93 --     Specifies the date of the datetrack update operation.
94 --   p_datetrack_mode
95 --     Determines the datetrack update mode.
96 --
97 -- Post Success:
98 --   A fully validated row will be updated for the specified entity
99 --   without being committed.
100 --
101 -- Post Failure:
102 --   If an error has occurred, an error message will be raised.
103 --
104 -- Developer Implementation Notes:
105 --   None.
106 --
107 -- Access Status:
108 --   Internal Development Use Only.
109 --
110 -- {End Of Comments}
111 -- ----------------------------------------------------------------------------
112 Procedure upd
113   (p_effective_date               in     date
114   ,p_datetrack_mode               in     varchar2
115   ,p_input_value_id               in     number
116   ,p_object_version_number        in out nocopy number
117   ,p_element_type_id              in     number    default hr_api.g_number
118   ,p_display_sequence             in     number    default hr_api.g_number
119   ,p_generate_db_items_flag       in     varchar2  default hr_api.g_varchar2
120   ,p_hot_default_flag             in     varchar2  default hr_api.g_varchar2
121   ,p_mandatory_flag               in     varchar2  default hr_api.g_varchar2
122   ,p_name                         in     varchar2  default hr_api.g_varchar2
123   ,p_uom                          in     varchar2  default hr_api.g_varchar2
124   ,p_lookup_type                  in     varchar2  default hr_api.g_varchar2
125   ,p_business_group_id            in     number    default hr_api.g_number
126   ,p_legislation_code             in     varchar2  default hr_api.g_varchar2
127   ,p_formula_id                   in     number    default hr_api.g_number
128   ,p_value_set_id                 in     number    default hr_api.g_number
129   ,p_default_value                in     varchar2  default hr_api.g_varchar2
130   ,p_legislation_subgroup         in     varchar2  default hr_api.g_varchar2
131   ,p_max_value                    in     varchar2  default hr_api.g_varchar2
132   ,p_min_value                    in     varchar2  default hr_api.g_varchar2
133   ,p_warning_or_error             in     varchar2  default hr_api.g_varchar2
134   ,p_effective_start_date         out nocopy    date
135   ,p_effective_end_date           out nocopy    date
136   ,p_default_val_warning          out nocopy    boolean
137   ,p_min_max_warning              out nocopy    boolean
138   ,p_link_inp_val_warning         out nocopy    boolean
139   ,p_pay_basis_warning            out nocopy    boolean
140   ,p_formula_warning              out nocopy    boolean
141   ,p_assignment_id_warning        out nocopy    boolean
142   ,p_formula_message              out nocopy    varchar2
143   );
144 --
145 end pay_ivl_upd;