Package com.db4o.internal
Class PersistentBase
- java.lang.Object
-
- com.db4o.internal.Identifiable
-
- com.db4o.internal.PersistentBase
-
- All Implemented Interfaces:
LinkLengthAware
,Persistent
- Direct Known Subclasses:
ClassMetadata
,ClassMetadataRepository
,LocalPersistentBase
public abstract class PersistentBase extends Identifiable implements Persistent, LinkLengthAware
-
-
Field Summary
-
Fields inherited from class com.db4o.internal.Identifiable
_id, _state
-
-
Constructor Summary
Constructors Constructor Description PersistentBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
free(LocalTransaction trans)
TransactionalIdSystem
idSystem(Transaction trans)
int
linkLength()
protected ByteArrayBuffer
newWriteBuffer(int length)
protected ByteArrayBuffer
produceReadBuffer(Transaction trans)
protected ByteArrayBuffer
produceWriteBuffer(Transaction trans, int length)
void
read(Transaction trans)
protected void
read(Transaction trans, ByteArrayBuffer reader)
protected ByteArrayBuffer
readBufferById(Transaction trans)
SlotChangeFactory
slotChangeFactory()
void
write(Transaction trans)
boolean
writeObjectBegin()
void
writeOwnID(Transaction trans, ByteArrayBuffer writer)
-
Methods inherited from class com.db4o.internal.Identifiable
beginProcessing, endProcessing, getID, hashCode, isActive, isDirty, isNew, setID, setStateClean, setStateDeactivated, setStateDirty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.db4o.internal.Persistent
getIdentifier, ownLength, readThis, writeThis
-
-
-
-
Method Detail
-
free
public void free(LocalTransaction trans)
-
linkLength
public final int linkLength()
- Specified by:
linkLength
in interfaceLinkLengthAware
-
read
public void read(Transaction trans)
-
read
protected void read(Transaction trans, ByteArrayBuffer reader)
-
produceReadBuffer
protected final ByteArrayBuffer produceReadBuffer(Transaction trans)
-
readBufferById
protected ByteArrayBuffer readBufferById(Transaction trans)
-
write
public void write(Transaction trans)
-
idSystem
public TransactionalIdSystem idSystem(Transaction trans)
-
produceWriteBuffer
protected ByteArrayBuffer produceWriteBuffer(Transaction trans, int length)
-
newWriteBuffer
protected ByteArrayBuffer newWriteBuffer(int length)
-
writeObjectBegin
public boolean writeObjectBegin()
-
writeOwnID
public void writeOwnID(Transaction trans, ByteArrayBuffer writer)
-
slotChangeFactory
public SlotChangeFactory slotChangeFactory()
-
-