public interface ObjectCoder extends KeyRenderer, ValueRenderer
Combines the KeyCoder
, KeyRenderer
, ValueCoder
and
ValueRenderer
into a single interface that allows Persistit to store
and retrieve arbitrary objects - even non-Serializable objects - without
byte-code enhancement, without incurring the space or time overhead of Java
serialization, or the need to modify the class to perform custom
serialization. During initialization, an application typically associates an
ObjectCoder
with each the Class
of each object that
will be stored in or fetched from the Persistit database. The
ObjectCoder
implements all of the logic necessary to encode and
decode the state of objects of that class to and from Persistit storage
structures. Although Persistit is not designed to provide transparent
persistence, the ObjectCoder
interface simplifies object
persistence code.
renderKeySegment
appendKeySegment, decodeKeySegment, isZeroByteFree
render
get, put
Copyright © 2025 Open Identity Platform Community. All rights reserved.