Package com.db4o.defragment
Class AbstractIdMapping
- java.lang.Object
-
- com.db4o.defragment.AbstractIdMapping
-
- All Implemented Interfaces:
IdMapping
- Direct Known Subclasses:
DatabaseIdMapping
,InMemoryIdMapping
public abstract class AbstractIdMapping extends java.lang.Object implements IdMapping
Base class for defragment ID mappings.- See Also:
Defragment
-
-
Constructor Summary
Constructors Constructor Description AbstractIdMapping()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
mapId(int origID, int mappedID, boolean isClassID)
Registers a mapping for the given IDs.protected abstract void
mapNonClassIDs(int origID, int mappedID)
protected int
mappedClassID(int origID)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.db4o.defragment.IdMapping
addressForId, close, commit, mapId, mappedId, open, slotChanges
-
-
-
-
Method Detail
-
mapId
public final void mapId(int origID, int mappedID, boolean isClassID)
Description copied from interface:IdMapping
Registers a mapping for the given IDs.
-
mappedClassID
protected int mappedClassID(int origID)
-
mapNonClassIDs
protected abstract void mapNonClassIDs(int origID, int mappedID)
-
-