#include <CallerAliasDB.h>
Public Member Functions | |
| int | getRowCount () const |
| Count rows in table. | |
| void | insertRow (const UtlString identity, const UtlString domain, const UtlString alias) |
| Add a single mapping to the database. | |
| bool | getCallerAlias (const UtlString &identity, const UtlString &domain, UtlString &callerAlias) const |
| Get the caller alias for this combination of caller identity and target domain. | |
| void | removeAllRows () |
| OsStatus | store () |
| bool | isLoaded () |
Static Public Member Functions | |
| static CallerAliasDB * | getInstance (const UtlString &name=DbName) |
| static void | releaseInstance () |
| releaseInstance - cleans up the singleton (for use at exit) | |
Static Public Attributes | |
| static const UtlString | DbName |
Protected Member Functions | |
| OsStatus | load () |
| void | getAllRows (ResultSet &rResultSet) const |
| Utility method for dumping all rows. | |
| CallerAliasDB (const UtlString &name) | |
Protected Attributes | |
| dbDatabase * | mpFastDB |
| UtlString | mDatabaseName |
| bool | mTableLoaded |
Static Protected Attributes | |
| static dbDatabase * | spDBInstance |
| static CallerAliasDB * | spInstance = NULL |
| static OsMutex | sLockMutex |
| static const UtlString | IdentityKey |
| static const UtlString | DomainKey |
| static const UtlString | AliasKey |
| static const UtlString | sType |
| static const UtlString | sXmlNamespace |
Private Member Functions | |
| ~CallerAliasDB () | |
| No destructor, no no no. | |
Static Private Attributes | |
| static UtlString | nullString |
| CallerAliasDB | ( | const UtlString & | name | ) | [protected] |
| ~CallerAliasDB | ( | ) | [private] |
No destructor, no no no.
| CallerAliasDB * getInstance | ( | const UtlString & | name = DbName |
) | [static] |
| void releaseInstance | ( | ) | [static] |
releaseInstance - cleans up the singleton (for use at exit)
| int getRowCount | ( | ) | const |
Count rows in table.
Add a single mapping to the database.
The identity value may be the null string; this is a wildcard entry that matches any caller to the given domain.
| identity | identity of caller in 'user' form (no scheme) |
| domain | domain and optional port for target ( 'example.com' or 'example.com:5099' ) |
| alias | returned alias |
| bool getCallerAlias | ( | const UtlString & | identity, | |
| const UtlString & | domain, | |||
| UtlString & | callerAlias | |||
| ) | const |
Get the caller alias for this combination of caller identity and target domain.
| identity | identity of caller in 'user' form (no scheme) |
| domain | domain and optional port for target ( 'example.com' or 'example.com:5099' ) |
| callerAlias | returned alias |
| void removeAllRows | ( | ) |
| OsStatus store | ( | ) |
| bool isLoaded | ( | ) |
| OsStatus load | ( | ) | [protected] |
| void getAllRows | ( | ResultSet & | rResultSet | ) | const [protected] |
Utility method for dumping all rows.
dbDatabase* spDBInstance [static, protected] |
dbDatabase* mpFastDB [protected] |
CallerAliasDB * spInstance = NULL [static, protected] |
OsMutex sLockMutex [static, protected] |
UtlString mDatabaseName [protected] |
const UtlString IdentityKey [static, protected] |
const UtlString sXmlNamespace [static, protected] |
bool mTableLoaded [protected] |
UtlString nullString [static, private] |