sbLocalDatabasePropertyCache Class Reference

#include <sbLocalDatabasePropertyCache.h>

Inheritance diagram for sbLocalDatabasePropertyCache:
[legend]
Collaboration diagram for sbLocalDatabasePropertyCache:
[legend]

Public Member Functions

 sbLocalDatabasePropertyCache ()
 
 ~sbLocalDatabasePropertyCache ()
 
nsresult Init (sbLocalDatabaseLibrary *aLibrary, const nsAString &aLibraryResourceGUID)
 
PRBool GetPropertyID (PRUint32 aPropertyDBID, nsAString &aPropertyID)
 
void GetColumnForPropertyID (PRUint32 aPropertyID, nsAString &aColumn)
 
nsresult InvalidateSortDataComplete ()
 
nsresult CreateSecondarySortValue (sbILocalDatabaseResourcePropertyBag *aBag, PRUint32 aPropertyDBID, nsAString &_retval)
 
- Public Member Functions inherited from sbILocalDatabasePropertyCache
void getProperties ([array, size_is(aGUIDArrayCount)] in wstring aGUIDArray, in unsigned long aGUIDArrayCount, out unsigned long aPropertyArrayCount, [retval, array, size_is(aPropertyArrayCount)] out sbILocalDatabaseResourcePropertyBag aPropertyArray)
 
void setProperties ([array, size_is(aGUIDArrayCount)] in wstring aGUIDArray, in unsigned long aGUIDArrayCount, [array, size_is(aPropertyArrayCount)] in sbILocalDatabaseResourcePropertyBag aPropertyArray, in unsigned long aPropertyArrayCount, in boolean aWriteThroughNow)
 
void cacheProperties ([array, size_is(aGUIDArrayCount)] in wstring aGUIDArray, in unsigned long aGUIDArrayCount)
 
void write ()
 
unsigned long getPropertyDBID (in AString aPropertyID)
 
sbIJobProgress invalidateSortData ()
 
void addDependentGUIDArray (in sbLocalDatabaseGUIDArrayPtr aGUIDArray)
 Add a dependent GUID Array. More...
 
void removeDependentGUIDArray (in sbLocalDatabaseGUIDArrayPtr aGUIDArray)
 Remove a dependent GUID Array. More...
 

Public Attributes

NS_DECL_ISUPPORTS
NS_DECL_SBILOCALDATABASEPROPERTYCACHE
NS_DECL_NSIOBSERVER typedef
sbFixedInterfaceCache
< nsStringHashKey,
sbLocalDatabaseResourcePropertyBag
InterfaceCache
 
- Public Attributes inherited from sbILocalDatabasePropertyCache
readonly attribute boolean writePending
 

Static Public Attributes

static PRUint32 const CACHE_SIZE = 1024
 
static PRUint32 const BATCH_READ_SIZE = 128
 

Friends

class sbLocalDatabaseResourcePropertyBag
 
class DirtyPropertyEnumerator
 

Detailed Description

Definition at line 69 of file sbLocalDatabasePropertyCache.h.

Constructor & Destructor Documentation

sbLocalDatabasePropertyCache::sbLocalDatabasePropertyCache ( )
sbLocalDatabasePropertyCache::~sbLocalDatabasePropertyCache ( )

Definition at line 110 of file sbLocalDatabasePropertyCache.cpp.

Member Function Documentation

nsresult sbLocalDatabasePropertyCache::CreateSecondarySortValue ( sbILocalDatabaseResourcePropertyBag aBag,
PRUint32  aPropertyDBID,
nsAString &  _retval 
)

Definition at line 1757 of file sbLocalDatabasePropertyCache.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void sbLocalDatabasePropertyCache::GetColumnForPropertyID ( PRUint32  aPropertyID,
nsAString &  aColumn 
)
PRBool sbLocalDatabasePropertyCache::GetPropertyID ( PRUint32  aPropertyDBID,
nsAString &  aPropertyID 
)

Definition at line 1700 of file sbLocalDatabasePropertyCache.cpp.

Here is the caller graph for this function:

nsresult sbLocalDatabasePropertyCache::Init ( sbLocalDatabaseLibrary aLibrary,
const nsAString &  aLibraryResourceGUID 
)

Definition at line 134 of file sbLocalDatabasePropertyCache.cpp.

Here is the call graph for this function:

nsresult sbLocalDatabasePropertyCache::InvalidateSortDataComplete ( )

Definition at line 1374 of file sbLocalDatabasePropertyCache.cpp.

Friends And Related Function Documentation

friend class DirtyPropertyEnumerator
friend

Definition at line 74 of file sbLocalDatabasePropertyCache.h.

Definition at line 73 of file sbLocalDatabasePropertyCache.h.

Member Data Documentation

PRUint32 const sbLocalDatabasePropertyCache::BATCH_READ_SIZE = 128
static

The number of bags to read at a time

Definition at line 82 of file sbLocalDatabasePropertyCache.h.

PRUint32 const sbLocalDatabasePropertyCache::CACHE_SIZE = 1024
static

The size of our property bag cache

Definition at line 78 of file sbLocalDatabasePropertyCache.h.

NS_DECL_ISUPPORTS NS_DECL_SBILOCALDATABASEPROPERTYCACHE NS_DECL_NSIOBSERVER typedef sbFixedInterfaceCache<nsStringHashKey, sbLocalDatabaseResourcePropertyBag> sbLocalDatabasePropertyCache::InterfaceCache

Definition at line 89 of file sbLocalDatabasePropertyCache.h.


The documentation for this class was generated from the following files: