DBA Data[Home] [Help]

PACKAGE: APPS.PER_CONTACT_RELATIONSHIPS_PKG

Source


1 PACKAGE PER_CONTACT_RELATIONSHIPS_PKG AUTHID CURRENT_USER AS
2 /* $Header: pecon01t.pkh 120.0.12010000.1 2008/07/28 04:24:05 appldev ship $ */
3 /*===========================================================================+
4  |               Copyright (c) 1993 Oracle Corporation                       |
5  |                  Redwood Shores, California, USA                          |
6  |                       All rights reserved.                                |
7  +===========================================================================*/
8 /*---------------------------------------------------------------------------
9 Description
10 -----------
11 
12 Date        Author    Version Description
13 ---------   --------- ------- -------------------------------------------
14 09-May-94   JRhodes   80.0    Created Initial Version
15 25-Jan-95   JRhodes   70.4    Added ATTRIBUTE21-30 for people
16 05-Jul-95   TMathers  70.5    Added BENEFICIARY_FLAG,BONDHOLDER_FLAG and
17                              THIRD_PARTY_PAY_FLAG + NATIONAL_IDENTIFIER.
18 13-FEB-97   FSHOJAAS  70.6   TOW parameter were added to insert and update
19 			     logic (X_suffix and X_PRE_NAME_ADJUNCT).
20 			     THis was to fix bug 436371.
21 18-JUL-97   RKAMIYAM  70.7   Added per_information1 to 30 and know_as cols
22 06-MAY-98   CCARTER   115.1  Changes to the following procedures resulting
23                              from OAB changes: INSERT_ROW, LOCK_ROW,
24                              UPDATE_ROW. Dependent_Flag and Beneficiary
25                              _Flag not removed in case OAB pulled from 11.5
26 15-DEC-98   CCARTER   115.3  sequence_number parameter and validation
27 			     procedure added for OAB.
28 08-MAR-00   ASAHAY    115.4  Added procedure Update_Contact
29 05-MAY-00   PZWALKER  115.5  made time_validation available globally
30                              for use in PERWSDPC
31 10-OCT-01   ADHUNTER  115.8  added DDF cols to all procedures.
32 19-OCT-01   WSTALLAR  115.10  added code to support TCA-mapped columns
33 16-NOV-01   ADHUNTER  115.11 added dbdrv line
34 05-MAR-02   miwamoto  115.13 Added procedure chk_dates and modified
35                              update_contact to handle date_of_death.
36 05-MAR-02   miwamoto  115.14 Corrected GSCC warning.
37 05-DEC-02   pkakar    115.16 added nocopy to parameters
38 ---------------------------------------------------------------------------*/
39 
40 PROCEDURE Insert_Row(X_Rowid                         IN OUT NOCOPY VARCHAR2,
41                      X_Party_Id                            NUMBER DEFAULT NULL,
42                      X_Contact_Relationship_Id              IN OUT NOCOPY NUMBER,
43                      X_Business_Group_Id                    NUMBER,
44                      X_Person_Id                     IN OUT NOCOPY NUMBER,
45                      X_Contact_Person_Id             IN OUT NOCOPY NUMBER,
46                      X_Contact_Type                  IN OUT NOCOPY VARCHAR2,
47                      X_Comments                             VARCHAR2,
48                      X_Bondholder_Flag                      VARCHAR2,
49                      X_Third_Party_Pay_Flag                 VARCHAR2,
50                      X_Primary_Contact_Flag                 VARCHAR2,
51                      X_Cont_Attribute_Category              VARCHAR2,
52                      X_Cont_Attribute1                      VARCHAR2,
53                      X_Cont_Attribute2                      VARCHAR2,
54                      X_Cont_Attribute3                      VARCHAR2,
55                      X_Cont_Attribute4                      VARCHAR2,
56                      X_Cont_Attribute5                      VARCHAR2,
57                      X_Cont_Attribute6                      VARCHAR2,
58                      X_Cont_Attribute7                      VARCHAR2,
59                      X_Cont_Attribute8                      VARCHAR2,
60                      X_Cont_Attribute9                      VARCHAR2,
61                      X_Cont_Attribute10                     VARCHAR2,
62                      X_Cont_Attribute11                     VARCHAR2,
63                      X_Cont_Attribute12                     VARCHAR2,
64                      X_Cont_Attribute13                     VARCHAR2,
65                      X_Cont_Attribute14                     VARCHAR2,
66                      X_Cont_Attribute15                     VARCHAR2,
67                      X_Cont_Attribute16                     VARCHAR2,
68                      X_Cont_Attribute17                     VARCHAR2,
69                      X_Cont_Attribute18                     VARCHAR2,
70                      X_Cont_Attribute19                     VARCHAR2,
71                      X_Cont_Attribute20                     VARCHAR2,
72                      X_Cont_Information_Category              VARCHAR2,
73                      X_Cont_Information1                      VARCHAR2,
74                      X_Cont_Information2                      VARCHAR2,
75                      X_Cont_Information3                      VARCHAR2,
76                      X_Cont_Information4                      VARCHAR2,
77                      X_Cont_Information5                      VARCHAR2,
78                      X_Cont_Information6                      VARCHAR2,
79                      X_Cont_Information7                      VARCHAR2,
80                      X_Cont_Information8                      VARCHAR2,
81                      X_Cont_Information9                      VARCHAR2,
82                      X_Cont_Information10                     VARCHAR2,
83                      X_Cont_Information11                     VARCHAR2,
84                      X_Cont_Information12                     VARCHAR2,
85                      X_Cont_Information13                     VARCHAR2,
86                      X_Cont_Information14                     VARCHAR2,
87                      X_Cont_Information15                     VARCHAR2,
88                      X_Cont_Information16                     VARCHAR2,
89                      X_Cont_Information17                     VARCHAR2,
90                      X_Cont_Information18                     VARCHAR2,
91                      X_Cont_Information19                     VARCHAR2,
92                      X_Cont_Information20                     VARCHAR2,
93                      X_Session_Date                        DATE,
94                      X_Person_Type_Id                      NUMBER,
95                      X_Last_Name                           VARCHAR2,
96                      X_Comment_Id                          NUMBER,
97                      X_Date_Of_Birth                       DATE,
98                      X_First_Name                          VARCHAR2,
99                      X_Middle_Names                        VARCHAR2,
100                      X_Sex                                 VARCHAR2,
101                      X_Title                               VARCHAR2,
102 		     X_PRE_NAME_ADJUNCT		   	   VARCHAR2,
103 		     X_SUFFIX				   VARCHAR2,
104                      X_Title_Desc                          VARCHAR2,
105                      X_national_identifier                 VARCHAR2,
106                      X_Attribute_Category                  VARCHAR2,
107                      X_Attribute1                          VARCHAR2,
108                      X_Attribute2                          VARCHAR2,
109                      X_Attribute3                          VARCHAR2,
110                      X_Attribute4                          VARCHAR2,
111                      X_Attribute5                          VARCHAR2,
112                      X_Attribute6                          VARCHAR2,
113                      X_Attribute7                          VARCHAR2,
114                      X_Attribute8                          VARCHAR2,
115                      X_Attribute9                          VARCHAR2,
116                      X_Attribute10                         VARCHAR2,
117                      X_Attribute11                         VARCHAR2,
118                      X_Attribute12                         VARCHAR2,
119                      X_Attribute13                         VARCHAR2,
120                      X_Attribute14                         VARCHAR2,
121                      X_Attribute15                         VARCHAR2,
122                      X_Attribute16                         VARCHAR2,
123                      X_Attribute17                         VARCHAR2,
124                      X_Attribute18                         VARCHAR2,
125                      X_Attribute19                         VARCHAR2,
126                      X_Attribute20                         VARCHAR2,
127                      X_Attribute21                         VARCHAR2,
128                      X_Attribute22                         VARCHAR2,
129                      X_Attribute23                         VARCHAR2,
130                      X_Attribute24                         VARCHAR2,
131                      X_Attribute25                         VARCHAR2,
132                      X_Attribute26                         VARCHAR2,
133                      X_Attribute27                         VARCHAR2,
134                      X_Attribute28                         VARCHAR2,
135                      X_Attribute29                         VARCHAR2,
136                      X_Attribute30                         VARCHAR2,
137                      X_Reentry_Flag                        IN OUT NOCOPY NUMBER,
138                      X_Per_information_category            VARCHAR2,
139                      X_Per_Information1                    VARCHAR2,
140                      X_Per_Information2                    VARCHAR2,
141                      X_Per_Information3                    VARCHAR2,
142                      X_Per_Information4                    VARCHAR2,
143                      X_Per_Information5                    VARCHAR2,
144                      X_Per_Information6                    VARCHAR2,
145                      X_Per_Information7                    VARCHAR2,
146                      X_Per_Information8                    VARCHAR2,
147                      X_Per_Information9                    VARCHAR2,
148                      X_Per_Information10                   VARCHAR2,
149                      X_Per_Information11                   VARCHAR2,
150                      X_Per_Information12                   VARCHAR2,
151                      X_Per_Information13                   VARCHAR2,
152                      X_Per_Information14                   VARCHAR2,
153                      X_Per_Information15                   VARCHAR2,
154                      X_Per_Information16                   VARCHAR2,
155                      X_Per_Information17                   VARCHAR2,
156                      X_Per_Information18                   VARCHAR2,
157                      X_Per_Information19                   VARCHAR2,
158                      X_Per_Information20                   VARCHAR2,
159                      X_Per_Information21                   VARCHAR2,
160                      X_Per_Information22                   VARCHAR2,
161                      X_Per_Information23                   VARCHAR2,
162                      X_Per_Information24                   VARCHAR2,
163                      X_Per_Information25                   VARCHAR2,
164                      X_Per_Information26                   VARCHAR2,
165                      X_Per_Information27                   VARCHAR2,
166                      X_Per_Information28                   VARCHAR2,
167                      X_Per_Information29                   VARCHAR2,
168                      X_Per_Information30                   VARCHAR2,
169                      X_Known_As                            VARCHAR2,
170                      X_Date_Start                          DATE,
171                      X_Start_Life_Reason_Id                VARCHAR2,
172                      X_Date_End                            DATE,
173                      X_End_Life_Reason_Id                  VARCHAR2,
174                      X_Rltd_Per_Rsds_W_Dsgntr_Flag         VARCHAR2,
175                      X_Personal_Flag                       VARCHAR2,
176 		     X_Sequence_Number                     NUMBER,
177                      X_Create_Mirror_Flag                  VARCHAR2,
178                      X_Mirror_Type                         VARCHAR2,
179                      X_Dependent_Flag                      VARCHAR2,
180                      X_Beneficiary_Flag                    VARCHAR2,
181                      X_marital_status       VARCHAR2 default NULL,
182                      X_nationality          VARCHAR2 default NULL,
183                      X_blood_type            VARCHAR2 default NULL,
184                      X_correspondence_language VARCHAR2 default NULL,
185                      X_honors                 VARCHAR2 default NULL,
186                      X_rehire_authorizor      VARCHAR2 default NULL,
187                      X_rehire_recommendation  VARCHAR2 default NULL,
188                      X_resume_exists          VARCHAR2 default NULL,
189                      X_resume_last_updated    DATE default NULL,
190                      X_second_passport_exists VARCHAR2 default NULL,
191                      X_student_status     VARCHAR2 default NULL,
192                      X_date_of_death      DATE default NULL,
193                      X_uses_tobacco_flag  VARCHAR2 default NULL,
194                      X_town_of_birth      VARCHAR2 default NULL,
195                      X_region_of_birth    VARCHAR2 default NULL,
196                      X_country_of_birth   VARCHAR2 default NULL,
197                      X_fast_path_employee VARCHAR2 default NULL,
198                      X_email_address   VARCHAR2 default NULL,
199                      X_fte_capacity    VARCHAR2 default NULL);
200 
201 PROCEDURE Lock_Row(X_Rowid                                  VARCHAR2,
202                    X_Contact_Relationship_Id                NUMBER,
203                    X_Business_Group_Id                      NUMBER,
204                    X_Person_Id                              NUMBER,
205                    X_Contact_Person_Id                      NUMBER,
206                    X_Contact_Type                           VARCHAR2,
207                    X_Comments                               VARCHAR2,
208                    X_Bondholder_Flag                        VARCHAR2,
209                    X_Third_Party_Pay_Flag                   VARCHAR2,
210                    X_Primary_Contact_Flag                   VARCHAR2,
211                    X_Cont_Attribute_Category                VARCHAR2,
212                    X_Cont_Attribute1                        VARCHAR2,
213                    X_Cont_Attribute2                        VARCHAR2,
214                    X_Cont_Attribute3                        VARCHAR2,
215                    X_Cont_Attribute4                        VARCHAR2,
216                    X_Cont_Attribute5                        VARCHAR2,
217                    X_Cont_Attribute6                        VARCHAR2,
218                    X_Cont_Attribute7                        VARCHAR2,
219                    X_Cont_Attribute8                        VARCHAR2,
220                    X_Cont_Attribute9                        VARCHAR2,
221                    X_Cont_Attribute10                       VARCHAR2,
222                    X_Cont_Attribute11                       VARCHAR2,
223                    X_Cont_Attribute12                       VARCHAR2,
224                    X_Cont_Attribute13                       VARCHAR2,
225                    X_Cont_Attribute14                       VARCHAR2,
226                    X_Cont_Attribute15                       VARCHAR2,
227                    X_Cont_Attribute16                       VARCHAR2,
228                    X_Cont_Attribute17                       VARCHAR2,
229                    X_Cont_Attribute18                       VARCHAR2,
230                    X_Cont_Attribute19                       VARCHAR2,
231                    X_Cont_Attribute20                       VARCHAR2,
232                    X_Cont_Information_Category                VARCHAR2,
233                    X_Cont_Information1                        VARCHAR2,
234                    X_Cont_Information2                        VARCHAR2,
235                    X_Cont_Information3                        VARCHAR2,
236                    X_Cont_Information4                        VARCHAR2,
237                    X_Cont_Information5                        VARCHAR2,
238                    X_Cont_Information6                        VARCHAR2,
239                    X_Cont_Information7                        VARCHAR2,
240                    X_Cont_Information8                        VARCHAR2,
241                    X_Cont_Information9                        VARCHAR2,
242                    X_Cont_Information10                       VARCHAR2,
243                    X_Cont_Information11                       VARCHAR2,
244                    X_Cont_Information12                       VARCHAR2,
245                    X_Cont_Information13                       VARCHAR2,
246                    X_Cont_Information14                       VARCHAR2,
247                    X_Cont_Information15                       VARCHAR2,
248                    X_Cont_Information16                       VARCHAR2,
249                    X_Cont_Information17                       VARCHAR2,
250                    X_Cont_Information18                       VARCHAR2,
251                    X_Cont_Information19                       VARCHAR2,
252                    X_Cont_Information20                       VARCHAR2,
256                    X_Per_Information4                    VARCHAR2,
253                    X_Per_Information1                    VARCHAR2,
254                    X_Per_Information2                    VARCHAR2,
255                    X_Per_Information3                    VARCHAR2,
257                    X_Per_Information5                    VARCHAR2,
258                    X_Per_Information6                    VARCHAR2,
259                    X_Per_Information7                    VARCHAR2,
260                    X_Per_Information8                    VARCHAR2,
261                    X_Per_Information9                    VARCHAR2,
262                    X_Per_Information10                   VARCHAR2,
263                    X_Per_Information11                   VARCHAR2,
264                    X_Per_Information12                   VARCHAR2,
265                    X_Per_Information13                   VARCHAR2,
266                    X_Per_Information14                   VARCHAR2,
267                    X_Per_Information15                   VARCHAR2,
268                    X_Per_Information16                   VARCHAR2,
269                    X_Per_Information17                   VARCHAR2,
270                    X_Per_Information18                   VARCHAR2,
271                    X_Per_Information19                   VARCHAR2,
272                    X_Per_Information20                   VARCHAR2,
273                    X_Per_Information21                   VARCHAR2,
274                    X_Per_Information22                   VARCHAR2,
275                    X_Per_Information23                   VARCHAR2,
276                    X_Per_Information24                   VARCHAR2,
277                    X_Per_Information25                   VARCHAR2,
278                    X_Per_Information26                   VARCHAR2,
279                    X_Per_Information27                   VARCHAR2,
280                    X_Per_Information28                   VARCHAR2,
281                    X_Per_Information29                   VARCHAR2,
282                    X_Per_Information30                   VARCHAR2,
283                    X_Known_As                            VARCHAR2,
284                    X_Date_Start                          DATE,
285                    X_Start_Life_Reason_Id                VARCHAR2,
286                    X_Date_End                            DATE,
287                    X_End_Life_Reason_Id                  VARCHAR2,
288                    X_Rltd_Per_Rsds_W_Dsgntr_Flag           VARCHAR2,
289                    X_Personal_Flag                       VARCHAR2,
290 		   X_Sequence_Number                     NUMBER,
291                    X_Dependent_Flag                      VARCHAR2,
292                    X_Beneficiary_Flag                    VARCHAR2);
293 
294 PROCEDURE Update_Row(X_Rowid                               VARCHAR2,
295                      X_Contact_Relationship_Id             NUMBER,
296                      X_Business_Group_Id                   NUMBER,
297                      X_Person_Id                           NUMBER,
298                      X_Contact_Person_Id                   NUMBER,
299                      X_Contact_Type                        VARCHAR2,
300                      X_Comments                            VARCHAR2,
301                      X_Bondholder_Flag                     VARCHAR2,
302                      X_Third_Party_Pay_Flag                VARCHAR2,
303                      X_Primary_Contact_Flag                VARCHAR2,
304                      X_Cont_Attribute_Category             VARCHAR2,
305                      X_Cont_Attribute1                     VARCHAR2,
306                      X_Cont_Attribute2                     VARCHAR2,
307                      X_Cont_Attribute3                     VARCHAR2,
308                      X_Cont_Attribute4                     VARCHAR2,
309                      X_Cont_Attribute5                     VARCHAR2,
310                      X_Cont_Attribute6                     VARCHAR2,
311                      X_Cont_Attribute7                     VARCHAR2,
312                      X_Cont_Attribute8                     VARCHAR2,
313                      X_Cont_Attribute9                     VARCHAR2,
314                      X_Cont_Attribute10                    VARCHAR2,
315                      X_Cont_Attribute11                    VARCHAR2,
316                      X_Cont_Attribute12                    VARCHAR2,
317                      X_Cont_Attribute13                    VARCHAR2,
318                      X_Cont_Attribute14                    VARCHAR2,
319                      X_Cont_Attribute15                    VARCHAR2,
320                      X_Cont_Attribute16                    VARCHAR2,
321                      X_Cont_Attribute17                    VARCHAR2,
322                      X_Cont_Attribute18                    VARCHAR2,
323                      X_Cont_Attribute19                    VARCHAR2,
324                      X_Cont_Attribute20                    VARCHAR2,
325                      X_Cont_Information_Category             VARCHAR2,
326                      X_Cont_Information1                     VARCHAR2,
327                      X_Cont_Information2                     VARCHAR2,
328                      X_Cont_Information3                     VARCHAR2,
329                      X_Cont_Information4                     VARCHAR2,
330                      X_Cont_Information5                     VARCHAR2,
331                      X_Cont_Information6                     VARCHAR2,
332                      X_Cont_Information7                     VARCHAR2,
333                      X_Cont_Information8                     VARCHAR2,
334                      X_Cont_Information9                     VARCHAR2,
335                      X_Cont_Information10                    VARCHAR2,
336                      X_Cont_Information11                    VARCHAR2,
340                      X_Cont_Information15                    VARCHAR2,
337                      X_Cont_Information12                    VARCHAR2,
338                      X_Cont_Information13                    VARCHAR2,
339                      X_Cont_Information14                    VARCHAR2,
341                      X_Cont_Information16                    VARCHAR2,
342                      X_Cont_Information17                    VARCHAR2,
343                      X_Cont_Information18                    VARCHAR2,
344                      X_Cont_Information19                    VARCHAR2,
345                      X_Cont_Information20                    VARCHAR2,
346                      X_Session_Date                        DATE,
347 /*
348                      X_Person_Type_Id                      NUMBER,
349                      X_Last_Name                           VARCHAR2,
350                      X_Comment_Id                          NUMBER,
351                      X_Date_Of_Birth                       DATE,
352                      X_First_Name                          VARCHAR2,
353                      X_Middle_Names                        VARCHAR2,
354                      X_Sex                                 VARCHAR2,
355                      X_Title                               VARCHAR2,
356 		     X_PRE_NAME_ADJUNCT		   	   VARCHAR2,
357 		     X_SUFFIX				   VARCHAR2,
358                      X_Title_Desc                          VARCHAR2,
359                      X_National_identifier                 VARCHAR2,
360                      X_Attribute_Category                  VARCHAR2,
361                      X_Attribute1                          VARCHAR2,
362                      X_Attribute2                          VARCHAR2,
363                      X_Attribute3                          VARCHAR2,
364                      X_Attribute4                          VARCHAR2,
365                      X_Attribute5                          VARCHAR2,
366                      X_Attribute6                          VARCHAR2,
367                      X_Attribute7                          VARCHAR2,
368                      X_Attribute8                          VARCHAR2,
369                      X_Attribute9                          VARCHAR2,
370                      X_Attribute10                         VARCHAR2,
371                      X_Attribute11                         VARCHAR2,
372                      X_Attribute12                         VARCHAR2,
373                      X_Attribute13                         VARCHAR2,
374                      X_Attribute14                         VARCHAR2,
375                      X_Attribute15                         VARCHAR2,
376                      X_Attribute16                         VARCHAR2,
377                      X_Attribute17                         VARCHAR2,
378                      X_Attribute18                         VARCHAR2,
379                      X_Attribute19                         VARCHAR2,
380                      X_Attribute20                         VARCHAR2,
381                      X_Attribute21                         VARCHAR2,
382                      X_Attribute22                         VARCHAR2,
383                      X_Attribute23                         VARCHAR2,
384                      X_Attribute24                         VARCHAR2,
385                      X_Attribute25                         VARCHAR2,
386                      X_Attribute26                         VARCHAR2,
387                      X_Attribute27                         VARCHAR2,
388                      X_Attribute28                         VARCHAR2,
389                      X_Attribute29                         VARCHAR2,
390                      X_Attribute30                         VARCHAR2,
391                      X_Contact_Only                        VARCHAR2,
392                      X_Reentry_Flag                        IN OUT NOCOPY NUMBER,
393                      X_Per_Information1                    VARCHAR2,
394                      X_Per_Information2                    VARCHAR2,
395                      X_Per_Information3                    VARCHAR2,
396                      X_Per_Information4                    VARCHAR2,
397                      X_Per_Information5                    VARCHAR2,
398                      X_Per_Information6                    VARCHAR2,
399                      X_Per_Information7                    VARCHAR2,
400                      X_Per_Information8                    VARCHAR2,
401                      X_Per_Information9                    VARCHAR2,
402                      X_Per_Information10                   VARCHAR2,
403                      X_Per_Information11                   VARCHAR2,
404                      X_Per_Information12                   VARCHAR2,
405                      X_Per_Information13                   VARCHAR2,
406                      X_Per_Information14                   VARCHAR2,
407                      X_Per_Information15                   VARCHAR2,
408                      X_Per_Information16                   VARCHAR2,
409                      X_Per_Information17                   VARCHAR2,
410                      X_Per_Information18                   VARCHAR2,
411                      X_Per_Information19                   VARCHAR2,
412                      X_Per_Information20                   VARCHAR2,
413                      X_Per_Information21                   VARCHAR2,
414                      X_Per_Information22                   VARCHAR2,
415                      X_Per_Information23                   VARCHAR2,
416                      X_Per_Information24                   VARCHAR2,
417                      X_Per_Information25                   VARCHAR2,
418                      X_Per_Information26                   VARCHAR2,
419                      X_Per_Information27                   VARCHAR2,
420                      X_Per_Information28                   VARCHAR2,
424 */
421                      X_Per_Information29                   VARCHAR2,
422                      X_Per_Information30                   VARCHAR2,
423                      X_Known_As                            VARCHAR2,
425                      X_Date_Start                          DATE,
426                      X_Start_Life_Reason_Id                VARCHAR2,
427                      X_Date_End                            DATE,
428                      X_End_Life_Reason_Id                  VARCHAR2,
429                      X_Rltd_Per_Rsds_W_Dsgntr_Flag           VARCHAR2,
430                      X_Personal_Flag                       VARCHAR2,
431 		     X_Sequence_Number                     NUMBER,
432                      X_Dependent_Flag                      VARCHAR2,
433                      X_Beneficiary_Flag                    VARCHAR2
434 );
435 
436 PROCEDURE Update_Contact(X_Business_Group_Id                   NUMBER,
437                      X_Person_Id                           NUMBER,
438                      X_Contact_Person_Id                   NUMBER,
439                      X_Session_Date                        DATE,
440                      X_Person_Type_Id                      NUMBER,
441                      X_Last_Name                           VARCHAR2,
442                      X_Comment_Id                          NUMBER,
443                      X_Date_Of_Birth                       DATE,
444   x_date_of_death       DATE,
445                      X_First_Name                          VARCHAR2,
446                      X_Middle_Names                        VARCHAR2,
447                      X_Sex                                 VARCHAR2,
448                      X_Title                               VARCHAR2,
449                      X_PRE_NAME_ADJUNCT                    VARCHAR2,
450                      X_SUFFIX                              VARCHAR2,
451                      X_Title_Desc                          VARCHAR2,
452                      X_National_Identifier                 VARCHAR2,
453                      X_Attribute_Category                  VARCHAR2,
454                      X_Attribute1                          VARCHAR2,
455                      X_Attribute2                          VARCHAR2,
456                      X_Attribute3                          VARCHAR2,
457                      X_Attribute4                          VARCHAR2,
458                      X_Attribute5                          VARCHAR2,
459                      X_Attribute6                          VARCHAR2,
460                      X_Attribute7                          VARCHAR2,
461                      X_Attribute8                          VARCHAR2,
462                      X_Attribute9                          VARCHAR2,
463                      X_Attribute10                         VARCHAR2,
464                      X_Attribute11                         VARCHAR2,
465                      X_Attribute12                         VARCHAR2,
466                      X_Attribute13                         VARCHAR2,
467                      X_Attribute14                         VARCHAR2,
468                      X_Attribute15                         VARCHAR2,
469                      X_Attribute16                         VARCHAR2,
470                      X_Attribute17                         VARCHAR2,
471                      X_Attribute18                         VARCHAR2,
472                      X_Attribute19                         VARCHAR2,
473                      X_Attribute20                         VARCHAR2,
474                      X_Attribute21                         VARCHAR2,
475                      X_Attribute22                         VARCHAR2,
476                      X_Attribute23                         VARCHAR2,
477                      X_Attribute24                         VARCHAR2,
478                      X_Attribute25                         VARCHAR2,
479                      X_Attribute26                         VARCHAR2,
480                      X_Attribute27                         VARCHAR2,
481                      X_Attribute28                         VARCHAR2,
482                      X_Attribute29                         VARCHAR2,
483                      X_Attribute30                         VARCHAR2,
484                      X_Contact_Only                        VARCHAR2,
485                      X_Reentry_flag                        IN OUT NOCOPY NUMBER,
486                      X_Per_Information_Category             VARCHAR2,
487                      X_Per_Information1                    VARCHAR2,
488                      X_Per_Information2                    VARCHAR2,
489                      X_Per_Information3                    VARCHAR2,
490                      X_Per_Information4                    VARCHAR2,
491                      X_Per_Information5                    VARCHAR2,
492                      X_Per_Information6                    VARCHAR2,
493                      X_Per_Information7                    VARCHAR2,
494                      X_Per_Information8                    VARCHAR2,
495                      X_Per_Information9                    VARCHAR2,
496                      X_Per_Information10                   VARCHAR2,
497                      X_Per_Information11                   VARCHAR2,
498                      X_Per_Information12                   VARCHAR2,
499                      X_Per_Information13                   VARCHAR2,
500                      X_Per_Information14                   VARCHAR2,
501                      X_Per_Information15                   VARCHAR2,
502                      X_Per_Information16                   VARCHAR2,
503                      X_Per_Information17                   VARCHAR2,
504                      X_Per_Information18                   VARCHAR2,
505                      X_Per_Information19                   VARCHAR2,
506                      X_Per_Information20                   VARCHAR2,
510                      X_Per_Information24                   VARCHAR2,
507                      X_Per_Information21                   VARCHAR2,
508                      X_Per_Information22                   VARCHAR2,
509                      X_Per_Information23                   VARCHAR2,
511                      X_Per_Information25                   VARCHAR2,
512                      X_Per_Information26                   VARCHAR2,
513                      X_Per_Information27                   VARCHAR2,
514                      X_Per_Information28                   VARCHAR2,
515                      X_Per_Information29                   VARCHAR2,
516                      X_Per_Information30                   VARCHAR2,
517                      X_Known_As                            VARCHAR2);
518 
519 PROCEDURE Delete_Row(X_Rowid VARCHAR2
520                     ,X_Person_Id NUMBER
521                     ,X_Contact_Person_Id NUMBER
522                     ,X_Contact_Relationship_Id NUMBER
523                     ,X_Date_Start DATE
524                     ,X_Contact_Type VARCHAR2);
525 
526 PROCEDURE Delete_Validation(X_Person_Id NUMBER
527                            ,X_Contact_Relationship_Id NUMBER);
528 
529 FUNCTION Get_Mirror_Contact_Type(p_contact_type VARCHAR2)
530              RETURN VARCHAR2;
531 --
532 PROCEDURE chk_sequence_number(p_contact_relationship_id IN NUMBER,
533                               p_sequence_number IN NUMBER,
534 			      p_contact_person_id IN NUMBER,
535 			      p_person_id IN NUMBER);
536 --
537 FUNCTION time_validation (p_contact_type VARCHAR2,
538                           p_person_id NUMBER,
539                           p_contact_person_id NUMBER,
540                           p_contact_relationship_id NUMBER,
541                           p_date_start DATE,
542                           p_date_end DATE ) RETURN BOOLEAN;
543 -- ---------------------------------------------------------------------------
544 -- |-------------------------------< chk_dates >-----------------------------|
545 -- ---------------------------------------------------------------------------
546 -- {Start Of Comments}
547 --
548 -- Description:
549 --   Accepts contact_relationship_id, date_start, and date_end, and check if
550 --   neither child record with effective_start_date earlier than the given
551 --   date_start exists nor child records with effective_end_date later than
552 --   the given date_end in per_contact_extra_info_f.
553 --
554 -- Prerequisites:
555 --   None.
556 --
557 -- In Parameters:
558 --   Name                       Reqd    Type            Description
559 --   x_contact_relationship_id  Yes     NUMBER          Contact Relationship ID.
560 --   x_date_start               No      DATE            Start Date of the
561 --                                                      relationship.
562 --   x_date_end                 No      DATE            End Date of the
563 --                                                      relationship.
564 --
565 -- Out Parameters:
566 --   None.
567 --
568 -- Post Success:
569 --   The process succeeds.
570 --
571 -- Post Failure:
572 --   The process will be terminated.
573 --
574 -- Developer Implementation Notes:
575 --   None.
576 --
577 -- Access Status:
578 --   Public.
579 --
580 -- {End Of Comments}
581 -- ---------------------------------------------------------------------------
582  PROCEDURE chk_dates(
583   x_contact_relationship_id     IN      per_contact_relationships.contact_relationship_id%TYPE,
584   x_date_start                  IN      per_contact_relationships.date_start%TYPE,
585   x_date_end                    IN      per_contact_relationships.date_end%TYPE);
586 END PER_CONTACT_RELATIONSHIPS_PKG;