Package com.db4o.internal.ids
Class TransactionalIdSystemImpl
- java.lang.Object
-
- com.db4o.internal.ids.TransactionalIdSystemImpl
-
- All Implemented Interfaces:
TransactionalIdSystem
public class TransactionalIdSystemImpl extends java.lang.Object implements TransactionalIdSystem
-
-
Constructor Summary
Constructors Constructor Description TransactionalIdSystemImpl(Closure4<FreespaceManager> freespaceManager, Closure4<IdSystem> globalIdSystem, TransactionalIdSystemImpl parentIdSystem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccumulateFreeSlots(FreespaceCommitter accumulator, boolean forFreespace)voidclear()voidclose()voidcollectCallBackInfo(CallbackInfoCollector collector)voidcommit(FreespaceCommitter freespaceCommitter)SlotcommittedSlot(int id)voidcompleteInterruptedTransaction(int transactionId1, int transactionId2)SlotcurrentSlot(int id)booleanisDeleted(int id)booleanisDirty()SlotmodifiedSlot(int id)SlotmodifiedSlotInParentIdSystem(int id)intnewId(SlotChangeFactory slotChangeFactory)voidnotifySlotCreated(int id, Slot slot, SlotChangeFactory slotChangeFactory)voidnotifySlotDeleted(int id, SlotChangeFactory slotChangeFactory)voidnotifySlotUpdated(int id, Slot slot, SlotChangeFactory slotChangeFactory)voidprefetchedIDConsumed(int id)intprefetchID()voidrollback()
-
-
-
Constructor Detail
-
TransactionalIdSystemImpl
public TransactionalIdSystemImpl(Closure4<FreespaceManager> freespaceManager, Closure4<IdSystem> globalIdSystem, TransactionalIdSystemImpl parentIdSystem)
-
-
Method Detail
-
collectCallBackInfo
public void collectCallBackInfo(CallbackInfoCollector collector)
- Specified by:
collectCallBackInfoin interfaceTransactionalIdSystem
-
isDirty
public boolean isDirty()
- Specified by:
isDirtyin interfaceTransactionalIdSystem
-
commit
public void commit(FreespaceCommitter freespaceCommitter)
- Specified by:
commitin interfaceTransactionalIdSystem
-
accumulateFreeSlots
public void accumulateFreeSlots(FreespaceCommitter accumulator, boolean forFreespace)
- Specified by:
accumulateFreeSlotsin interfaceTransactionalIdSystem
-
completeInterruptedTransaction
public void completeInterruptedTransaction(int transactionId1, int transactionId2)
-
committedSlot
public Slot committedSlot(int id)
- Specified by:
committedSlotin interfaceTransactionalIdSystem
-
currentSlot
public Slot currentSlot(int id)
- Specified by:
currentSlotin interfaceTransactionalIdSystem
-
modifiedSlot
public Slot modifiedSlot(int id)
-
modifiedSlotInParentIdSystem
public final Slot modifiedSlotInParentIdSystem(int id)
-
rollback
public void rollback()
- Specified by:
rollbackin interfaceTransactionalIdSystem
-
clear
public void clear()
- Specified by:
clearin interfaceTransactionalIdSystem
-
isDeleted
public boolean isDeleted(int id)
- Specified by:
isDeletedin interfaceTransactionalIdSystem
-
notifySlotUpdated
public void notifySlotUpdated(int id, Slot slot, SlotChangeFactory slotChangeFactory)- Specified by:
notifySlotUpdatedin interfaceTransactionalIdSystem
-
newId
public int newId(SlotChangeFactory slotChangeFactory)
- Specified by:
newIdin interfaceTransactionalIdSystem
-
prefetchID
public int prefetchID()
- Specified by:
prefetchIDin interfaceTransactionalIdSystem
-
prefetchedIDConsumed
public void prefetchedIDConsumed(int id)
- Specified by:
prefetchedIDConsumedin interfaceTransactionalIdSystem
-
notifySlotCreated
public void notifySlotCreated(int id, Slot slot, SlotChangeFactory slotChangeFactory)- Specified by:
notifySlotCreatedin interfaceTransactionalIdSystem
-
notifySlotDeleted
public void notifySlotDeleted(int id, SlotChangeFactory slotChangeFactory)- Specified by:
notifySlotDeletedin interfaceTransactionalIdSystem
-
close
public void close()
- Specified by:
closein interfaceTransactionalIdSystem
-
-