sparksee.Session Class Reference

Session class. More...

List of all members.

Public Member Functions

def rollback
 Rollbacks a transaction.
def begin_update
 Begins an update transaction.
def is_closed
 Gets if Session instance has been closed or not.
def new_query
 Creates a new Query.
def commit
 Commits a transaction.
def get_graph
 Gets the Graph instance.
def close
 Closes the Session instance.
def begin
 Begins a transaction.
def new_objects
 Creates a new Objects instance.

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

def sparksee.Session.is_closed (   self  ) 

Gets if Session instance has been closed or not.

See also:
TRUE if the Session instance has been closed, FALSE otherwise.

def sparksee.Session.get_graph (   self  ) 

Gets the Graph instance.

The Graph instance.

def sparksee.Session.close (   self  ) 

Closes the Session instance.

It must be called to ensure the integrity of all data.

def sparksee.Session.new_objects (   self  ) 

Creates a new Objects instance.

The new Objects instance.

Generated on Tue Jun 2 16:12:19 2015 for SparkseePython by  doxygen 1.5.6