DBA Data[Home] [Help]

PACKAGE: APPS.OTA_THG_INS

Source


1 Package ota_thg_ins AUTHID CURRENT_USER as
2 /* $Header: otthgrhi.pkh 120.0 2005/05/29 07:44:14 appldev noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |---------------------------------< ins >----------------------------------|
6 -- ----------------------------------------------------------------------------
7 -- {Start Of Comments}
8 --
9 -- Description:
10 --   This procedure is the record interface for the insert process
11 --   for the specified entity. The role of this process is to insert a fully
12 --   validated row, into the HR schema passing back to  the calling process,
13 --   any system generated values (e.g. primary and object version number
14 --   attributes). This process is the main backbone of the ins
15 --   process. The processing of this procedure is as follows:
16 --   1) The controlling validation process insert_validate is executed
17 --      which will execute all private and public validation business rule
18 --      processes.
19 --   2) The pre_insert business process is then executed which enables any
20 --      logic to be processed before the insert dml process is executed.
21 --   3) The insert_dml process will physical perform the insert dml into the
22 --      specified entity.
23 --   4) The post_insert business process is then executed which enables any
24 --      logic to be processed after the insert dml process.
25 --
26 -- Prerequisites:
27 --   The main parameters to the this process have to be in the record
28 --   format.
29 --
30 -- In Parameters:
31 --
32 -- Post Success:
33 --   A fully validated row will be inserted into the specified entity
34 --   without being committed.
35 --
36 -- Post Failure:
37 --   If an error has occurred, an error message will be raised.
38 --
39 -- Developer Implementation Notes:
40 --   None.
41 --
42 -- Access Status:
43 --   Internal Development Use Only.
44 --
45 -- {End Of Comments}
46 -- ----------------------------------------------------------------------------
47 Procedure ins
48   (p_effective_date               in date
49   ,p_rec                          in out nocopy ota_thg_shd.g_rec_type
50   ,p_validate                     in     boolean    default false
51 
52   );
53 --
54 -- ----------------------------------------------------------------------------
55 -- |---------------------------------< ins >----------------------------------|
56 -- ----------------------------------------------------------------------------
57 -- {Start Of Comments}
58 --
59 -- Description:
60 --   This procedure is the attribute interface for the insert
61 --   process for the specified entity and is the outermost layer. The role
62 --   of this process is to insert a fully validated row into the HR schema
63 --   passing back to the calling process, any system generated values
64 --   (e.g. object version number attributes).The processing of this
65 --   procedure is as follows:
66 --   1) The attributes are converted into a local record structure by
67 --      calling the convert_args function.
68 --   2) After the conversion has taken place, the corresponding record ins
69 --      interface process is executed.
70 --   3) OUT parameters are then set to their corresponding record attributes.
71 --
72 -- Prerequisites:
73 --
74 -- In Parameters:
75 --
76 -- Post Success:
77 --   A fully validated row will be inserted for the specified entity
78 --   without being committed.
79 --
80 -- Post Failure:
81 --   If an error has occurred, an error message will be raised.
82 --
83 -- Developer Implementation Notes:
84 --   None.
85 --
86 -- Access Status:
87 --   Internal Development Use Only.
88 --
89 -- {End Of Comments}
90 -- ----------------------------------------------------------------------------
91 Procedure ins
92   (p_effective_date               in     date
93   ,p_cross_charge_id                in     number
94   ,p_segment                        in     varchar2
95   ,p_segment_num                    in     number
96   ,p_hr_data_source                     in     varchar2 default null
97   ,p_constant                       in     varchar2 default null
98   ,p_hr_cost_segment                in     varchar2 default null
99   ,p_gl_default_segment_id             out nocopy number
100   ,p_object_version_number             out nocopy number
101   ,p_validate                       in     boolean    default false
102 
103   );
104 --
105 end ota_thg_ins;