#include <ExtensionDB.h>
Public Member Functions | |
| OsStatus | store () |
| int | getRowCount () const |
| Count rows in table. | |
| UtlBoolean | insertRow (const UtlHashMap &nvPairs) |
| UtlBoolean | insertRow (const Url &uri, const UtlString &extension) |
| UtlBoolean | removeRow (const Url &uri) |
| void | removeAllRows () |
| void | getAllRows (ResultSet &rResultSet) const |
| UtlBoolean | getExtension (const Url &uri, UtlString &rExtension) const |
| UtlBoolean | getUri (const UtlString &extension, Url &rUri) const |
| bool | isLoaded () |
Static Public Member Functions | |
| static ExtensionDB * | getInstance (const UtlString &name="extension") |
| 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 () |
| ExtensionDB (const UtlString &name) | |
Protected Attributes | |
| dbDatabase * | m_pFastDB |
| UtlString | mDatabaseName |
| bool | mTableLoaded |
Static Protected Attributes | |
| static ExtensionDB * | spInstance = NULL |
| static OsMutex | sLockMutex |
| static UtlString | gUriKey |
| static UtlString | gExtensionKey |
Private Member Functions | |
| virtual | ~ExtensionDB () |
| Virtual Destructor. | |
| ExtensionDB | ( | const UtlString & | name | ) | [protected] |
| ~ExtensionDB | ( | ) | [private, virtual] |
Virtual Destructor.
| ExtensionDB * getInstance | ( | const UtlString & | name = "extension" |
) | [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 & | uri, | |
| const UtlString & | extension | |||
| ) |
| UtlBoolean removeRow | ( | const Url & | uri | ) |
| void removeAllRows | ( | ) |
| void getAllRows | ( | ResultSet & | rResultSet | ) | const |
| UtlBoolean getExtension | ( | const Url & | uri, | |
| UtlString & | rExtension | |||
| ) | const |
| UtlBoolean getUri | ( | const UtlString & | extension, | |
| Url & | rUri | |||
| ) | const |
| bool isLoaded | ( | ) |
| OsStatus load | ( | ) | [protected] |
const UtlString sXmlNamespace [static] |
ExtensionDB * spInstance = NULL [static, protected] |
OsMutex sLockMutex [static, protected] |
UtlString gExtensionKey [static, protected] |
dbDatabase* m_pFastDB [protected] |
UtlString mDatabaseName [protected] |
bool mTableLoaded [protected] |