Package com.db4o.internal
Class Transaction
- java.lang.Object
-
- com.db4o.internal.Transaction
-
- Direct Known Subclasses:
ClientTransaction
,LocalTransaction
public abstract class Transaction extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Transaction
_systemTransaction
-
Constructor Summary
Constructors Constructor Description Transaction(ObjectContainerBase container, Transaction systemTransaction, ReferenceSystem referenceSystem)
-
Method Summary
-
-
-
Field Detail
-
_systemTransaction
protected final Transaction _systemTransaction
-
-
Constructor Detail
-
Transaction
public Transaction(ObjectContainerBase container, Transaction systemTransaction, ReferenceSystem referenceSystem)
-
-
Method Detail
-
get
public <T> ByRef<T> get(TransactionLocal<T> local)
Retrieves the value of a transaction local variables. If this is the first time the variable is accessedTransactionLocal.initialValueFor(Transaction)
will provide the initial value.
-
checkSynchronization
public final void checkSynchronization()
-
addTransactionListener
public void addTransactionListener(TransactionListener listener)
-
clearAll
protected final void clearAll()
-
clear
protected abstract void clear()
-
close
public void close(boolean rollbackOnClose)
-
discardReferenceSystem
protected void discardReferenceSystem()
-
commit
public abstract void commit()
-
commitTransactionListeners
protected void commitTransactionListeners()
-
isSystemTransaction
protected boolean isSystemTransaction()
-
delete
public boolean delete(ObjectReference ref, int id, int cascade)
-
dontDelete
public void dontDelete(int a_id)
-
processDeletes
public abstract void processDeletes()
-
referenceSystem
public ReferenceSystem referenceSystem()
-
reflector
public final Reflector reflector()
-
rollback
public abstract void rollback()
-
rollBackTransactionListeners
protected void rollBackTransactionListeners()
-
systemTransaction
public Transaction systemTransaction()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
writeUpdateAdjustIndexes
public abstract void writeUpdateAdjustIndexes(int id, ClassMetadata clazz, ArrayType typeInfo)
-
container
public final ObjectContainerBase container()
-
parentTransaction
public Transaction parentTransaction()
-
rollbackReferenceSystem
public void rollbackReferenceSystem()
-
postCommit
public void postCommit()
-
commitReferenceSystem
public void commitReferenceSystem()
-
addNewReference
public void addNewReference(ObjectReference ref)
-
objectForIdFromCache
public final java.lang.Object objectForIdFromCache(int id)
-
referenceForId
public final ObjectReference referenceForId(int id)
-
referenceForObject
public final ObjectReference referenceForObject(java.lang.Object obj)
-
removeReference
public final void removeReference(ObjectReference ref)
-
removeObjectFromReferenceSystem
public final void removeObjectFromReferenceSystem(java.lang.Object obj)
-
setOutSideRepresentation
public void setOutSideRepresentation(ObjectContainer objectContainer)
-
objectContainer
public ObjectContainer objectContainer()
-
context
public Context context()
-
traverseDelete
protected void traverseDelete(Visitor4 deleteVisitor)
-
wrap
public java.lang.Object wrap(java.lang.Object value)
-
idSystem
public abstract TransactionalIdSystem idSystem()
-
versionForId
public abstract long versionForId(int id)
-
generateTransactionTimestamp
public abstract long generateTransactionTimestamp(long forcedTimeStamp)
-
useDefaultTransactionTimestamp
public abstract void useDefaultTransactionTimestamp()
-
postOpen
public void postOpen()
-
-