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 void
address(int address)
int
cascadeDeletes()
ObjectContainerBase
container()
void
debugCheckBytes()
LocalObjectContainer
file()
int
getAddress()
int
getID()
byte[]
getWrittenBytes()
int
length()
void
moveForward(int length)
Pointer4
pointer()
void
read()
ByteArrayBuffer
readPayloadWriter(int offset, int length)
StatefulBuffer
readStatefulBuffer()
void
removeFirstBytes(int aLength)
void
setCascadeDeletes(int depth)
void
setID(int id)
void
setTransaction(Transaction aTrans)
Slot
slot()
java.lang.String
toString()
Transaction
transaction()
void
useSlot(int adress)
void
useSlot(int address, int length)
void
useSlot(int id, int adress, int length)
void
useSlot(Slot slot)
void
write()
void
writeEncrypt()
-
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:
length
in interfaceReadWriteBuffer
- Overrides:
length
in 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:
toString
in classByteArrayBuffer
-
slot
public Slot slot()
-
pointer
public Pointer4 pointer()
-
cascadeDeletes
public int cascadeDeletes()
-
setCascadeDeletes
public void setCascadeDeletes(int depth)
-
-