Session Class Reference

Session class. More...

Inheritance diagram for Session:

Inheritance graph
Collaboration diagram for Session:

Collaboration graph

List of all members.

Public Member Functions

virtual ~Session ()
GraphGetGraph ()
 Gets the Graph instance.
ObjectsNewObjects ()
 Creates a new Objects instance.
void Begin ()
 Begins a transaction.
void BeginUpdate ()
 Begins an update transaction.
void Commit ()
 Commits a transaction.
void Rollback ()
 Rollbacks a transaction.
QueryNewQuery ()
 Creates a new Query.


class Database
class Graph
class Objects
class ObjectsIterator
class Values
class ValuesIterator
class TextStream

Detailed Description

Session class.

A Session is a stateful period of activity of a user with the Database.

All the manipulation of a Database must be enclosed into a Session. A Session can be initiated from a Database instance and allows for getting a Graph instance which represents the persistent graph (the graph database).

Also, temporary data is associated to the Session, thus when a Session is closed, all the temporary data associated to the Session is removed too. Objects or Values instances or even session attributes are an example of temporary data.

Moreover, a Session is exclusive for a thread, thus if it is shared among threads results may be fatal or unexpected.

Check out the 'Processing' and 'Transactions' sections in the SPARKSEE User Manual for details about how Sessions work and the use of transactions.

Sparsity Technologies

Member Function Documentation

Graph* Session::GetGraph (  ) 

Gets the Graph instance.

The Graph instance.

Objects* Session::NewObjects (  ) 

Creates a new Objects instance.

The new Objects instance.

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

Generated on Tue Jun 2 13:44:23 2015 for Sparksee by  doxygen 1.5.6