org.neodatis.odb.impl.core.server.transaction
Class ServerSession
java.lang.Object
org.neodatis.odb.impl.core.transaction.Session
org.neodatis.odb.impl.core.transaction.LocalSession
org.neodatis.odb.impl.core.server.transaction.ServerSession
- All Implemented Interfaces:
- java.lang.Comparable, java.util.Observer, ISession
public class ServerSession
- extends LocalSession
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 |
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
ServerSession
public ServerSession(IStorageEngine engine,
java.lang.String sessionId)
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()