public class MappedField extends Object
| Constructor and Description |
|---|
MappedField(FieldTypePair fieldTypePair,
Class<?> persistedClass,
TypeCodecRegistry typeCodecRegistry) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
decode(org.bson.BsonReader reader,
T instance,
org.bson.codecs.DecoderContext decoderContext) |
<T> 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() |
Class |
getDeclaringClass() |
Field |
getField() |
Object |
getFieldValue(Object 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() |
<T> boolean |
initializeDefault(T instance) |
boolean |
isIdField() |
boolean |
isLockingVersionField() |
boolean |
setFieldValue(Object instance,
Object value) |
public static final String ID_KEY
public MappedField(FieldTypePair fieldTypePair, Class<?> persistedClass, TypeCodecRegistry typeCodecRegistry)
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 Class getDeclaringClass()
public Field getField()
public <T> void encode(org.bson.BsonWriter writer,
T instance,
org.bson.codecs.EncoderContext encoderContext)
public <T> 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 <T> boolean initializeDefault(T instance)
T - type of the instanceinstance - to initializeCopyright © 2017 BILD GmbH & Co. KG. All rights reserved.