org.neodatis.odb.impl.core.server.transaction
Class ServerSession

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

public class ServerSession
extends LocalSession


Field Summary
protected  java.util.Map<java.lang.String,OID> classInfoIds
          To keep track of class info creation on server.
protected  OID[] clientIds
          client object ids
protected  OID[] serverIds
          server object ids.
protected  ISessionManager sessionManager
           
protected  java.util.List<ReturnValue> valuesToReturn
           
 
Fields inherited from class org.neodatis.odb.impl.core.transaction.Session
baseIdentification, cache, id, metaModel, rollbacked, tmpCache
 
Constructor Summary
ServerSession(IStorageEngine engine, java.lang.String sessionId)
           
 
Method Summary
 void associateIds(ClientNonNativeObjectInfo cnnoi, OID serverId, OID clientOid)
           
 ICache buildCache()
           
 void clear()
           
 void clearValuesToReturn()
           
 void finalize()
           
 java.util.Map<java.lang.String,OID> getClassInfoIds()
           
 OID[] getClientIds()
           
 MetaModel getMetaModel()
           
 OID[] getServerIds()
           
 java.util.List<ReturnValue> getValuesToReturn()
           
 void resetClassInfoIds()
           
 void setClassInfoId(java.lang.String fullClassName, OID id)
           
 void setClientIds(OID[] clientIds)
           
 void setServerIds(OID[] serverIds)
           
 void update(java.util.Observable o, java.lang.Object value)
           
 
Methods inherited from class org.neodatis.odb.impl.core.transaction.LocalSession
buildTmpCache, commit, getStorageEngine, getTransaction, rollback, setFileSystemInterfaceToApplyTransaction, transactionIsPending
 
Methods inherited from class org.neodatis.odb.impl.core.transaction.Session
addObjectToCache, clearCache, close, compareTo, equals, getBaseIdentification, getCache, getId, getTmpCache, isRollbacked, removeObjectFromCache, setBaseIdentification, setId, setMetaModel, toString
 
Methods inherited from class java.lang.Object
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

clientIds

protected OID[] clientIds
client object ids


serverIds

protected OID[] serverIds
server object ids. The server ids are sent to client as a result of a store operation to enable client to synchronize ids with server


classInfoIds

protected java.util.Map<java.lang.String,OID> classInfoIds
To keep track of class info creation on server. The ids of class info are then sent to client to update their ci ids


valuesToReturn

protected java.util.List<ReturnValue> valuesToReturn

sessionManager

protected ISessionManager sessionManager
Constructor Detail

ServerSession

public ServerSession(IStorageEngine engine,
                     java.lang.String sessionId)
Method Detail

getClientIds

public OID[] getClientIds()

setClientIds

public void setClientIds(OID[] clientIds)

getServerIds

public OID[] getServerIds()

setServerIds

public void setServerIds(OID[] serverIds)

associateIds

public void associateIds(ClientNonNativeObjectInfo cnnoi,
                         OID serverId,
                         OID clientOid)

buildCache

public ICache buildCache()
Overrides:
buildCache in class LocalSession

getMetaModel

public MetaModel getMetaModel()
Specified by:
getMetaModel in interface ISession
Overrides:
getMetaModel in class Session

setClassInfoId

public void setClassInfoId(java.lang.String fullClassName,
                           OID id)

getClassInfoIds

public java.util.Map<java.lang.String,OID> getClassInfoIds()

resetClassInfoIds

public void resetClassInfoIds()

clear

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

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object

update

public void update(java.util.Observable o,
                   java.lang.Object value)
Specified by:
update in interface java.util.Observer
Overrides:
update in class LocalSession

getValuesToReturn

public java.util.List<ReturnValue> getValuesToReturn()

clearValuesToReturn

public void clearValuesToReturn()