Package com.db4o.internal.ids
Class TransportIdSystem
- java.lang.Object
-
- com.db4o.internal.ids.TransportIdSystem
-
- All Implemented Interfaces:
TransactionalIdSystem
public final class TransportIdSystem extends java.lang.Object implements TransactionalIdSystem
-
-
Constructor Summary
Constructors Constructor Description TransportIdSystem(LocalObjectContainer localObjectContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accumulateFreeSlots(FreespaceCommitter freespaceCommitter, boolean forFreespace)
void
clear()
void
close()
void
collectCallBackInfo(CallbackInfoCollector collector)
void
commit(FreespaceCommitter accumulator)
Slot
committedSlot(int id)
Slot
currentSlot(int id)
boolean
isDeleted(int id)
boolean
isDirty()
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
-
TransportIdSystem
public TransportIdSystem(LocalObjectContainer localObjectContainer)
-
-
Method Detail
-
newId
public int newId(SlotChangeFactory slotChangeFactory)
- Specified by:
newId
in interfaceTransactionalIdSystem
-
notifySlotCreated
public void notifySlotCreated(int id, Slot slot, SlotChangeFactory slotChangeFactory)
- Specified by:
notifySlotCreated
in interfaceTransactionalIdSystem
-
notifySlotUpdated
public void notifySlotUpdated(int id, Slot slot, SlotChangeFactory slotChangeFactory)
- Specified by:
notifySlotUpdated
in interfaceTransactionalIdSystem
-
notifySlotDeleted
public void notifySlotDeleted(int id, SlotChangeFactory slotChangeFactory)
- Specified by:
notifySlotDeleted
in interfaceTransactionalIdSystem
-
commit
public void commit(FreespaceCommitter accumulator)
- Specified by:
commit
in interfaceTransactionalIdSystem
-
currentSlot
public Slot currentSlot(int id)
- Specified by:
currentSlot
in interfaceTransactionalIdSystem
-
collectCallBackInfo
public void collectCallBackInfo(CallbackInfoCollector collector)
- Specified by:
collectCallBackInfo
in interfaceTransactionalIdSystem
-
clear
public void clear()
- Specified by:
clear
in interfaceTransactionalIdSystem
-
committedSlot
public Slot committedSlot(int id)
- Specified by:
committedSlot
in interfaceTransactionalIdSystem
-
isDeleted
public boolean isDeleted(int id)
- Specified by:
isDeleted
in interfaceTransactionalIdSystem
-
isDirty
public boolean isDirty()
- Specified by:
isDirty
in interfaceTransactionalIdSystem
-
prefetchID
public int prefetchID()
- Specified by:
prefetchID
in interfaceTransactionalIdSystem
-
prefetchedIDConsumed
public void prefetchedIDConsumed(int id)
- Specified by:
prefetchedIDConsumed
in interfaceTransactionalIdSystem
-
rollback
public void rollback()
- Specified by:
rollback
in interfaceTransactionalIdSystem
-
close
public void close()
- Specified by:
close
in interfaceTransactionalIdSystem
-
accumulateFreeSlots
public void accumulateFreeSlots(FreespaceCommitter freespaceCommitter, boolean forFreespace)
- Specified by:
accumulateFreeSlots
in interfaceTransactionalIdSystem
-
-