T - The type of the persistence class container (pojo) for this mapped fieldF - The type of the field valuepublic class MappedField<T,F> extends Object
| Constructor and Description |
|---|
MappedField(FieldTypePair fieldTypePair,
Class<T> persistedClass,
TypeCodecRegistry typeCodecRegistry,
CodecConfiguration codecConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(org.bson.BsonReader reader,
T instance,
org.bson.codecs.DecoderContext decoderContext) |
void |
encode(org.bson.BsonWriter writer,
T instance,
org.bson.codecs.EncoderContext encoderContext) |
boolean |
equals(Object o) |
<T extends Annotation> |
getAnnotation(Class<T> clazz) |
Map<Class<? extends Annotation>,Annotation> |
getAnnotations() |
org.bson.codecs.Codec |
getCodec() |
Field |
getField() |
F |
getFieldValue(T instance) |
String |
getMappedFieldName() |
boolean |
hasAnnotation(Class ann)
Indicates whether the annotation is present in the mapping (does not check the java field annotations, just the ones discovered)
|
int |
hashCode() |
void |
initializeUndefinedValue(T instance) |
boolean |
isIdField() |
boolean |
isLockingVersionField() |
boolean |
setFieldValue(T instance,
F value) |
public static final String ID_KEY
public MappedField(FieldTypePair fieldTypePair, Class<T> persistedClass, TypeCodecRegistry typeCodecRegistry, CodecConfiguration codecConfiguration)
public <T extends Annotation> T getAnnotation(Class<T> clazz)
T - the type of the annotationclazz - the annotation to search forpublic Map<Class<? extends Annotation>,Annotation> getAnnotations()
public boolean hasAnnotation(Class ann)
ann - the annotation to search forpublic String getMappedFieldName()
public Field getField()
public void encode(org.bson.BsonWriter writer,
T instance,
org.bson.codecs.EncoderContext encoderContext)
public void decode(org.bson.BsonReader reader,
T instance,
org.bson.codecs.DecoderContext decoderContext)
public boolean isIdField()
public boolean isLockingVersionField()
public org.bson.codecs.Codec getCodec()
public void initializeUndefinedValue(T instance)
instance - to initializeCopyright © 2018 BILD GmbH & Co. KG. All rights reserved.