org.neodatis.odb.impl.core.transaction
Class LocalSession

java.lang.Object
  extended by org.neodatis.odb.impl.core.transaction.Session
      extended by org.neodatis.odb.impl.core.transaction.LocalSession
All Implemented Interfaces:
java.lang.Comparable, java.util.Observer, ISession
Direct Known Subclasses:
ServerSession

public class LocalSession
extends Session

The session object used when ODB is used in local/embedded mode

Author:
olivier s

Field Summary
 
Fields inherited from class org.neodatis.odb.impl.core.transaction.Session
baseIdentification, cache, id, metaModel, rollbacked, tmpCache
 
Constructor Summary
LocalSession(IStorageEngine engine)
           
LocalSession(IStorageEngine engine, java.lang.String sessionId)
           
 
Method Summary
 ICache buildCache()
           
 ITmpCache buildTmpCache()
           
 void clear()
           
 void commit()
           
 IStorageEngine getStorageEngine()
           
 ITransaction getTransaction()
           
 void rollback()
           
 void setFileSystemInterfaceToApplyTransaction(IFileSystemInterface fsi)
           
 boolean transactionIsPending()
           
 void update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class org.neodatis.odb.impl.core.transaction.Session
addObjectToCache, clearCache, close, compareTo, equals, getBaseIdentification, getCache, getId, getMetaModel, getTmpCache, isRollbacked, removeObjectFromCache, setBaseIdentification, setId, setMetaModel, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalSession

public LocalSession(IStorageEngine engine,
                    java.lang.String sessionId)

LocalSession

public LocalSession(IStorageEngine engine)
Method Detail

setFileSystemInterfaceToApplyTransaction

public void setFileSystemInterfaceToApplyTransaction(IFileSystemInterface fsi)
Specified by:
setFileSystemInterfaceToApplyTransaction in interface ISession
Specified by:
setFileSystemInterfaceToApplyTransaction in class Session

getTransaction

public ITransaction getTransaction()
Specified by:
getTransaction in interface ISession
Specified by:
getTransaction in class Session

transactionIsPending

public boolean transactionIsPending()
Specified by:
transactionIsPending in interface ISession
Specified by:
transactionIsPending in class Session

commit

public void commit()
Specified by:
commit in interface ISession
Specified by:
commit in class Session

rollback

public void rollback()
Specified by:
rollback in interface ISession
Overrides:
rollback in class Session

getStorageEngine

public IStorageEngine getStorageEngine()
Specified by:
getStorageEngine in interface ISession
Specified by:
getStorageEngine in class Session

clear

public void clear()
Specified by:
clear in interface ISession
Overrides:
clear in class Session

buildCache

public ICache buildCache()
Specified by:
buildCache in class Session

buildTmpCache

public ITmpCache buildTmpCache()
Specified by:
buildTmpCache in class Session

update

public void update(java.util.Observable o,
                   java.lang.Object arg)