Public Member Functions | |
BlockingSQLiteKeyValueStore (const StringBuffer &table, const StringBuffer &colKey, const StringBuffer &colValue, const StringBuffer &path) | |
virtual Enumeration & | getProperties () |
Get all the properties that are currently defined. | |
virtual int | close () |
Ensure that all properties are stored persistently. | |
virtual int | removeAllProperties () |
Ensure that all properties are stored persistently. | |
Private Member Functions | |
virtual Enumeration & | query (const StringBuffer &sql) const |
virtual int | execute (const StringBuffer &sql) |
virtual bool | enumeration_hasMoreElement () |
virtual ArrayElement * | enumeration_getNextElement () |
Private Attributes | |
sem_t | sema |
sem_t | sema_save |
virtual int BlockingSQLiteKeyValueStore::close | ( | ) | [inline, virtual] |
Ensure that all properties are stored persistently.
If setting a property led to an error earlier, this call will indicate the failure.
Reimplemented from SQLiteKeyValueStore.
virtual int BlockingSQLiteKeyValueStore::removeAllProperties | ( | ) | [inline, virtual] |
Ensure that all properties are stored persistently.
If setting a property led to an error earlier, this call will indicate the failure.
int 0 on success, an error code otherwise
Reimplemented from SQLKeyValueStore.