UserLocationDB Class Reference

#include <UserLocationDB.h>

List of all members.


Detailed Description

The user location database contains a set of rows, each one mapping a user identity to a location.

As an example, this database is consulted by the Fallback redirect plug-in to provide location-based gateway selection.

Public Member Functions

OsStatus store ()
int getRowCount () const
 Count rows in table.
UtlBoolean insertRow (const Url &identityUri, const UtlString &location)
UtlBoolean insertRow (const UtlHashMap &nvPairs)
void getLocations (const UtlString &identityString, ResultSet &rResultset) const
void getIdentities (const UtlString &location, ResultSet &rResultset) const
UtlBoolean hasLocation (const UtlString &identitystring) const
UtlBoolean removeRow (const Url &identityUri, const UtlString &location)
void removeRows (const Url &identityUri)
void removeAllRows ()
void getAllRows (ResultSet &rResultset) const
bool isLoaded ()

Static Public Member Functions

static UserLocationDBgetInstance (const UtlString &name="userlocation")
 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 ()
 UserLocationDB (const UtlString &name)

Protected Attributes

dbDatabasem_pFastDB
UtlString mDatabaseName
bool mTableLoaded

Static Protected Attributes

static UserLocationDBspInstance = NULL
static OsMutex sLockMutex
static UtlString gIdentityKey
static UtlString gLocationKey

Private Member Functions

virtual ~UserLocationDB ()
 Virtual Destructor.


Constructor & Destructor Documentation

UserLocationDB ( const UtlString name  )  [protected]

~UserLocationDB (  )  [private, virtual]

Virtual Destructor.


Member Function Documentation

UserLocationDB * getInstance ( const UtlString name = "userlocation"  )  [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 Url identityUri,
const UtlString location 
)

UtlBoolean insertRow ( const UtlHashMap nvPairs  ) 

void getLocations ( const UtlString identityString,
ResultSet rResultset 
) const

void getIdentities ( const UtlString location,
ResultSet rResultset 
) const

UtlBoolean hasLocation ( const UtlString identitystring  )  const

UtlBoolean removeRow ( const Url identityUri,
const UtlString location 
)

void removeRows ( const Url identityUri  ) 

void removeAllRows (  ) 

void getAllRows ( ResultSet rResultset  )  const

bool isLoaded (  ) 

OsStatus load (  )  [protected]


Member Data Documentation

const UtlString sType [static]

const UtlString sXmlNamespace [static]

UserLocationDB * spInstance = NULL [static, protected]

OsMutex sLockMutex [static, protected]

UtlString gIdentityKey [static, protected]

UtlString gLocationKey [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