4: /*-------------------+
5: | Type declarations |
6: |-------------------*/
7:
8: -- Table of anydata that stores the application object to be cached
9: Type WF_OBJECTS_T is table of ANYDATA index by binary_integer;
10:
11: -- Internal table that maintains the age for each of the
12: Type WF_OBJECTS_HASHVAL_T is table of number index by binary_integer;
5: | Type declarations |
6: |-------------------*/
7:
8: -- Table of anydata that stores the application object to be cached
9: Type WF_OBJECTS_T is table of ANYDATA index by binary_integer;
10:
11: -- Internal table that maintains the age for each of the
12: Type WF_OBJECTS_HASHVAL_T is table of number index by binary_integer;
13:
60: function IsCacheCreated(p_cache_index in number)
61: return boolean;
62:
63: -- SetObject
64: -- This procedure helps to store an object of type ANYDATA within a cache
65: -- that was previously created with CreateCache. The object is stored
66: -- within a PLSQL table under a subscript that is a hash value generated
67: -- from the object key.
68: -- For example,
69: -- If an event object is to be cached whose name is oracle.apps.vj.test,
70: -- a hash value is generated for event name oracle.apps.vj.test and the object
71: -- is stored under that location within the PLSQL table.
72: procedure SetObject(p_cache_index in number,
73: p_object in anydata,
74: p_object_key in varchar2);
75:
76: -- GetObject
77: -- This procedure returns ANYDATA object from a given cache for a given
73: p_object in anydata,
74: p_object_key in varchar2);
75:
76: -- GetObject
77: -- This procedure returns ANYDATA object from a given cache for a given
78: -- object cache.
79: function GetObject(p_cache_index in number,
80: p_object_key in varchar2)
81: return anyData;
77: -- This procedure returns ANYDATA object from a given cache for a given
78: -- object cache.
79: function GetObject(p_cache_index in number,
80: p_object_key in varchar2)
81: return anyData;
82:
83: -- GetAllObjects
84: -- This procedure returns all the ANYDATA objects cached under a given cache
85: function GetAllObjects(p_cache_index in number)
80: p_object_key in varchar2)
81: return anyData;
82:
83: -- GetAllObjects
84: -- This procedure returns all the ANYDATA objects cached under a given cache
85: function GetAllObjects(p_cache_index in number)
86: return wf_objects_t;
87:
88: -- Clear