AliasDB Class Reference

#include <AliasDB.h>

List of all members.


Detailed Description

This class implements the Alias database abstract class.

Public Member Functions

OsStatus store ()
int getRowCount () const
 Count rows in table.
UtlBoolean insertRow (const UtlHashMap &nvPairs)
UtlBoolean insertRow (const Url &aliasIdentity, const Url &contact, bool updateContact=FALSE)
UtlBoolean removeRow (const Url &aliasIdentity)
void removeAllRows ()
void getAllRows (ResultSet &rResultSet) const
void getContacts (const Url &aliasIdentity, ResultSet &rResultSet) const
void getAliases (const Url &contactIdentity, ResultSet &rResultSet) const
bool isLoaded ()

Static Public Member Functions

static AliasDBgetInstance (const UtlString &name="alias")
 Singleton Accessor.
static void releaseInstance ()
 releaseInstance - cleans up the singleton (for use at exit)

Static Public Attributes

static const UtlString sType
static const UtlString sXmlNamespace

Protected Member Functions

OsStatus load ()
 AliasDB (const UtlString &name)

Protected Attributes

dbDatabasem_pFastDB
UtlString mDatabaseName
bool mTableLoaded

Static Protected Attributes

static AliasDBspInstance = NULL
static OsMutex sLockMutex
static UtlString gIdentityKey
static UtlString gContactKey

Private Member Functions

virtual ~AliasDB ()
 Virtual Destructor.

Constructor & Destructor Documentation

AliasDB ( const UtlString name  )  [protected]

~AliasDB (  )  [private, virtual]

Virtual Destructor.


Member Function Documentation

AliasDB * getInstance ( const UtlString name = "alias"  )  [static]

Singleton Accessor.

Returns:

void releaseInstance (  )  [static]

releaseInstance - cleans up the singleton (for use at exit)

OsStatus store (  ) 

int getRowCount (  )  const

Count rows in table.

UtlBoolean insertRow ( const UtlHashMap nvPairs  ) 

UtlBoolean insertRow ( const Url aliasIdentity,
const Url contact,
bool  updateContact = FALSE 
)

UtlBoolean removeRow ( const Url aliasIdentity  ) 

void removeAllRows (  ) 

void getAllRows ( ResultSet rResultSet  )  const

void getContacts ( const Url aliasIdentity,
ResultSet rResultSet 
) const

void getAliases ( const Url contactIdentity,
ResultSet rResultSet 
) const

bool isLoaded (  ) 

OsStatus load (  )  [protected]


Member Data Documentation

const UtlString sType [static]

const UtlString sXmlNamespace [static]

AliasDB * spInstance = NULL [static, protected]

OsMutex sLockMutex [static, protected]

UtlString gIdentityKey [static, protected]

UtlString gContactKey [static, protected]

dbDatabase* m_pFastDB [protected]

UtlString mDatabaseName [protected]

bool mTableLoaded [protected]


Online Library Docs

sipXecs home page

Version 4.2.1-018930 2010-07-31T01:13:23 build16 abuild