Interface InstantiatingTypeHandler

    • Method Detail

      • instantiate

        java.lang.Object instantiate​(ReadContext context)
      • writeInstantiation

        void writeInstantiation​(WriteContext context,
                                java.lang.Object obj)
        gets called when an object is to be written to the database. The method must only write data necessary to re instantiate the object, usually the immutable bits of information held by the object. For value types that means their complete state. Mutable state (only allowed in reference types) must be handled during ReferenceTypeHandler#activate(WriteContext)
        Parameters:
        context -
        obj - the object