Package dev.morphia.mapping.codec
Class BaseReferenceCodec<T>
- java.lang.Object
-
- dev.morphia.mapping.codec.BaseReferenceCodec<T>
-
- Type Parameters:
T- the property type
- Direct Known Subclasses:
MorphiaReferenceCodec,ReferenceCodec
@MorphiaInternal public abstract class BaseReferenceCodec<T> extends Object implements Codec<T>
Defines codecs for propertiesDeveloper note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Constructor Summary
Constructors Constructor Description BaseReferenceCodec(Datastore datastore, PropertyModel property)Creates a codec
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DatastoregetDatastore()protected EntityModelgetEntityModelForField()PropertyModelgetPropertyModel()protected static ReferencegetReferenceAnnotation(PropertyModel model)TypeData<?>getTypeData()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bson.codecs.Encoder
encode, getEncoderClass
-
-
-
-
Constructor Detail
-
BaseReferenceCodec
public BaseReferenceCodec(Datastore datastore, PropertyModel property)
Creates a codec- Parameters:
datastore- the datastoreproperty- the property
-
-
Method Detail
-
getDatastore
public Datastore getDatastore()
- Returns:
- the datastore
-
getPropertyModel
public PropertyModel getPropertyModel()
- Returns:
- the field
-
getTypeData
public TypeData<?> getTypeData()
- Returns:
- the type data
-
getEntityModelForField
protected EntityModel getEntityModelForField()
-
getReferenceAnnotation
protected static Reference getReferenceAnnotation(PropertyModel model)
-
-