Dataquay::CacheingPropertyObject Class Reference

Helper class for managing properties of an object URI -- that is, triples that share a common subject and possibly a common prefix for the predicate -- with a demand-populated cache. More...

#include <PropertyObject.h>

List of all members.

Public Member Functions

 CacheingPropertyObject (Store *s, QUrl myUri)
 CacheingPropertyObject (Store *s, QString myUri)
 CacheingPropertyObject (Store *s, QString propertyPrefix, QUrl myUri)
 CacheingPropertyObject (Store *s, QString propertyPrefix, QString myUri)
bool hasProperty (QString name) const
bool hasProperty (Transaction *tx, QString name) const
QVariant getProperty (QString name) const
QVariant getProperty (Transaction *tx, QString name) const
void setProperty (Transaction *tx, QString name, QVariant value)
void removeProperty (Transaction *tx, QString name)
StoregetStore (Transaction *tx) const
QUrl getPropertyUri (QString name) const


Detailed Description

Helper class for managing properties of an object URI -- that is, triples that share a common subject and possibly a common prefix for the predicate -- with a demand-populated cache.

This class is usually faster than PropertyObject as it avoids datastore access, but it can only be used in contexts where it is known that no other agent may be modifying the same set of properties.

Definition at line 212 of file PropertyObject.h.


Constructor & Destructor Documentation

Dataquay::CacheingPropertyObject::CacheingPropertyObject ( Store s,
QUrl  myUri 
)

Definition at line 141 of file PropertyObject.cpp.

Dataquay::CacheingPropertyObject::CacheingPropertyObject ( Store s,
QString  myUri 
)

Definition at line 146 of file PropertyObject.cpp.

Dataquay::CacheingPropertyObject::CacheingPropertyObject ( Store s,
QString  propertyPrefix,
QUrl  myUri 
)

Definition at line 151 of file PropertyObject.cpp.

Dataquay::CacheingPropertyObject::CacheingPropertyObject ( Store s,
QString  propertyPrefix,
QString  myUri 
)

Definition at line 156 of file PropertyObject.cpp.


Member Function Documentation

bool Dataquay::CacheingPropertyObject::hasProperty ( QString  name  )  const

Definition at line 162 of file PropertyObject.cpp.

References Dataquay::PropertyObject::hasProperty().

bool Dataquay::CacheingPropertyObject::hasProperty ( Transaction tx,
QString  name 
) const

Definition at line 168 of file PropertyObject.cpp.

References Dataquay::PropertyObject::hasProperty().

QVariant Dataquay::CacheingPropertyObject::getProperty ( QString  name  )  const

Definition at line 174 of file PropertyObject.cpp.

References Dataquay::PropertyObject::getProperty().

QVariant Dataquay::CacheingPropertyObject::getProperty ( Transaction tx,
QString  name 
) const

Definition at line 186 of file PropertyObject.cpp.

References Dataquay::PropertyObject::getProperty().

void Dataquay::CacheingPropertyObject::setProperty ( Transaction tx,
QString  name,
QVariant  value 
)

Definition at line 198 of file PropertyObject.cpp.

References Dataquay::PropertyObject::setProperty().

void Dataquay::CacheingPropertyObject::removeProperty ( Transaction tx,
QString  name 
)

Definition at line 205 of file PropertyObject.cpp.

References Dataquay::PropertyObject::removeProperty().

Store * Dataquay::CacheingPropertyObject::getStore ( Transaction tx  )  const

Definition at line 212 of file PropertyObject.cpp.

References Dataquay::PropertyObject::getStore().

QUrl Dataquay::CacheingPropertyObject::getPropertyUri ( QString  name  )  const

Definition at line 218 of file PropertyObject.cpp.

References Dataquay::PropertyObject::getPropertyUri().


The documentation for this class was generated from the following files:

Generated on Thu Sep 24 23:19:48 2009 for Dataquay by  doxygen 1.5.7.1