Class BaseReferenceCodec<T>

  • Type Parameters:
    T - the property type
    All Implemented Interfaces:
    Codec<T>, Decoder<T>, Encoder<T>
    Direct Known Subclasses:
    MorphiaReferenceCodec, ReferenceCodec

    public abstract class BaseReferenceCodec<T>
    extends Object
    implements Codec<T>
    Defines codecs for properties
    Developer note.
    This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • Constructor Detail

      • BaseReferenceCodec

        public BaseReferenceCodec​(Datastore datastore,
                                  PropertyModel property)
        Creates a codec
        datastore - the datastore
        property - the property
    • Method Detail

      • getDatastore

        public Datastore getDatastore()
        the datastore
      • getPropertyModel

        public PropertyModel getPropertyModel()
        the field
      • getTypeData

        public TypeData<?> getTypeData()
        the type data
      • getEntityModelForField

        protected EntityModel getEntityModelForField()