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

java.lang.Object
  extended by org.neodatis.odb.impl.core.transaction.Session
      extended by org.neodatis.odb.impl.core.transaction.ClientSession
All Implemented Interfaces:
java.lang.Comparable, java.util.Observer, ISession

public class ClientSession
extends Session

The client session when ODB is used in client server mode

Author:
olivier s

Field Summary
protected  IStorageEngine engine
           
 
Fields inherited from class org.neodatis.odb.impl.core.transaction.Session
baseIdentification, cache, id, metaModel, rollbacked, tmpCache
 
Constructor Summary
ClientSession(IStorageEngine engine)
           
 
Method Summary
 ICache buildCache()
           
 ITmpCache buildTmpCache()
           
 void clear()
           
 void clearCache()
           
 void close()
           
 void commit()
           
 ICache getCache()
           
 IStorageEngine getStorageEngine()
           
 ITransaction getTransaction()
           
 boolean isRollbacked()
           
 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, compareTo, equals, getBaseIdentification, getId, getMetaModel, getTmpCache, removeObjectFromCache, setBaseIdentification, setId, setMetaModel, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

engine

protected IStorageEngine engine
Constructor Detail

ClientSession

public ClientSession(IStorageEngine engine)
Method Detail

getCache

public ICache getCache()
Specified by:
getCache in interface ISession
Overrides:
getCache 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

close

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

clearCache

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

isRollbacked

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

clear

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

getStorageEngine

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

transactionIsPending

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

getTransaction

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

setFileSystemInterfaceToApplyTransaction

public void setFileSystemInterfaceToApplyTransaction(IFileSystemInterface fsi)
Specified by:
setFileSystemInterfaceToApplyTransaction in interface ISession
Specified by:
setFileSystemInterfaceToApplyTransaction 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)