#include <arcCacheItem.h>
Public Types | |
enum | State { ST_BORN, ST_ADULT, ST_DOOMED, ST_ZOMBIE, ST_BUSY, ST_HIST } |
Public Member Functions | |
DatabaseObject & | getObject () |
CacheLock & | addLock (bool rdonly) |
Adds lock to the object. | |
void | rmLock () |
void | replaceObject (DatabaseObject *obj) |
void | remove () |
void | addNext (ArcCacheItem &item) |
void | addPrev (ArcCacheItem &item) |
void | release () |
void | setFrequent (bool frequent=true) |
bool | isFrequent () |
Public Attributes | |
ArcCacheBase * | cache |
PersIdentification | persId |
DatabaseObject * | objectPtr |
State | state |
ArcCacheItem * | next |
ArcCacheItem * | prev |
TimeStamp | timeStamp |
bool | frequent |
Enumeration of item states.
ST_BORN | An object without persistent copy. |
ST_ADULT | An object with persistent copy. |
ST_DOOMED | DatabaseObject scheduled for deletion. |
ST_ZOMBIE | Remnant of an item. |
ST_BUSY | Item being processed. |
ST_HIST | History record. |
DatabaseObject & iopc::ArcCacheItem::getObject | ( | ) | [virtual] |
Returns the object.
Implements iopc::CacheLock.
CacheLock & iopc::ArcCacheItem::addLock | ( | bool | rdonly | ) | [virtual] |
Adds lock to the object.
rdonly | Specifies type of lock to be added. |
Implements iopc::CacheLock.
void iopc::ArcCacheItem::rmLock | ( | ) | [virtual] |
Removes one lock.
Implements iopc::CacheLock.
void iopc::ArcCacheItem::replaceObject | ( | DatabaseObject * | obj | ) |
Replaces the object represented by the item.
void iopc::ArcCacheItem::remove | ( | ) |
Removes item from list.
void iopc::ArcCacheItem::addNext | ( | ArcCacheItem & | item | ) |
Appends an item.
void iopc::ArcCacheItem::addPrev | ( | ArcCacheItem & | item | ) |
Prepends an item.
void iopc::ArcCacheItem::release | ( | ) |
Releases the object being represented by the item.
void iopc::ArcCacheItem::setFrequent | ( | bool | frequent = true |
) |
Set frequency/recency.
bool iopc::ArcCacheItem::isFrequent | ( | ) |
Inspect frequency/recency.
Owner of the item.
ID of the object.
The object represented by the item.
State of the item.
Next item.
Previous item.
Time of the last access to the item.
indicates, whether item was accessed more than once (whether is frequent xor recent).