public class EphemeralMappedField extends MappedField
Constructor and Description |
---|
EphemeralMappedField(ParameterizedType t,
MappedField mf,
Mapper mapper) |
EphemeralMappedField(Type t,
MappedField mf,
Mapper mapper) |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(Class<? extends Annotation> clazz)
Adds the annotation, if it exists on the field.
|
void |
addAnnotation(Class<? extends Annotation> clazz,
Annotation ann)
Adds the annotation, if it exists on the field.
|
Object |
getDbObjectValue(com.mongodb.DBObject dbObj) |
Object |
getFieldValue(Object classInst)
Returns the value stored in the java field
|
Class |
getMapKeyClass()
If the underlying java type is a map then it returns T from Map
|
String |
getNameToStore()
Returns the name of the field's (key)name for mongodb
|
MappedField |
getParent() |
Class |
getSubClass()
If the java field is a list/array/map then the sub-type T is returned (ex.
|
Type |
getSubType() |
Class |
getType()
returns the type of the underlying java field
|
Object |
getValue() |
boolean |
hasAnnotation(Class ann)
Indicates whether the annotation is present in the mapping (does not check the java field annotations, just the ones discovered)
|
boolean |
isSingleValue() |
void |
setFieldValue(Object classInst,
Object val)
Sets the value for the java field
|
String |
toString() |
addInterestingAnnotation, getAnnotation, getAnnotations, getConcreteType, getCTor, getDeclaringClass, getField, getFirstFieldName, getFullName, getJavaFieldName, getLoadNames, getMapper, getTypeParameters, isArray, isMap, isMultipleValues, isReference, isSet, isTypeMongoCompatible, putAnnotation
public EphemeralMappedField(ParameterizedType t, MappedField mf, Mapper mapper)
public EphemeralMappedField(Type t, MappedField mf, Mapper mapper)
public MappedField getParent()
public void addAnnotation(Class<? extends Annotation> clazz)
MappedField
addAnnotation
in class MappedField
public void addAnnotation(Class<? extends Annotation> clazz, Annotation ann)
MappedField
addAnnotation
in class MappedField
public Object getValue()
public String getNameToStore()
MappedField
getNameToStore
in class MappedField
public Object getDbObjectValue(com.mongodb.DBObject dbObj)
getDbObjectValue
in class MappedField
public boolean hasAnnotation(Class ann)
MappedField
hasAnnotation
in class MappedField
public String toString()
toString
in class MappedField
public Class getType()
MappedField
getType
in class MappedField
public Class getMapKeyClass()
MappedField
getMapKeyClass
in class MappedField
public Type getSubType()
getSubType
in class MappedField
public Class getSubClass()
MappedField
getSubClass
in class MappedField
public boolean isSingleValue()
isSingleValue
in class MappedField
public Object getFieldValue(Object classInst)
MappedField
getFieldValue
in class MappedField
public void setFieldValue(Object classInst, Object val)
MappedField
setFieldValue
in class MappedField
Copyright © 2016. All rights reserved.