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, putAnnotation
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) throws IllegalArgumentException
MappedField
getFieldValue
in class MappedField
IllegalArgumentException
public void setFieldValue(Object classInst, Object val) throws IllegalArgumentException
MappedField
setFieldValue
in class MappedField
IllegalArgumentException
Copyright © 2015. All rights reserved.