#include <voidCacheItem.h>
Public Member Functions | |
VoidCacheItem (VoidCache &cache, const PersIdentification &persId, DatabaseObject &obj, bool isNew) | |
virtual DatabaseObject & | getObject () |
virtual CacheLock & | addLock (bool rdonly) |
Adds lock to the object. | |
virtual void | rmLock () |
virtual void | unlock () |
Unlocks the item, but doesn't remove it from the cache. |
iopc::VoidCacheItem::VoidCacheItem | ( | VoidCache & | cache, | |
const PersIdentification & | persId, | |||
DatabaseObject & | obj, | |||
bool | isNew | |||
) |
cache | Owner of the item being created. |
DatabaseObject & iopc::VoidCacheItem::getObject | ( | ) | [virtual] |
Returns the object.
Implements iopc::CacheLock.
CacheLock & iopc::VoidCacheItem::addLock | ( | bool | rdonly | ) | [virtual] |
Adds lock to the object.
rdonly | Specifies type of lock to be added. |
Implements iopc::CacheLock.
void iopc::VoidCacheItem::rmLock | ( | ) | [virtual] |
Removes one lock.
Implements iopc::CacheLock.
void iopc::VoidCacheItem::unlock | ( | ) | [virtual] |
Unlocks the item, but doesn't remove it from the cache.
Don't call this method directly. Used by the VoidCache.