Package com.db4o.internal.classindex
Class AbstractClassIndexStrategy
- java.lang.Object
-
- com.db4o.internal.classindex.AbstractClassIndexStrategy
-
- All Implemented Interfaces:
ClassIndexStrategy
- Direct Known Subclasses:
BTreeClassIndexStrategy
public abstract class AbstractClassIndexStrategy extends java.lang.Object implements ClassIndexStrategy
-
-
Field Summary
Fields Modifier and Type Field Description protected ClassMetadata
_classMetadata
-
Constructor Summary
Constructors Constructor Description AbstractClassIndexStrategy(ClassMetadata classMetadata)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
add(Transaction trans, int id)
protected int
classMetadataID()
protected abstract void
internalAdd(Transaction trans, int id)
protected abstract void
internalRemove(Transaction ta, int id)
int
ownLength()
void
remove(Transaction ta, int id)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.db4o.internal.classindex.ClassIndexStrategy
allSlotIDs, defragIndex, defragReference, dontDelete, entryCount, id, idVisitable, initialize, purge, read, traverseIds, write
-
-
-
-
Field Detail
-
_classMetadata
protected final ClassMetadata _classMetadata
-
-
Constructor Detail
-
AbstractClassIndexStrategy
public AbstractClassIndexStrategy(ClassMetadata classMetadata)
-
-
Method Detail
-
classMetadataID
protected int classMetadataID()
-
ownLength
public int ownLength()
- Specified by:
ownLength
in interfaceClassIndexStrategy
-
internalAdd
protected abstract void internalAdd(Transaction trans, int id)
-
add
public final void add(Transaction trans, int id)
- Specified by:
add
in interfaceClassIndexStrategy
-
internalRemove
protected abstract void internalRemove(Transaction ta, int id)
-
remove
public final void remove(Transaction ta, int id)
- Specified by:
remove
in interfaceClassIndexStrategy
-
-