Class MarshallingContext

    • Method Detail

      • isNew

        public boolean isNew()
      • isNull

        public void isNull​(int fieldIndex,
                           boolean flag)
      • allocateNewSlot

        public Slot allocateNewSlot​(int length)
      • allocateSlot

        public Pointer4 allocateSlot()
      • marshalledLength

        public int marshalledLength()
      • requiredLength

        public int requiredLength​(MarshallingBuffer buffer,
                                  boolean align)
      • getObject

        public java.lang.Object getObject()
      • classConfiguration

        public Config4Class classConfiguration()
      • updateDepth

        public void updateDepth​(UpdateDepth depth)
      • objectID

        public int objectID()
      • currentIndexEntry

        public java.lang.Object currentIndexEntry()
      • writeByte

        public void writeByte​(byte b)
        Description copied from interface: WriteBuffer
        writes a single byte to the buffer.
        Specified by:
        writeByte in interface WriteBuffer
        Parameters:
        b - the byte
      • writeBytes

        public void writeBytes​(byte[] bytes)
        Description copied from interface: WriteBuffer
        writes an array of bytes to the buffer
        Specified by:
        writeBytes in interface WriteBuffer
        Parameters:
        bytes - the byte array
      • writeInt

        public void writeInt​(int i)
        Description copied from interface: WriteBuffer
        writes an int to the buffer.
        Specified by:
        writeInt in interface WriteBuffer
        Parameters:
        i - the int
      • writeLong

        public void writeLong​(long l)
        Description copied from interface: WriteBuffer
        writes a long to the buffer
        Specified by:
        writeLong in interface WriteBuffer
        Parameters:
        l - the long
      • createChildBuffer

        public void createChildBuffer​(boolean storeLengthInLink)
      • writeDeclaredAspectCount

        public void writeDeclaredAspectCount​(int count)
      • debugPrependNextWrite

        public void debugPrependNextWrite​(ByteArrayBuffer prepend)
      • debugWriteEnd

        public void debugWriteEnd​(byte b)
      • writeObject

        public void writeObject​(java.lang.Object obj)
        Description copied from interface: WriteContext
        makes sure the object is stored and writes the ID of the object to the context. Use this method for first class objects only (objects that have an identity in the database). If the object can potentially be a primitive type, do not use this method but use a matching WriteBuffer method instead.
        Specified by:
        writeObject in interface WriteContext
        Parameters:
        obj - the object to write.
      • writeObject

        public void writeObject​(TypeHandler4 handler,
                                java.lang.Object obj)
        Description copied from interface: WriteContext
        writes sub-objects, in cases where the TypeHandler4 is known.
        Specified by:
        writeObject in interface WriteContext
        Parameters:
        handler - typehandler to be used to write the object.
        obj - the object to write
      • writeObjectWithCurrentState

        public void writeObjectWithCurrentState​(TypeHandler4 handler,
                                                java.lang.Object obj)
      • addIndexEntry

        public void addIndexEntry​(FieldMetadata fieldMetadata,
                                  java.lang.Object obj)
      • purgeFieldIndexEntriesOnUpdate

        public void purgeFieldIndexEntriesOnUpdate​(Transaction transaction,
                                                   ArrayType arrayType)
      • createIndirectionWithinSlot

        public void createIndirectionWithinSlot​(TypeHandler4 handler)
      • createIndirectionWithinSlot

        public void createIndirectionWithinSlot()
      • reserve

        public ReservedBuffer reserve​(int length)
        Description copied from interface: WriteContext
        reserves a buffer with a specific length at the current position, to be written in a later step.
        Specified by:
        reserve in interface WriteContext
        Parameters:
        length - the length to be reserved.
        Returns:
        the ReservedBuffer