Package com.db4o.internal
Class LocalTransaction
- java.lang.Object
-
- com.db4o.internal.Transaction
-
- com.db4o.internal.LocalTransaction
-
public class LocalTransaction extends Transaction
-
-
Field Summary
Fields Modifier and Type Field Description protected LocalObjectContainer
_file
-
Fields inherited from class com.db4o.internal.Transaction
_systemTransaction
-
-
Constructor Summary
Constructors Constructor Description LocalTransaction(ObjectContainerBase container, Transaction parentTransaction, TransactionalIdSystem idSystem, ReferenceSystem referenceSystem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clear()
void
commit()
void
commit(CommittedCallbackDispatcher dispatcher)
CommitTimestampSupport
commitTimestampSupport()
java.util.List<java.lang.Long>
concurrentReplicationTimestamps()
Config4Impl
config()
void
enlist(TransactionParticipant participant)
void
flushFile()
ObjectInfo
frozenReferenceFor(int id)
long
generateTransactionTimestamp(long forcedTimeStamp)
TransactionalIdSystem
idSystem()
LazyObjectReference
lazyReferenceFor(int id)
LocalObjectContainer
localContainer()
void
notifyAboutOtherReplicationCommit(long replicationVersion, java.util.List<java.lang.Long> concurrentTimestamps)
void
postOpen()
void
processDeletes()
void
rollback()
long
timestamp()
void
useDefaultTransactionTimestamp()
long
versionForId(int id)
void
writeUpdateAdjustIndexes(int id, ClassMetadata clazz, ArrayType typeInfo)
-
Methods inherited from class com.db4o.internal.Transaction
addNewReference, addTransactionListener, checkSynchronization, clearAll, close, commitReferenceSystem, commitTransactionListeners, container, context, delete, discardReferenceSystem, dontDelete, get, isSystemTransaction, objectContainer, objectForIdFromCache, parentTransaction, postCommit, referenceForId, referenceForObject, referenceSystem, reflector, removeObjectFromReferenceSystem, removeReference, rollbackReferenceSystem, rollBackTransactionListeners, setOutSideRepresentation, systemTransaction, toString, traverseDelete, wrap
-
-
-
-
Field Detail
-
_file
protected final LocalObjectContainer _file
-
-
Constructor Detail
-
LocalTransaction
public LocalTransaction(ObjectContainerBase container, Transaction parentTransaction, TransactionalIdSystem idSystem, ReferenceSystem referenceSystem)
-
-
Method Detail
-
config
public Config4Impl config()
-
localContainer
public LocalObjectContainer localContainer()
-
commit
public void commit()
- Specified by:
commit
in classTransaction
-
commit
public void commit(CommittedCallbackDispatcher dispatcher)
-
enlist
public void enlist(TransactionParticipant participant)
-
clear
protected void clear()
- Specified by:
clear
in classTransaction
-
rollback
public void rollback()
- Specified by:
rollback
in classTransaction
-
flushFile
public void flushFile()
-
processDeletes
public void processDeletes()
- Specified by:
processDeletes
in classTransaction
-
writeUpdateAdjustIndexes
public void writeUpdateAdjustIndexes(int id, ClassMetadata clazz, ArrayType typeInfo)
- Specified by:
writeUpdateAdjustIndexes
in classTransaction
-
idSystem
public TransactionalIdSystem idSystem()
- Specified by:
idSystem
in classTransaction
-
frozenReferenceFor
public ObjectInfo frozenReferenceFor(int id)
-
lazyReferenceFor
public LazyObjectReference lazyReferenceFor(int id)
-
versionForId
public long versionForId(int id)
- Specified by:
versionForId
in classTransaction
-
commitTimestampSupport
public CommitTimestampSupport commitTimestampSupport()
-
generateTransactionTimestamp
public long generateTransactionTimestamp(long forcedTimeStamp)
- Specified by:
generateTransactionTimestamp
in classTransaction
-
useDefaultTransactionTimestamp
public void useDefaultTransactionTimestamp()
- Specified by:
useDefaultTransactionTimestamp
in classTransaction
-
timestamp
public long timestamp()
-
notifyAboutOtherReplicationCommit
public void notifyAboutOtherReplicationCommit(long replicationVersion, java.util.List<java.lang.Long> concurrentTimestamps)
-
concurrentReplicationTimestamps
public java.util.List<java.lang.Long> concurrentReplicationTimestamps()
-
postOpen
public void postOpen()
- Overrides:
postOpen
in classTransaction
-
-