DBA Data[Home] [Help]

PACKAGE: APPS.SSP_ERN_DEL

Source


1 Package ssp_ern_del as
2 /* $Header: spernrhi.pkh 120.0.12000000.1 2007/01/17 14:14:38 appldev noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |---------------------------------< del >----------------------------------|
6 -- ----------------------------------------------------------------------------
7 --
8 -- Description:
9 --   This procedure is the record interface for the delete process
10 --   for the specified entity. The role of this process is to delete the
11 --   row from the HR schema. This process is the main backbone of the del
12 --   business process. The processing of this procedure is as follows:
13 --   1) If the p_validate parameter has been set to true then a savepoint is
14 --      issued.
15 --   2) The controlling validation process delete_validate is then executed
16 --      which will execute all private and public validation business rule
17 --      processes.
18 --   3) The pre_delete process is then executed which enables any
19 --      logic to be processed before the delete dml process is executed.
20 --   4) The delete_dml process will physical perform the delete dml for the
21 --      specified row.
22 --   5) The post_delete process is then executed which enables any
23 --      logic to be processed after the delete dml process.
24 --   6) If the p_validate parameter has been set to true an exception is raised
25 --      which is handled and processed by performing a rollback to the
26 --      savepoint which was issued at the beginning of the del process.
27 --
28 -- Pre Conditions:
29 --   The main parameters to the business process have to be in the record
30 --   format.
31 --
32 -- In Parameters:
33 --   p_validate
34 --     Determines if the process is to be validated. Setting this
35 --     boolean value to true will invoke the process to be validated. The
36 --     default is false. The validation is controlled by a savepoint and
37 --     rollback mechanism. The savepoint is issued at the beginning of the
38 --     process and is rollbacked at the end of the process
39 --     when all the processing has been completed. The rollback is controlled
40 --     by raising and handling the exception hr_api.validate_enabled. We use
41 --     the exception because, by raising the exception with the business
42 --     process, we can exit successfully without having any of the 'OUT'
43 --     parameters being set.
44 --
45 -- Post Success:
46 --   The specified row will be fully validated and deleted for the specified
47 --   entity without being committed. If the p_validate parameter has been set
48 --   to true then all the work will be rolled back.
49 --
50 -- Post Failure:
51 --   If an error has occurred, an error message will be supplied with the work
52 --   rolled back.
53 --
54 -- Developer Implementation Notes:
55 --   None.
56 --
57 -- Access Status:
58 --   Internal Development Use Only.
59 --
60 -- ----------------------------------------------------------------------------
61 Procedure del
62   (
63   p_rec	      in ssp_ern_shd.g_rec_type,
64   p_validate  in boolean default false
65   );
66 --
67 -- ----------------------------------------------------------------------------
68 -- |---------------------------------< del >----------------------------------|
69 -- ----------------------------------------------------------------------------
70 --
71 -- Description:
72 --   This procedure is the attribute interface for the delete
73 --   process for the specified entity and is the outermost layer. The role
74 --   of this process is to validate and delete the specified row from the
75 --   HR schema. The processing of this procedure is as follows:
76 --   1) The attributes are converted into a local record structure by
77 --      explicitly coding the attribute parameters into the g_rec_type
78 --      datatype.
79 --   2) After the conversion has taken place, the corresponding record del
80 --      interface process is executed.
81 --
82 -- Pre Conditions:
83 --
84 -- In Parameters:
85 --   p_validate
86 --     Determines if the process is to be validated. Setting this
87 --     Boolean value to true will invoke the process to be validated.
88 --     The default is false.
89 --
90 -- Post Success:
91 --   The specified row will be fully validated and deleted for the specified
92 --   entity without being committed (or rollbacked depending on the
93 --   p_validate status).
94 --
95 -- Post Failure:
96 --   If an error has occurred, an error message will be supplied with the work
97 --   rolled back.
98 --
99 -- Developer Implementation Notes:
100 --   The attrbute in parameters should be modified as to the business process
101 --   requirements.
102 --
103 -- Access Status:
104 --   Internal Development Use Only.
105 --
106 -- ----------------------------------------------------------------------------
107 Procedure del
108   (
109   p_earnings_calculations_id           in number,
110   p_object_version_number              in number,
111   p_validate                           in boolean default false
112   );
113 --
114 end ssp_ern_del;