#include <KeyValueStore.h>

Public Member Functions | |
| virtual | ~KeyValueStore () | 
| virtual StringBuffer | readPropertyValue (const char *prop) const =0 | 
| virtual int | setPropertyValue (const char *prop, const char *value)=0 | 
| virtual int | removeProperty (const char *prop)=0 | 
| virtual Enumeration & | getProperties () const =0 | 
| virtual int | save ()=0 | 
This class defines the common methods that have to be specialized by implementation on filesystem, registry, db...
Definition at line 57 of file KeyValueStore.h.
| virtual KeyValueStore::~KeyValueStore | ( | ) |  [inline, virtual] | 
        
Virtual destructor
Definition at line 64 of file KeyValueStore.h.
| virtual Enumeration& KeyValueStore::getProperties | ( | ) |  const [pure virtual] | 
        
Get all the properties that are currently defined.
Implemented in ArrayListKeyValueStore.
| virtual StringBuffer KeyValueStore::readPropertyValue | ( | const char * | prop | ) |  const [pure virtual] | 
        
Returns the value of the given property
| prop | - the property name | 
Implemented in ArrayListKeyValueStore.
| virtual int KeyValueStore::removeProperty | ( | const char * | prop | ) |  [pure virtual] | 
        
Remove a certain property
| prop | the name of the property which is to be removed | 
Implemented in ArrayListKeyValueStore.
| virtual int KeyValueStore::save | ( | ) |  [pure virtual] | 
        
Ensure that all properties are stored persistently. If setting a property led to an error earlier, this call will indicate the failure.
Implemented in ArrayListKeyValueStore, and PropertyFile.
| virtual int KeyValueStore::setPropertyValue | ( | const char * | prop, | |
| const char * | value | |||
| ) |  [pure virtual] | 
        
Sets a property value.
The value might be cached inside the implementation of this interface. To ensure that it is stored persistently and to do error checking, call save().
| prop | - the property name | |
| value | - the property value (zero terminated string) | 
Implemented in ArrayListKeyValueStore.
 1.5.7.1