SAP ABAP Class CL_SKWF_CONTEXT_CACHE (INTERNAL: Context Cache)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SRV-KPR-DMF (Application Component) Document Management Framework
     SKWF (Package) SAP Knowledge Warehouse Framework
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Inheritance (c INHERITING FROM c_ref)  CL_SKWF_CACHING INTERNAL: Cache Layer Core Functions 20001017
Properties
Class CL_SKWF_CONTEXT_CACHE  
Short Description INTERNAL: Context Cache    
Super Class CL_SKWF_CACHING INTERNAL: Cache Layer Core Functions 
Instantiability of a Class 1  Protected 
Final    
General Data
Message Class    
Program status     
Category 0   
Package SKWF   SAP Knowledge Warehouse Framework 
Created 20000720   SAP 
Last change 20001201   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 CL_ABAP_TABLEDESCR Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
2 SDOKM Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
3 SKWFC Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_SKWF_CONTEXT_CACHE has no interface implemented.
Friends
# Friend Modeled only Created on Description
1 CL_SKWF_CACHING 20001019 INTERNAL: Cache Layer Core Functions
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 C_HIGH_WATER_MARK Constant Private Type reference (TYPE) I 500000 Maximum Cache Size in Bytes 20001017
2 C_LOW_WATER_MARK Constant Private Type reference (TYPE) I 250000 Displacement Size of Cache 20001017
3 C_MINUTES_TO_HALF_ACCESS_COUNT Constant Private Type reference (TYPE) I 180 Number of Hours Before Access Count is Halved 20010110
4 C_SYNC_LATENCY Constant Private Type reference (TYPE) I 15 Sync. Latency Default (Seconds) 20010110
5 C_X_CACHING Constant Private Type reference (TYPE) XFELD 'X' Cache Default 20001017
6 G_CACHE Static Attribute Private Object reference (TYPE REF TO) CL_SKWF_CONTEXT_CACHE Cache Singleton 20001017
7 M_CACHE_ENTRIES Instance attribute Private Type reference (TYPE) AREA_CACHE_TAB_T List of Cache Entries 20001017
Methods
# Method Level Visibility Method type Description Created on
1 ADD_PHIOS_OF_LOIOS Static method Public Method Set Context Resolution in Cache 20001017
2 ADD_PHIOS_OF_LOIOS_OF_AREA Instance method Public Method Set Context Resolution in Cache 20001017
3 CALC_CACHE_SIZE Static method Private Method Determine Size of Cache 20001018
4 CHECK_CACHE_SIZE Instance method Private Method Check Size of Cache and if Necessary Delete Old Entries 20001017
5 CLASS_CONSTRUCTOR Static method Public Constructor CLASS_CONSTRUCTOR 20001017
6 CONSTRUCTOR Instance method Public Constructor Constructor 20001017
7 FIND_AREAS_OF_OBJECTS Static method Private Method Assigns the Cache Area to a List of Objects 20001017
8 GET_CONTEXT_HASHCODE Static method Private Method Calculates a Hash Code from Context Selectors 20001018
9 GET_CONTEXT_ID Static method Private Method Delivers a GUID for Context Hash Code and Selectors 20001017
10 GET_ENTRY_SIZE Static method Private Method Delivers the Size of a Cache Entry 20001018
11 GET_PHIOS_OF_LOIOS Static method Public Method Get Context Resolution from Cache 20001017
12 GET_PHIOS_OF_LOIOS_OF_AREA Instance method Public Method Gets Context Resolution from Cache 20001017
13 INVALIDATE_SUBCLASS_CACHE Static method Protected Method Invalidate Cache for this Subclass 20001017
14 SYNC_DIRTY_CACHES Static method Protected Method Synchronize Cache and DB 20001020
Events
Class CL_SKWF_CONTEXT_CACHE has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 AREA_CACHE_ENTRY_T Private See coding AREA_CACHE_ENTRY_T 20001029
2 AREA_CACHE_TAB_T Private See coding AREA_CACHE_TAB_T 20001029
3 AREA_OBJECT_ENTRY_T Private See coding AREA_OBJECT_ENTRY_T 20001029
4 AREA_OBJECT_TAB_T Private See coding AREA_OBJECT_TAB_T 20001029
5 AREA_TAB_T Private See coding AREA_TAB_T 20001029
6 CACHE_ENTRY_T Private See coding CACHE_ENTRY_T 20001029
7 CACHE_TAB_T Private See coding CACHE_TAB_T 20001029
8 CONTEXT_ENTRY_T Private See coding CONTEXT_ENTRY_T 20001029
9 CONTEXT_TAB_T Private See coding CONTEXT_TAB_T 20001029
Method Signatures

