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 void
accumulateFreeSlots(FreespaceCommitter accumulator, boolean forFreespace)
void
clear()
void
close()
void
collectCallBackInfo(CallbackInfoCollector collector)
void
commit(FreespaceCommitter freespaceCommitter)
Slot
committedSlot(int id)
void
completeInterruptedTransaction(int transactionId1, int transactionId2)
Slot
currentSlot(int id)
boolean
isDeleted(int id)
boolean
isDirty()
Slot
modifiedSlot(int id)
Slot
modifiedSlotInParentIdSystem(int id)
int
newId(SlotChangeFactory slotChangeFactory)
void
notifySlotCreated(int id, Slot slot, SlotChangeFactory slotChangeFactory)
void
notifySlotDeleted(int id, SlotChangeFactory slotChangeFactory)
void
notifySlotUpdated(int id, Slot slot, SlotChangeFactory slotChangeFactory)
void
prefetchedIDConsumed(int id)
int
prefetchID()
void
rollback()
-
-
-
Constructor Detail
-
TransactionalIdSystemImpl
public TransactionalIdSystemImpl(Closure4<FreespaceManager> freespaceManager, Closure4<IdSystem> globalIdSystem, TransactionalIdSystemImpl parentIdSystem)
-
-
Method Detail
-
collectCallBackInfo
public void collectCallBackInfo(CallbackInfoCollector collector)
- Specified by:
collectCallBackInfo
in interfaceTransactionalIdSystem
-
isDirty
public boolean isDirty()
- Specified by:
isDirty
in interfaceTransactionalIdSystem
-
commit
public void commit(FreespaceCommitter freespaceCommitter)
- Specified by:
commit
in interfaceTransactionalIdSystem
-
accumulateFreeSlots
public void accumulateFreeSlots(FreespaceCommitter accumulator, boolean forFreespace)
- Specified by:
accumulateFreeSlots
in interfaceTransactionalIdSystem
-
completeInterruptedTransaction
public void completeInterruptedTransaction(int transactionId1, int transactionId2)
-
committedSlot
public Slot committedSlot(int id)
- Specified by:
committedSlot
in interfaceTransactionalIdSystem
-
currentSlot
public Slot currentSlot(int id)
- Specified by:
currentSlot
in interfaceTransactionalIdSystem
-
modifiedSlot
public Slot modifiedSlot(int id)
-
modifiedSlotInParentIdSystem
public final Slot modifiedSlotInParentIdSystem(int id)
-
rollback
public void rollback()
- Specified by:
rollback
in interfaceTransactionalIdSystem
-
clear
public void clear()
- Specified by:
clear
in interfaceTransactionalIdSystem
-
isDeleted
public boolean isDeleted(int id)
- Specified by:
isDeleted
in interfaceTransactionalIdSystem
-
notifySlotUpdated
public void notifySlotUpdated(int id, Slot slot, SlotChangeFactory slotChangeFactory)
- Specified by:
notifySlotUpdated
in interfaceTransactionalIdSystem
-
newId
public int newId(SlotChangeFactory slotChangeFactory)
- Specified by:
newId
in interfaceTransactionalIdSystem
-
prefetchID
public int prefetchID()
- Specified by:
prefetchID
in interfaceTransactionalIdSystem
-
prefetchedIDConsumed
public void prefetchedIDConsumed(int id)
- Specified by:
prefetchedIDConsumed
in interfaceTransactionalIdSystem
-
notifySlotCreated
public void notifySlotCreated(int id, Slot slot, SlotChangeFactory slotChangeFactory)
- Specified by:
notifySlotCreated
in interfaceTransactionalIdSystem
-
notifySlotDeleted
public void notifySlotDeleted(int id, SlotChangeFactory slotChangeFactory)
- Specified by:
notifySlotDeleted
in interfaceTransactionalIdSystem
-
close
public void close()
- Specified by:
close
in interfaceTransactionalIdSystem
-
-