#include <UserStaticDB.h>
Public Member Functions | |
| OsStatus | store () |
| int | getRowCount () const |
| Count rows in table. | |
| UtlBoolean | insertRow (const UtlHashMap &nvPairs) |
| UtlBoolean | insertRow (const Url &identity, const UtlString &event, const UtlString &contact, const UtlString &from_uri, const UtlString &to_uri, const UtlString &callid) |
| UtlBoolean | removeRow (const Url &identity) |
| void | removeAllRows () |
| void | getAllRows (ResultSet &rResultSet) const |
| UtlBoolean | getStaticContact (const UtlString &identityStr, const UtlString &eventStr, UtlString &contact, UtlString &from_uri, UtlString &to_uri, UtlString &callid) const |
| bool | isLoaded () |
Static Public Member Functions | |
| static UserStaticDB * | getInstance (const UtlString &name="userstatic") |
| 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 () |
| UserStaticDB (const UtlString &name) | |
Protected Attributes | |
| dbDatabase * | m_pFastDB |
| UtlString | mDatabaseName |
| bool | mTableLoaded |
Static Protected Attributes | |
| static UserStaticDB * | spInstance = NULL |
| static OsMutex | sLockMutex |
| static UtlString | gIdentityKey |
| static UtlString | gEventKey |
| static UtlString | gContactKey |
| static UtlString | gFromUriKey |
| static UtlString | gToUriKey |
| static UtlString | gCallidKey |
Private Member Functions | |
| virtual | ~UserStaticDB () |
| Virtual Destructor. | |
| UserStaticDB | ( | const UtlString & | name | ) | [protected] |
| ~UserStaticDB | ( | ) | [private, virtual] |
Virtual Destructor.
| UserStaticDB * getInstance | ( | const UtlString & | name = "userstatic" |
) | [static] |
Singleton Accessor.
| 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 & | identity, | |
| const UtlString & | event, | |||
| const UtlString & | contact, | |||
| const UtlString & | from_uri, | |||
| const UtlString & | to_uri, | |||
| const UtlString & | callid | |||
| ) |
| UtlBoolean removeRow | ( | const Url & | identity | ) |
| void removeAllRows | ( | ) |
| void getAllRows | ( | ResultSet & | rResultSet | ) | const |
| UtlBoolean getStaticContact | ( | const UtlString & | identityStr, | |
| const UtlString & | eventStr, | |||
| UtlString & | contact, | |||
| UtlString & | from_uri, | |||
| UtlString & | to_uri, | |||
| UtlString & | callid | |||
| ) | const |
| bool isLoaded | ( | ) |
| OsStatus load | ( | ) | [protected] |
const UtlString sXmlNamespace [static] |
UserStaticDB * spInstance = NULL [static, protected] |
OsMutex sLockMutex [static, protected] |
UtlString gIdentityKey [static, protected] |
UtlString gContactKey [static, protected] |
UtlString gFromUriKey [static, protected] |
UtlString gCallidKey [static, protected] |
dbDatabase* m_pFastDB [protected] |
UtlString mDatabaseName [protected] |
bool mTableLoaded [protected] |