Package com.db4o.internal
Class StatefulBuffer
- java.lang.Object
-
- com.db4o.internal.ByteArrayBuffer
-
- com.db4o.internal.StatefulBuffer
-
- All Implemented Interfaces:
ReadWriteBuffer,ReadBuffer,WriteBuffer
public final class StatefulBuffer extends ByteArrayBuffer
public for .NET conversion reasons TODO: Split this class for individual usecases. Only use the member variables needed for the respective usecase.
-
-
Field Summary
-
Fields inherited from class com.db4o.internal.ByteArrayBuffer
_buffer, _offset
-
-
Constructor Summary
Constructors Constructor Description StatefulBuffer(Transaction trans, int initialBufferSize)StatefulBuffer(Transaction trans, int address, int length)StatefulBuffer(Transaction trans, Pointer4 pointer)StatefulBuffer(Transaction trans, Slot slot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddress(int address)intcascadeDeletes()ObjectContainerBasecontainer()voiddebugCheckBytes()LocalObjectContainerfile()intgetAddress()intgetID()byte[]getWrittenBytes()intlength()voidmoveForward(int length)Pointer4pointer()voidread()ByteArrayBufferreadPayloadWriter(int offset, int length)StatefulBufferreadStatefulBuffer()voidremoveFirstBytes(int aLength)voidsetCascadeDeletes(int depth)voidsetID(int id)voidsetTransaction(Transaction aTrans)Slotslot()java.lang.StringtoString()Transactiontransaction()voiduseSlot(int adress)voiduseSlot(int address, int length)voiduseSlot(int id, int adress, int length)voiduseSlot(Slot slot)voidwrite()voidwriteEncrypt()-
Methods inherited from class com.db4o.internal.ByteArrayBuffer
append, canWritePersistentBase, checkXBytes, checkXBytes, containsTheSame, copyTo, ensureSize, eof, incrementIntSize, incrementOffset, offset, read, readBegin, readBitMap, readByte, readBytes, readBytes, readEmbeddedObject, readEncrypt, readEnd, readInt, readLong, readPayloadReader, remainingByteCount, seek, skip, writeBegin, writeBitMap, writeByte, writeBytes, writeEnd, writeIDOf, writeIDOf, writeInt, writeLong, writeShortString
-
-
-
-
Constructor Detail
-
StatefulBuffer
public StatefulBuffer(Transaction trans, int initialBufferSize)
-
StatefulBuffer
public StatefulBuffer(Transaction trans, int address, int length)
-
StatefulBuffer
public StatefulBuffer(Transaction trans, Slot slot)
-
StatefulBuffer
public StatefulBuffer(Transaction trans, Pointer4 pointer)
-
-
Method Detail
-
debugCheckBytes
public void debugCheckBytes()
-
getAddress
public int getAddress()
-
getID
public int getID()
-
length
public int length()
- Specified by:
lengthin interfaceReadWriteBuffer- Overrides:
lengthin classByteArrayBuffer
-
container
public ObjectContainerBase container()
-
file
public LocalObjectContainer file()
-
transaction
public Transaction transaction()
-
getWrittenBytes
public byte[] getWrittenBytes()
-
read
public void read() throws Db4oIOException- Throws:
Db4oIOException
-
readStatefulBuffer
public final StatefulBuffer readStatefulBuffer()
-
removeFirstBytes
public void removeFirstBytes(int aLength)
-
address
public void address(int address)
-
setID
public void setID(int id)
-
setTransaction
public void setTransaction(Transaction aTrans)
-
useSlot
public void useSlot(int adress)
-
useSlot
public void useSlot(int address, int length)
-
useSlot
public void useSlot(Slot slot)
-
useSlot
public void useSlot(int id, int adress, int length)
-
write
public void write()
-
writeEncrypt
public void writeEncrypt()
-
readPayloadWriter
public ByteArrayBuffer readPayloadWriter(int offset, int length)
-
moveForward
public void moveForward(int length)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classByteArrayBuffer
-
slot
public Slot slot()
-
pointer
public Pointer4 pointer()
-
cascadeDeletes
public int cascadeDeletes()
-
setCascadeDeletes
public void setCascadeDeletes(int depth)
-
-