DBA Data[Home] [Help]

PACKAGE: APPS.PER_JBR_UPD

Source


1 Package per_jbr_upd AUTHID CURRENT_USER as
2 /* $Header: pejbrrhi.pkh 120.0 2005/05/31 10:34:33 appldev noship $ */
3 --
4 -- ---------------------------------------------------------------------------+
5 -- |---------------------------------< upd >----------------------------------|
6 -- ---------------------------------------------------------------------------+
7 -- {Start Of Comments}
8 --
9 -- Description:
10 --   This procedure is the record interface for the update business
11 --   process for the specified entity. The role of this process is
12 --   to update a fully validated row for the HR schema passing back
13 --   to the calling process, any system generated values (e.g.
14 --   object version number attribute). This process is the main
15 --   backbone of the upd business process. The processing of this
16 --   procedure is as follows:
17 --   1) If the p_validate argument has been set to true then a savepoint
18 --      is issued.
22 --      have to be defaulted, we need to build up the updated row by
19 --   2) The row to be updated is then locked and selected into the record
20 --      structure g_old_rec.
21 --   3) Because on update arguments which are not part of the update do not
23 --      converting any system defaulted arguments to their corresponding
24 --      value.
25 --   4) The controlling validation process update_validate is then executed
26 --      which will execute all private and public validation business rule
27 --      processes.
28 --   5) The pre_update business process is then executed which enables any
29 --      logic to be processed before the update dml process is executed.
30 --   6) The update_dml process will physical perform the update dml into the
31 --      specified entity.
32 --   7) The post_update business process is then executed which enables any
33 --      logic to be processed after the update dml process.
34 --   8) If the p_validate argument has been set to true an exception is
35 --      raised which is handled and processed by performing a rollback to
36 --      the savepoint which was issued at the beginning of the upd process.
37 --
38 -- Pre Conditions:
39 --   The main arguments to the business process have to be in the record
40 --   format.
41 --
42 -- In Arguments:
43 --   p_validate
44 --     Determines if the business process is to be validated. Setting this
45 --     boolean value to true will invoke the process to be validated. The
46 --     default is false. The validation is controlled by a savepoint and
47 --     rollback mechanism. The savepoint is issued at the beginning of the
48 --     business process and is rollbacked at the end of the business process
49 --     when all the processing has been completed. The rollback is controlled
50 --     by raising and handling the exception hr_api.validate_enabled. We use
51 --     the exception because, by raising the exception with the business
52 --     process, we can exit successfully without having any of the 'OUT'
53 --     arguments being set.
54 --
55 -- Post Success:
56 --   The specified row will be fully validated and updated for the specified
57 --   entity without being committed. If the p_validate argument has been set
58 --   to true then all the work will be rolled back.
59 --
60 -- Post Failure:
61 --   If an error has occurred, an error message will be supplied with the work
62 --   rolled back.
63 --
64 -- Developer Implementation Notes:
65 --   None.
66 --
67 -- Access Status:
68 --   Internal Development Use Only.
69 --
70 -- {End Of Comments}
71 -- ---------------------------------------------------------------------------+
72 Procedure upd
73   (
74    p_rec        in out nocopy per_jbr_shd.g_rec_type,
75    p_validate   in     boolean default false
76   );
77 --
78 -- ---------------------------------------------------------------------------+
79 -- |---------------------------------< upd >----------------------------------|
80 -- ---------------------------------------------------------------------------+
81 -- {Start Of Comments}
82 --
83 -- Description:
84 --   This procedure is the attribute interface for the update business
85 --   process for the specified entity and is the outermost layer. The role
86 --   of this process is to update a fully validated row into the HR schema
87 --   passing back to the calling process, any system generated values
88 --   (e.g. object version number attributes).The processing of this
89 --   procedure is as follows:
90 --   1) The attributes are converted into a local record structure by
91 --      calling the convert_defs function.
92 --   2) After the conversion has taken place, the corresponding record upd
93 --      interface business process is executed.
94 --   3) OUT arguments are then set to their corresponding record arguments.
95 --
96 -- Pre Conditions:
97 --
98 -- In Arguments:
99 --   p_validate
100 --     Determines if the business process is to be validated. Setting this
101 --     Boolean value to true will invoke the process to be validated.
102 --     The default is false.
103 --
104 -- Post Success:
105 --   A fully validated row will be updated for the specified entity
106 --   without being committed (or rollbacked depending on the p_validate
107 --   status).
108 --
109 -- Post Failure:
110 --   If an error has occurred, an error message will be supplied with the work
111 --   rolled back.
112 --
113 -- Developer Implementation Notes:
114 --   None.
115 --
116 -- Access Status:
117 --   Internal Development Use Only.
118 --
119 -- {End Of Comments}
120 -- ---------------------------------------------------------------------------+
121 Procedure upd
122   (
123    p_job_requirement_id           in number,
124    p_analysis_criteria_id         in number           default hr_api.g_number,
125    p_comments                     in varchar2         default hr_api.g_varchar2,
126    p_date_from                    in date             default hr_api.g_date,
127    p_date_to                      in date             default hr_api.g_date,
128    p_essential                    in varchar2         default hr_api.g_varchar2,
129    p_job_id                       in number           default hr_api.g_number,
130    p_position_id                  in number           default hr_api.g_number,
131    p_request_id                   in number           default hr_api.g_number,
132    p_program_application_id       in number           default hr_api.g_number,
133    p_program_id                   in number           default hr_api.g_number,
134    p_program_update_date          in date             default hr_api.g_date,
138    p_attribute3                   in varchar2         default hr_api.g_varchar2,
135    p_attribute_category           in varchar2         default hr_api.g_varchar2,
136    p_attribute1                   in varchar2         default hr_api.g_varchar2,
137    p_attribute2                   in varchar2         default hr_api.g_varchar2,
139    p_attribute4                   in varchar2         default hr_api.g_varchar2,
140    p_attribute5                   in varchar2         default hr_api.g_varchar2,
141    p_attribute6                   in varchar2         default hr_api.g_varchar2,
142    p_attribute7                   in varchar2         default hr_api.g_varchar2,
143    p_attribute8                   in varchar2         default hr_api.g_varchar2,
144    p_attribute9                   in varchar2         default hr_api.g_varchar2,
145    p_attribute10                  in varchar2         default hr_api.g_varchar2,
146    p_attribute11                  in varchar2         default hr_api.g_varchar2,
147    p_attribute12                  in varchar2         default hr_api.g_varchar2,
148    p_attribute13                  in varchar2         default hr_api.g_varchar2,
149    p_attribute14                  in varchar2         default hr_api.g_varchar2,
150    p_attribute15                  in varchar2         default hr_api.g_varchar2,
151    p_attribute16                  in varchar2         default hr_api.g_varchar2,
152    p_attribute17                  in varchar2         default hr_api.g_varchar2,
153    p_attribute18                  in varchar2         default hr_api.g_varchar2,
154    p_attribute19                  in varchar2         default hr_api.g_varchar2,
155    p_attribute20                  in varchar2         default hr_api.g_varchar2,
156    p_object_version_number        in out nocopy number,
157    p_validate                     in boolean      default false
158   );
159 --
160 end per_jbr_upd;