DBA Data[Home] [Help]

PACKAGE: SYS.OWA_OPT_LOCK

Source


1 package OWA_OPT_LOCK
2 as
3 
4 	type vcArray is table of varchar2(2000) index by binary_integer;
5 
6 	pragma restrict_references( owa_opt_lock, wnds, rnds, wnps, rnps );
7 
8 	/* Function to calculate checksum values */
9 	function checksum( p_buff in varchar2 ) return number;
10 	pragma restrict_references( checksum, wnds, rnds, wnps, rnps );
11 
12 	function checksum( p_owner in varchar2,
13 					   p_tname in varchar2,
14 					   p_rowid in rowid ) return number;
15 
16 	/* Procedures to store and verify row values for optimistic locking */
17 	procedure store_values( p_owner in varchar2,
18 						     p_tname in varchar2,
19 						     p_rowid in rowid );
20 
21 	function verify_values( p_old_values in vcArray ) return boolean;
22 
23 	function get_rowid( p_old_values in vcArray ) return rowid;
24 	pragma restrict_references( get_rowid, wnds, rnds, wnps, rnps );
25 
26 end;