Method ADD_PHIOS_OF_LOIOS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing P_PHIOS_OF_LOIOS Call by reference Type reference (TYPE) SDOKLOGPHYS Liste von Loio/Phio Paaren 20001017
2 Importing P_SELECTORS Call by reference Type reference (TYPE) SDOKCXSELS Liste von Kontextselektoren 20001017
3 Importing P_X_REDUCED_TO_ONE Call by reference Type reference (TYPE) XFELD Ergebnis wurde explizit auf 1Phio reduziert 20001017

Method ADD_PHIOS_OF_LOIOS on class CL_SKWF_CONTEXT_CACHE has no exception.

Method ADD_PHIOS_OF_LOIOS_OF_AREA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing P_AREA Call by reference Type reference (TYPE) SHBUFAREA Cache-Abgrenzung 20001018
2 Importing P_CONTEXT_HASHCODE Call by reference Type reference (TYPE) I Hash-Code für den Context 20001018
3 Importing P_PHIOS_OF_LOIOS Call by reference Type reference (TYPE) SDOKLOGPHYS Liste mit Loio/Phio-Paaren 20001017
4 Importing P_SELECTORS Call by reference Type reference (TYPE) SDOKCXSELS Liste von Kontextselektoren 20001018

Method ADD_PHIOS_OF_LOIOS_OF_AREA on class CL_SKWF_CONTEXT_CACHE has no exception.

Method CALC_CACHE_SIZE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing P_CACHE Call by reference Type reference (TYPE) CACHE_TAB_T Cache-Bereich 20001019
2 Importing P_CONTEXTS Call by reference Type reference (TYPE) CONTEXT_TAB_T Kontext-Tabelle 20001019
3 Changing P_SIZE Call by reference Type reference (TYPE) I Größe beider Segmente 20001019

Method CALC_CACHE_SIZE on class CL_SKWF_CONTEXT_CACHE has no exception.

Method CHECK_CACHE_SIZE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing P_CACHE Call by reference Type reference (TYPE) CACHE_TAB_T Cache-Bereich 20001017
2 Changing P_CONTEXTS Call by reference Type reference (TYPE) CONTEXT_TAB_T Kontext-Tabelle 20001019
3 Importing P_SIZE Call by reference Type reference (TYPE) I Cache-Größe 20001017
# Exception Resumable Description Created on
1 CACHE_SHRINKED Einträge wurden verdrängt 20001017

Method CLASS_CONSTRUCTOR Signature

Method CLASS_CONSTRUCTOR on class CL_SKWF_CONTEXT_CACHE has no parameter.
Method CLASS_CONSTRUCTOR on class CL_SKWF_CONTEXT_CACHE has no exception.

Method CONSTRUCTOR Signature

Method CONSTRUCTOR on class CL_SKWF_CONTEXT_CACHE has no parameter.
Method CONSTRUCTOR on class CL_SKWF_CONTEXT_CACHE has no exception.

Method FIND_AREAS_OF_OBJECTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing P_AREAS Call by reference Type reference (TYPE) AREA_TAB_T Tabelle mit Areas 20001017
2 Changing P_AREA_OBJECTS Call by reference Type reference (TYPE) AREA_OBJECT_TAB_T Tabelle mit IOs und ihrer Cache-Area 20001017
3 Importing P_OBJECTS Call by reference Type reference (TYPE) SDOKOBJECTS Tabelle mit Info Objekten 20001017

Method FIND_AREAS_OF_OBJECTS on class CL_SKWF_CONTEXT_CACHE has no exception.

Method GET_CONTEXT_HASHCODE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning P_CONTEXT_HASHCODE Value transfer Type reference (TYPE) I Kontext-Hashcode 20001018
2 Importing P_REDUCE_TO_ONE Call by reference Type reference (TYPE) XFELD 'X': Explizit auf ein Phio reduziert 20001018
3 Importing P_SELECTORS Call by reference Type reference (TYPE) SDOKCXSELS Liste von Kontextselektoren 20001018

