Class AbstractBinaryHandlerTrivial<T>

    • Constructor Detail

      • AbstractBinaryHandlerTrivial

        public AbstractBinaryHandlerTrivial()
    • Method Detail

      • complete

        public final void complete​(Binary medium,
                                   T instance,
                                   PersistenceObjectIdResolver idResolver)
        Description copied from interface: PersistenceTypeHandler
        Completes an initially built instance after all loaded instances have been built. E.g. can be used to cause a hash collection to hash all its initially collected entries after their instances have been built.
      • iterateInstanceReferences

        public final void iterateInstanceReferences​(T instance,
                                                    PersistenceFunction iterator)
      • membersPersistedLengthMinimum

        public long membersPersistedLengthMinimum()
      • membersPersistedLengthMaximum

        public long membersPersistedLengthMaximum()
      • isPrimitiveType

        public boolean isPrimitiveType()
      • hasPersistedReferences

        public final boolean hasPersistedReferences()
      • hasInstanceReferences

        public final boolean hasInstanceReferences()
      • hasVaryingPersistedLengthInstances

        public final boolean hasVaryingPersistedLengthInstances()
        Description copied from interface: PersistenceTypeDefinition
        Provides information if one particular instance can have variing binary length from one store to another.

        Examples for variable length instances:

        • variable size collection instances
        • variable size pesudo collection instances like java.util.StringBuilder
        • instances of custom defined types similar to collections

        Examples for fixed length instances:

      • iterateMemberTypes

        public final <C extends Consumer<? super Class<?>>> C iterateMemberTypes​(C logic)
        Description copied from interface: PersistenceTypeHandler
        Iterates the types of persistent members (e.g. non-transient Fields). The same type may occur more than once. The order in which the types are provided is undefined, i.e. depending on the implementation.