Package com.db4o.cs.internal
Class ClientObjectContainer
- java.lang.Object
-
- com.db4o.internal.ObjectContainerBase
-
- com.db4o.internal.ExternalObjectContainer
-
- com.db4o.cs.internal.ClientObjectContainer
-
- All Implemented Interfaces:
BlobTransport,ClientMessageDispatcher,MessageDispatcher,ExtClient,ExtObjectContainer,InternalObjectContainer,ObjectContainerSpec,Internal4,ObjectContainer,TransientClass
public class ClientObjectContainer extends ExternalObjectContainer implements ExtClient, BlobTransport, ClientMessageDispatcher
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceClientObjectContainer.MessageListener
-
Field Summary
Fields Modifier and Type Field Description protected boolean_doFinalize-
Fields inherited from class com.db4o.internal.ObjectContainerBase
_blockConverter, _classCollection, _config, _handlers, _lock, _timeStampIdGenerator, _transaction
-
-
Constructor Summary
Constructors Constructor Description ClientObjectContainer(ClientConfiguration config, Socket4Adapter socket, java.lang.String user, java.lang.String password, boolean login)ClientObjectContainer(ClientConfigurationImpl config, Socket4Adapter socket, java.lang.String user, java.lang.String password, boolean login)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToBatch(Msg msg)protected booleanapplyRenames(Config4Impl config)voidbackup(Storage targetStorage, java.lang.String path)backs up a database file of an open ObjectContainer.voidbackupSync(Storage targetStorage, java.lang.String path)backs up a database file of an open ObjectContainer.byteblockSize()voidblockSize(int size)ClassMetadataclassMetadataForID(int clazzId)ClassMetadataclassMetadataForReflectClass(ReflectClass claxx)intclassMetadataIdForName(java.lang.String name)QueryResultclassOnlyQuery(QQueryBase query, ClassMetadata clazz)protected voidclose2()protected voidcloseIdSystem()voidcloseTransaction(Transaction transaction, boolean isSystemTransaction, boolean rollbackOnClose)voidcommit1(Transaction trans)voidcommitReplication(long replicationRecordId, long timestamp)intconverterVersion()booleancreateClassMetadata(ClassMetadata clazz, ReflectClass claxx, ClassMetadata superClazz)longcurrentVersion()protected java.lang.StringdefaultToString()booleandelete4(Transaction ta, ObjectReference yo, java.lang.Object obj, int a_cascade, boolean userCall)voiddeleteBlobFile(Transaction trans, BlobImpl blob)booleandetectSchemaChanges()protected booleandoFinalize()QueryResultexecuteQuery(QQuery query)MsgexpectedResponse(Msg expectedMessage)protected voidfatalStorageShutdown()<T> QLin<T>from(java.lang.Class<T> clazz)HardObjectReferencegetHardReferenceBySignature(Transaction trans, long uuid, byte[] signature)long[]getIDsForClass(Transaction trans, ClassMetadata clazz)MsggetResponse()may return null, if no message is returned.protected booleanhasShutDownHook()Db4oDatabaseidentity()returns the Db4oDatabase object for this ObjectContainer.intidForNewUserObject(Transaction trans)FixedSizeIntIterator4idIteratorFor(Transaction trans, ByteArrayBuffer reader)intinstanceCount(ClassMetadata clazz, Transaction trans)booleanisAlive()checks if the client is currently connected to a server.booleanisClient()overridden in ClientObjectContainer The method allows checking whether will make it easier to refactor than an "instanceof YapClient" check.booleanisDeleted(Transaction trans, int id)booleanisMessageDispatcherAlive()booleanmaintainsIndices()ClientMessageDispatchermessageDispatcher()voidmessageListener(ClientObjectContainer.MessageListener listener)booleanneedsLockFileThread()EventRegistryImplnewEventRegistry()AbstractQueryResultnewQueryResult(Transaction trans, QueryEvaluationMode mode)TransactionnewTransaction(Transaction parentTransaction, ReferenceSystem referenceSystem, boolean isSystemTransaction)voidonCommittedListenerAdded()protected voidopenImpl()ObjectContaineropenSession()opens a new ObjectContainer on top of this ObjectContainer.java.lang.ObjectpeekPersisted(Transaction trans, java.lang.Object obj, ActivationDepth depth, boolean committed)AbstractQueryResultqueryAllObjects(Transaction trans)voidraiseCommitTimestamp(long a_minimumVersion)voidreadBlobFrom(Transaction trans, BlobImpl blob)ByteArrayBufferreadBufferById(Transaction a_ta, int a_id)ByteArrayBufferreadBufferById(Transaction transaction, int id, boolean lastCommitted)voidreadBytes(byte[] a_bytes, int a_address, int a_length)voidreadBytes(byte[] bytes, int address, int addressOffset, int length)ByteArrayBuffer[]readObjectSlots(Transaction transaction, int[] ids)ByteArrayBuffer[]readSlotBuffers(Transaction transaction, int[] ids)StatefulBufferreadStatefulBufferById(Transaction a_ta, int a_id)StatefulBufferreadStatefulBufferById(Transaction a_ta, int a_id, boolean lastCommitted)protected voidrefreshInternal(Transaction trans, java.lang.Object obj, int depth)voidreleaseSemaphore(Transaction trans, java.lang.String name)voidreleaseSemaphore(java.lang.String name)releases a semaphore, if the calling transaction is the owner.voidreleaseSemaphores(Transaction ta)voidreserve(int byteCount)voidrollback1(Transaction trans)voidsend(java.lang.Object obj)intserverSideID()voidsetDirtyInSystemTransaction(PersistentBase a_object)voidsetDispatcherName(java.lang.String name)booleansetSemaphore(Transaction trans, java.lang.String name, int timeout)booleansetSemaphore(java.lang.String name, int timeout)attempts to set a semaphore.voidshutdown()protected voidshutdownDataStorage()Socket4Adaptersocket()voidstoreAll(Transaction transaction, Iterator4 objects)SystemInfosystemInfo()returns theSystemInfofor this ObjectContainer.java.lang.StringuserName()booleanwrite(Msg msg)voidwriteBatchedMessage(Msg msg)voidwriteBatchedMessages()voidwriteBlobTo(Transaction trans, BlobImpl blob)voidwriteDirtyClassMetadata()booleanwriteMessageToSocket(Msg msg)voidwriteMsg(Msg msg, boolean flush)voidwriteNew(Transaction trans, Pointer4 pointer, ClassMetadata classMetadata, ByteArrayBuffer buffer)voidwriteUpdate(Transaction trans, Pointer4 pointer, ClassMetadata classMetadata, ArrayType arrayType, ByteArrayBuffer buffer)-
Methods inherited from class com.db4o.internal.ExternalObjectContainer
activate, activate, bind, commit, deactivate, deactivate, delete, descend, ext, getByID, getByUUID, getID, getObjectInfo, inCallback, isActive, isCached, isStored, peekPersisted, purge, query, query, query, query, queryByExample, refresh, rollback, store, store, storedClass, storedClasses
-
Methods inherited from class com.db4o.internal.ObjectContainerBase
activate, activate, activationContextFor, activationDepthProvider, asTopLevelCall, backup, backupSync, bind, bind2, blockConverter, callbacks, callbacks, checkClosed, checkReadOnly, checkStillToSet, checkTransaction, checkTransaction, classCollection, classMetadataForName, classMetadataForObject, close, closeSystemTransaction, closeUserTransaction, commit, commitTimestampIndex, config, configImpl, configure, container, createBlockConverter, createReferenceSystem, createStatefulBuffer, createStringIO, db4oTypeStored, deactivate, deactivate, decryptedBufferByAddress, defaultActivationDepth, delete, delete1, delete2, deleteByID, dispatchsEvents, environment, fatalShutdown, finalize, flagAsHandled, generateTimeStampId, generateTransactionTimestamp, getActivatedObjectFromCache, getByID, getByID2, getByUUID, getHardObjectReferenceById, getID, getNativeQueryHandler, getObjectInfo, handledInCurrentTopLevelCall, handleExceptionOnClose, handlers, initalizeWeakReferenceSupport, initialize1, initializeClassMetadataRepository, initializePostOpenExcludingTransportObjectContainer, initializeTransactions, isCached, isClosed, isStored, knownClasses, lock, logMsg, needsUpdate, newSystemTransaction, newUserTransaction, newWeakReference, open, peekPersisted, peekReference, produceClassMetadata, purge, purge, query, query, query, query, query, queryByExample, rawBufferByAddress, readActivatedObjectNotInCache, readWriterByAddress, referenceSystemRegistry, reflector, refresh, replaceClassMetadataRepository, replicationCallState, rollback, showInternalClasses, shutdownObjectContainer, stackDepth, stackDepth, stillToActivate, stillToDeactivate, stopSession, store, store, store2, storeAfterReplication, storeAll, storeByNewReplication, storedClass, storedClasses, storeInternal, storeInternal, stringIO, syncExec, systemTransaction, threadPool, topLevelCallId, topLevelCallId, toString, transaction, tryGetByID, typeHandlerForClass, typeHandlerForClassMetadataID, updateDepthProvider, useDefaultTransactionTimestamp, uUIDIndex, version, versionIndex, withEnvironment, withTransaction
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.db4o.ext.ExtObjectContainer
activate, backup, backupSync, bind, configure, deactivate, descend, getByID, getByUUID, getID, getObjectInfo, isActive, isCached, isClosed, isStored, knownClasses, lock, peekPersisted, purge, purge, reflector, refresh, store, storedClass, storedClasses, version
-
Methods inherited from interface com.db4o.cs.internal.messages.MessageDispatcher
close
-
Methods inherited from interface com.db4o.ObjectContainer
activate, close, commit, deactivate, delete, ext, query, query, query, query, query, queryByExample, rollback, store
-
-
-
-
Constructor Detail
-
ClientObjectContainer
public ClientObjectContainer(ClientConfiguration config, Socket4Adapter socket, java.lang.String user, java.lang.String password, boolean login)
-
ClientObjectContainer
public ClientObjectContainer(ClientConfigurationImpl config, Socket4Adapter socket, java.lang.String user, java.lang.String password, boolean login)
-
-
Method Detail
-
openImpl
protected final void openImpl()
- Specified by:
openImplin classObjectContainerBase
-
backup
public void backup(Storage targetStorage, java.lang.String path) throws NotSupportedException
Description copied from interface:ExtObjectContainerbacks up a database file of an open ObjectContainer.
While the backup is running, the ObjectContainer can continue to be used. Changes that are made while the backup is in progress, will be applied to the open ObjectContainer and to the backup.
While the backup is running, the ObjectContainer should not be closed.
Note that this is designed to run as a background process: To avoid harming performance of concurrently active database operations, it tries to leave room for other threads as much as possible and thus will be orders of magnitude slower than a regular file copy. If you are looking for a faster backup (that will block all other database operations), useExtObjectContainer.backupSync(Storage, String)instead.
If a file already exists at the specified path, it will be overwritten.
This method is intended for cross-storage backups, i.e. backup from an in-memory database to a file.- Specified by:
backupin interfaceExtObjectContainer- Specified by:
backupin classExternalObjectContainer- Parameters:
targetStorage- theStorageto be used for backuppath- a fully qualified path- Throws:
NotSupportedException- is thrown when the operation is not supported in current configuration/environment
-
backupSync
public void backupSync(Storage targetStorage, java.lang.String path) throws NotSupportedException
Description copied from interface:ExtObjectContainerbacks up a database file of an open ObjectContainer. While the backup is running, the ObjectContainer should not be closed.
Note that this blocks all other concurrently active database operations for the full duration of the backup. If you intend to run a backup as a less intrusive background process concurrently with other database operations, useExtObjectContainer.backup(Storage, String)instead.
If a file already exists at the specified path, it will be overwritten.
This method can be used for cross-storage backups, i.e. backup from an in-memory database to a file.- Specified by:
backupSyncin interfaceExtObjectContainer- Specified by:
backupSyncin classExternalObjectContainer- Parameters:
targetStorage- theStorageto be used for backuppath- a fully qualified path- Throws:
NotSupportedException- is thrown when the operation is not supported in current configuration/environment
-
closeTransaction
public void closeTransaction(Transaction transaction, boolean isSystemTransaction, boolean rollbackOnClose)
- Specified by:
closeTransactionin classObjectContainerBase
-
reserve
public void reserve(int byteCount)
- Specified by:
reservein classObjectContainerBase
-
blockSize
public byte blockSize()
- Specified by:
blockSizein classObjectContainerBase
-
close2
protected void close2()
- Specified by:
close2in classObjectContainerBase
-
commit1
public final void commit1(Transaction trans)
- Specified by:
commit1in classObjectContainerBase
-
converterVersion
public int converterVersion()
- Specified by:
converterVersionin classObjectContainerBase
-
newQueryResult
public AbstractQueryResult newQueryResult(Transaction trans, QueryEvaluationMode mode)
- Specified by:
newQueryResultin classObjectContainerBase
-
newTransaction
public final Transaction newTransaction(Transaction parentTransaction, ReferenceSystem referenceSystem, boolean isSystemTransaction)
- Specified by:
newTransactionin classObjectContainerBase
-
createClassMetadata
public boolean createClassMetadata(ClassMetadata clazz, ReflectClass claxx, ClassMetadata superClazz)
- Overrides:
createClassMetadatain classObjectContainerBase
-
currentVersion
public long currentVersion()
- Specified by:
currentVersionin classObjectContainerBase
-
delete4
public final boolean delete4(Transaction ta, ObjectReference yo, java.lang.Object obj, int a_cascade, boolean userCall)
- Specified by:
delete4in classObjectContainerBase
-
detectSchemaChanges
public boolean detectSchemaChanges()
- Overrides:
detectSchemaChangesin classObjectContainerBase
-
doFinalize
protected boolean doFinalize()
- Overrides:
doFinalizein classObjectContainerBase
-
queryAllObjects
public AbstractQueryResult queryAllObjects(Transaction trans)
- Specified by:
queryAllObjectsin classObjectContainerBase
-
getHardReferenceBySignature
public final HardObjectReference getHardReferenceBySignature(Transaction trans, long uuid, byte[] signature)
- Overrides:
getHardReferenceBySignaturein classObjectContainerBase
-
getResponse
public Msg getResponse()
may return null, if no message is returned. Error handling is weak and should ideally be able to trigger some sort of state listener (connection dead) on the client.
-
isMessageDispatcherAlive
public boolean isMessageDispatcherAlive()
- Specified by:
isMessageDispatcherAlivein interfaceMessageDispatcher
-
classMetadataForID
public ClassMetadata classMetadataForID(int clazzId)
- Specified by:
classMetadataForIDin interfaceInternalObjectContainer- Overrides:
classMetadataForIDin classObjectContainerBase
-
needsLockFileThread
public boolean needsLockFileThread()
- Overrides:
needsLockFileThreadin classObjectContainerBase
-
hasShutDownHook
protected boolean hasShutDownHook()
- Overrides:
hasShutDownHookin classObjectContainerBase
-
identity
public Db4oDatabase identity()
Description copied from interface:ExtObjectContainerreturns the Db4oDatabase object for this ObjectContainer.- Specified by:
identityin interfaceExtObjectContainer- Specified by:
identityin classExternalObjectContainer- Returns:
- the Db4oDatabase identity object for this ObjectContainer.
-
isClient
public boolean isClient()
Description copied from class:ObjectContainerBaseoverridden in ClientObjectContainer The method allows checking whether will make it easier to refactor than an "instanceof YapClient" check.- Specified by:
isClientin interfaceInternalObjectContainer- Overrides:
isClientin classObjectContainerBase
-
maintainsIndices
public boolean maintainsIndices()
- Overrides:
maintainsIndicesin classObjectContainerBase
-
idForNewUserObject
public final int idForNewUserObject(Transaction trans)
- Specified by:
idForNewUserObjectin classObjectContainerBase
-
raiseCommitTimestamp
public void raiseCommitTimestamp(long a_minimumVersion)
- Specified by:
raiseCommitTimestampin classObjectContainerBase
-
readBytes
public void readBytes(byte[] bytes, int address, int addressOffset, int length)- Specified by:
readBytesin classObjectContainerBase
-
readBytes
public void readBytes(byte[] a_bytes, int a_address, int a_length)- Specified by:
readBytesin classObjectContainerBase
-
applyRenames
protected boolean applyRenames(Config4Impl config)
- Overrides:
applyRenamesin classObjectContainerBase
-
readStatefulBufferById
public final StatefulBuffer readStatefulBufferById(Transaction a_ta, int a_id)
- Specified by:
readStatefulBufferByIdin classObjectContainerBase
-
readStatefulBufferById
public final StatefulBuffer readStatefulBufferById(Transaction a_ta, int a_id, boolean lastCommitted)
- Specified by:
readStatefulBufferByIdin classObjectContainerBase
-
peekPersisted
public java.lang.Object peekPersisted(Transaction trans, java.lang.Object obj, ActivationDepth depth, boolean committed) throws DatabaseClosedException
- Overrides:
peekPersistedin classObjectContainerBase- Throws:
DatabaseClosedException
-
refreshInternal
protected void refreshInternal(Transaction trans, java.lang.Object obj, int depth)
- Overrides:
refreshInternalin classObjectContainerBase
-
readSlotBuffers
public final ByteArrayBuffer[] readSlotBuffers(Transaction transaction, int[] ids)
- Specified by:
readSlotBuffersin classObjectContainerBase
-
readObjectSlots
public final ByteArrayBuffer[] readObjectSlots(Transaction transaction, int[] ids)
-
readBufferById
public final ByteArrayBuffer readBufferById(Transaction transaction, int id, boolean lastCommitted)
- Specified by:
readBufferByIdin classObjectContainerBase
-
readBufferById
public final ByteArrayBuffer readBufferById(Transaction a_ta, int a_id)
- Specified by:
readBufferByIdin classObjectContainerBase
-
idIteratorFor
public FixedSizeIntIterator4 idIteratorFor(Transaction trans, ByteArrayBuffer reader)
-
releaseSemaphore
public void releaseSemaphore(Transaction trans, java.lang.String name)
- Specified by:
releaseSemaphorein classObjectContainerBase
-
releaseSemaphore
public void releaseSemaphore(java.lang.String name)
Description copied from interface:ExtObjectContainerreleases a semaphore, if the calling transaction is the owner.- Specified by:
releaseSemaphorein interfaceExtObjectContainer- Specified by:
releaseSemaphorein classObjectContainerBase- Parameters:
name- the name of the semaphore to be released.
-
releaseSemaphores
public void releaseSemaphores(Transaction ta)
- Specified by:
releaseSemaphoresin classObjectContainerBase
-
rollback1
public final void rollback1(Transaction trans)
- Specified by:
rollback1in classObjectContainerBase
-
send
public void send(java.lang.Object obj)
- Overrides:
sendin classObjectContainerBase
-
setDirtyInSystemTransaction
public final void setDirtyInSystemTransaction(PersistentBase a_object)
- Specified by:
setDirtyInSystemTransactionin classObjectContainerBase
-
setSemaphore
public boolean setSemaphore(Transaction trans, java.lang.String name, int timeout)
- Specified by:
setSemaphorein classObjectContainerBase
-
setSemaphore
public boolean setSemaphore(java.lang.String name, int timeout)Description copied from interface:ExtObjectContainerattempts to set a semaphore.
Semaphores are transient multi-purpose named flags forObjectContainers.
A transaction that successfully sets a semaphore becomes the owner of the semaphore. Semaphores can only be owned by a single transaction at one point in time.
This method returns true, if the transaction already owned the semaphore before the method call or if it successfully acquires ownership of the semaphore.
The waitForAvailability parameter allows to specify a time in milliseconds to wait for other transactions to release the semaphore, in case the semaphore is already owned by another transaction.
Semaphores are released by the first occurrence of one of the following:
- the transaction releases the semaphore withExtObjectContainer.releaseSemaphore(java.lang.String)
- the transaction is closed withObjectContainer.close()
- C/S only: the correspondingObjectServeris closed.
- C/S only: the clientObjectContainerlooses the connection and is timed out.
Semaphores are set immediately. They are independant of callingObjectContainer.commit()orObjectContainer.rollback().
Possible use cases for semaphores:
- prevent other clients from inserting a singleton at the same time. A suggested name for the semaphore: "SINGLETON_" + Object#getClass().getName().
- lock objects. A suggested name: "LOCK_" +getID(Object)
- generate a unique client ID. A suggested name: "CLIENT_" + System.currentTimeMillis().- Specified by:
setSemaphorein interfaceExtObjectContainer- Specified by:
setSemaphorein classObjectContainerBase- Parameters:
name- the name of the semaphore to be settimeout- the time in milliseconds to wait for other transactions to release the semaphore. The parameter may be zero, if the method is to return immediately.- Returns:
- boolean flag
true, if the semaphore could be set or if the calling transaction already owned the semaphore.
false, if the semaphore is owned by another transaction.
-
defaultToString
protected java.lang.String defaultToString()
- Specified by:
defaultToStringin classObjectContainerBase
-
shutdown
public void shutdown()
- Specified by:
shutdownin classObjectContainerBase
-
writeDirtyClassMetadata
public final void writeDirtyClassMetadata()
- Specified by:
writeDirtyClassMetadatain classObjectContainerBase
-
write
public final boolean write(Msg msg)
- Specified by:
writein interfaceMessageDispatcher
-
writeBatchedMessage
public final void writeBatchedMessage(Msg msg)
-
writeMsg
public final void writeMsg(Msg msg, boolean flush)
-
writeMessageToSocket
public boolean writeMessageToSocket(Msg msg)
-
writeNew
public final void writeNew(Transaction trans, Pointer4 pointer, ClassMetadata classMetadata, ByteArrayBuffer buffer)
- Specified by:
writeNewin classObjectContainerBase
-
writeUpdate
public final void writeUpdate(Transaction trans, Pointer4 pointer, ClassMetadata classMetadata, ArrayType arrayType, ByteArrayBuffer buffer)
- Specified by:
writeUpdatein classObjectContainerBase
-
isAlive
public boolean isAlive()
Description copied from interface:ExtClientchecks if the client is currently connected to a server.
-
socket
public Socket4Adapter socket()
-
systemInfo
public SystemInfo systemInfo()
Description copied from interface:ExtObjectContainerreturns theSystemInfofor this ObjectContainer.
TheSystemInfosupplies methods that provide information about system state and system settings of this ObjectContainer.- Specified by:
systemInfoin interfaceExtObjectContainer- Specified by:
systemInfoin classObjectContainerBase- Returns:
- the
SystemInfofor this ObjectContainer.
-
writeBlobTo
public void writeBlobTo(Transaction trans, BlobImpl blob) throws java.io.IOException
- Specified by:
writeBlobToin interfaceBlobTransport- Throws:
java.io.IOException
-
readBlobFrom
public void readBlobFrom(Transaction trans, BlobImpl blob) throws java.io.IOException
- Specified by:
readBlobFromin interfaceBlobTransport- Throws:
java.io.IOException
-
deleteBlobFile
public void deleteBlobFile(Transaction trans, BlobImpl blob)
- Specified by:
deleteBlobFilein interfaceBlobTransport
-
getIDsForClass
public long[] getIDsForClass(Transaction trans, ClassMetadata clazz)
- Specified by:
getIDsForClassin classObjectContainerBase
-
classOnlyQuery
public QueryResult classOnlyQuery(QQueryBase query, ClassMetadata clazz)
- Specified by:
classOnlyQueryin classObjectContainerBase
-
executeQuery
public QueryResult executeQuery(QQuery query)
- Specified by:
executeQueryin classObjectContainerBase
-
writeBatchedMessages
public final void writeBatchedMessages()
-
addToBatch
public final void addToBatch(Msg msg)
-
shutdownDataStorage
protected void shutdownDataStorage()
- Specified by:
shutdownDataStoragein classObjectContainerBase
-
setDispatcherName
public void setDispatcherName(java.lang.String name)
-
messageDispatcher
public ClientMessageDispatcher messageDispatcher()
-
onCommittedListenerAdded
public void onCommittedListenerAdded()
-
classMetadataForReflectClass
public ClassMetadata classMetadataForReflectClass(ReflectClass claxx)
- Specified by:
classMetadataForReflectClassin interfaceInternalObjectContainer- Overrides:
classMetadataForReflectClassin classObjectContainerBase
-
classMetadataIdForName
public int classMetadataIdForName(java.lang.String name)
- Overrides:
classMetadataIdForNamein classObjectContainerBase
-
instanceCount
public int instanceCount(ClassMetadata clazz, Transaction trans)
- Specified by:
instanceCountin interfaceInternalObjectContainer
-
messageListener
public void messageListener(ClientObjectContainer.MessageListener listener)
-
storeAll
public void storeAll(Transaction transaction, Iterator4 objects)
- Specified by:
storeAllin interfaceInternalObjectContainer- Overrides:
storeAllin classObjectContainerBase
-
fatalStorageShutdown
protected void fatalStorageShutdown()
- Specified by:
fatalStorageShutdownin classObjectContainerBase
-
userName
public java.lang.String userName()
-
isDeleted
public boolean isDeleted(Transaction trans, int id)
- Specified by:
isDeletedin classObjectContainerBase
-
blockSize
public void blockSize(int size)
- Specified by:
blockSizein classObjectContainerBase
-
closeIdSystem
protected void closeIdSystem()
- Specified by:
closeIdSystemin classObjectContainerBase
-
openSession
public ObjectContainer openSession()
Description copied from interface:ExtObjectContaineropens a new ObjectContainer on top of this ObjectContainer. The ObjectContainer will have it's own transaction and it's own reference system.- Specified by:
openSessionin interfaceExtObjectContainer- Returns:
- the new ObjectContainer session.
-
serverSideID
public int serverSideID()
-
newEventRegistry
public EventRegistryImpl newEventRegistry()
- Specified by:
newEventRegistryin interfaceInternalObjectContainer
-
from
public <T> QLin<T> from(java.lang.Class<T> clazz)
-
commitReplication
public void commitReplication(long replicationRecordId, long timestamp)
-
-