Method GET_CONTEXT_HASHCODE on class CL_SKWF_CONTEXT_CACHE has no exception.

Method GET_CONTEXT_ID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting P_CONTEXT_ID Value transfer Type reference (TYPE) GUID_32 Eindeutige Kontextkennung 20001017
2 Changing P_CONTEXT_TABLE Call by reference Type reference (TYPE) CONTEXT_TAB_T Kontexttabelle 20001018
3 Importing P_HASHCODE Call by reference Type reference (TYPE) I Hashcode 20001018
4 Importing P_SELECTORS Call by reference Type reference (TYPE) SDOKCXSELS Liste von Kontextselektoren 20001017

Method GET_CONTEXT_ID on class CL_SKWF_CONTEXT_CACHE has no exception.

Method GET_ENTRY_SIZE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting P_CACHE_ENTRY_SIZE Call by reference Type reference (TYPE) I Eintragsgröße des Datencaches 20001018
2 Exporting P_CONTEXT_ENTRY_SIZE Value transfer Type reference (TYPE) I Eintragsgröße des Kontextcache 20001018

Method GET_ENTRY_SIZE on class CL_SKWF_CONTEXT_CACHE has no exception.

Method GET_PHIOS_OF_LOIOS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing P_LOIOS Call by reference Type reference (TYPE) SDOKOBJECTS Liste der Loios 20001017
2 Changing P_LOIOS_NOT_HANDLED Call by reference Type reference (TYPE) SDOKOBJECTS Liste unbearbeiteter Loios 20001017
3 Changing P_PHIOS_OF_LOIOS Call by reference Type reference (TYPE) SDOKLOGPHYS Liste mit Loio/Phio-Paaren 20001017
4 Importing P_SELECTORS Call by reference Type reference (TYPE) SDOKCXSELS Liste von Kontextselektoren 20001017
5 Importing P_X_REDUCE_TO_ONE Call by reference Type reference (TYPE) XFELD Feld zum Ankreuzen 20001017

Method GET_PHIOS_OF_LOIOS on class CL_SKWF_CONTEXT_CACHE has no exception.

Method GET_PHIOS_OF_LOIOS_OF_AREA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing P_AREA Call by reference Type reference (TYPE) SHBUFAREA Cache-Abgrenzung 20001017
2 Importing P_CONTEXT_HASHCODE Call by reference Type reference (TYPE) I Has-Code des Context 20001018
3 Importing P_LOIOS Call by reference Type reference (TYPE) SDOKOBJECTS Liste der Loios 20001017
4 Changing P_LOIOS_NOT_HANDLED Call by reference Type reference (TYPE) SDOKOBJECTS Liste unbearbeiteter Loios 20001017
5 Changing P_PHIOS_OF_LOIOS Call by reference Type reference (TYPE) SDOKLOGPHYS Liste mit Loio/Phio-Paaren 20001017
6 Importing P_SELECTORS Call by reference Type reference (TYPE) SDOKCXSELS Liste von Kontextselektoren 20001018

Method GET_PHIOS_OF_LOIOS_OF_AREA on class CL_SKWF_CONTEXT_CACHE has no exception.

Method INVALIDATE_SUBCLASS_CACHE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing P_CHANGED_FOLDERS Call by reference Type reference (TYPE) SKWF_IOS Verzeichnisse mit geändertem Inhalt 20001017
2 Importing P_CHANGED_OBJECTS Call by reference Type reference (TYPE) SKWF_IOS Objektliste 20001017
3 Importing P_DELETED_OBJECTS Call by reference Type reference (TYPE) SKWF_IOS Objektliste 20001017

Method INVALIDATE_SUBCLASS_CACHE on class CL_SKWF_CONTEXT_CACHE has no exception.

Method SYNC_DIRTY_CACHES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing P_X_FORCE Call by reference Type reference (TYPE) XFELD Unabhängig von Latenz abgleichen 20001020
2 Importing P_X_NO_LOCK Call by reference Type reference (TYPE) XFELD Keine Sperren setzen (muß außerhalb geschehen!) 20001020

Method SYNC_DIRTY_CACHES on class CL_SKWF_CONTEXT_CACHE has no exception.
History
Last changed by/on SAP  20001201 
SAP Release Created in 50A