public class MapOrCollectionMF extends MappedField
interestingAnnotations| Modifier and Type | Method and Description |
|---|---|
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
|
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() |
addAnnotation, addAnnotation, getAnnotation, getAnnotations, getConcreteType, getCTor, getDeclaringClass, getField, getFirstFieldName, getFullName, getJavaFieldName, getLoadNames, isMap, isMultipleValues, isSet, isTypeMongoCompatible, putAnnotationpublic Object getValue()
public String getNameToStore()
MappedFieldgetNameToStore in class MappedFieldpublic Object getDbObjectValue(com.mongodb.DBObject dbObj)
getDbObjectValue in class MappedFieldpublic boolean hasAnnotation(Class ann)
MappedFieldhasAnnotation in class MappedFieldpublic String toString()
toString in class MappedFieldpublic Class getType()
MappedFieldgetType in class MappedFieldpublic Class getMapKeyClass()
MappedFieldgetMapKeyClass in class MappedFieldpublic Type getSubType()
getSubType in class MappedFieldpublic Class getSubClass()
MappedFieldgetSubClass in class MappedFieldpublic boolean isSingleValue()
isSingleValue in class MappedFieldpublic Object getFieldValue(Object classInst) throws IllegalArgumentException
MappedFieldgetFieldValue in class MappedFieldIllegalArgumentExceptionpublic void setFieldValue(Object classInst, Object val) throws IllegalArgumentException
MappedFieldsetFieldValue in class MappedFieldIllegalArgumentExceptionCopyright © 2015. All rights reserved.