Modifier and Type | Method and Description |
---|---|
Object |
ObjectFactory.createInstance(Mapper mapper,
MappedField mf,
com.mongodb.DBObject dbObj)
Creates an instance of the class defined in the
Mapper.CLASS_NAME_FIELDNAME field in the dbObject passed in. |
List |
ObjectFactory.createList(MappedField mf)
Defines how morphia creates a List object.
|
Map |
ObjectFactory.createMap(MappedField mf)
Defines how morphia creates a Map object.
|
Set |
ObjectFactory.createSet(MappedField mf)
Defines how morphia creates a Set object.
|
Modifier and Type | Method and Description |
---|---|
abstract Object |
TypeConverter.decode(Class<?> targetClass,
Object fromDBObject,
MappedField optionalExtraInfo)
decode the
DBObject and provide the corresponding java (type-safe) object
NOTE: optionalExtraInfo might be null |
Object |
DateConverter.decode(Class<?> targetClass,
Object val,
MappedField optionalExtraInfo) |
Object |
Converters.decode(Class c,
Object fromDBObject,
MappedField mf) |
Object |
MapOfValuesConverter.decode(Class targetClass,
Object fromDBObject,
MappedField mf) |
Object |
IdentityConverter.decode(Class targetClass,
Object fromDBObject,
MappedField optionalExtraInfo) |
Object |
SerializedObjectConverter.decode(Class targetClass,
Object fromDBObject,
MappedField f) |
Object |
TimestampConverter.decode(Class targetClass,
Object val,
MappedField optionalExtraInfo) |
Object |
CharArrayConverter.decode(Class targetClass,
Object val,
MappedField optionalExtraInfo) |
Object |
IntegerConverter.decode(Class targetClass,
Object val,
MappedField optionalExtraInfo) |
Object |
IterableConverter.decode(Class targetClass,
Object fromDBObject,
MappedField mf) |
Object |
URIConverter.decode(Class targetClass,
Object val,
MappedField optionalExtraInfo) |
Object |
KeyConverter.decode(Class targetClass,
Object o,
MappedField optionalExtraInfo) |
Object |
DoubleConverter.decode(Class targetClass,
Object val,
MappedField optionalExtraInfo) |
Object |
ByteConverter.decode(Class targetClass,
Object val,
MappedField optionalExtraInfo) |
Object |
LongConverter.decode(Class targetClass,
Object val,
MappedField optionalExtraInfo) |
Object |
UUIDConverter.decode(Class targetClass,
Object fromDBObject,
MappedField optionalExtraInfo) |
Object |
ObjectIdConverter.decode(Class targetClass,
Object val,
MappedField optionalExtraInfo) |
Object |
CharacterConverter.decode(Class targetClass,
Object fromDBObject,
MappedField optionalExtraInfo) |
Object |
FloatConverter.decode(Class targetClass,
Object val,
MappedField optionalExtraInfo) |
Object |
ClassConverter.decode(Class targetClass,
Object fromDBObject,
MappedField optionalExtraInfo) |
Object |
LocaleConverter.decode(Class targetClass,
Object fromDBObject,
MappedField optionalExtraInfo) |
Object |
EnumSetConverter.decode(Class targetClass,
Object fromDBObject,
MappedField optionalExtraInfo) |
Object |
EnumConverter.decode(Class targetClass,
Object fromDBObject,
MappedField optionalExtraInfo) |
Object |
StringConverter.decode(Class targetClass,
Object fromDBObject,
MappedField optionalExtraInfo) |
Object |
BooleanConverter.decode(Class targetClass,
Object val,
MappedField optionalExtraInfo) |
Object |
ShortConverter.decode(Class targetClass,
Object val,
MappedField optionalExtraInfo) |
Object |
TypeConverter.encode(Object value,
MappedField optionalExtraInfo)
encode the (type-safe) java object into the corresponding
DBObject |
Object |
MapOfValuesConverter.encode(Object value,
MappedField mf) |
Object |
SerializedObjectConverter.encode(Object value,
MappedField f) |
Object |
TimestampConverter.encode(Object val,
MappedField optionalExtraInfo) |
Object |
CharArrayConverter.encode(Object value,
MappedField optionalExtraInfo) |
Object |
IterableConverter.encode(Object value,
MappedField mf) |
String |
URIConverter.encode(Object uri,
MappedField optionalExtraInfo) |
Object |
KeyConverter.encode(Object t,
MappedField optionalExtraInfo) |
Object |
ByteConverter.encode(Object value,
MappedField optionalExtraInfo) |
Object |
UUIDConverter.encode(Object value,
MappedField optionalExtraInfo) |
Object |
CharacterConverter.encode(Object value,
MappedField optionalExtraInfo) |
Object |
ClassConverter.encode(Object value,
MappedField optionalExtraInfo) |
Object |
LocaleConverter.encode(Object val,
MappedField optionalExtraInfo) |
Object |
EnumSetConverter.encode(Object value,
MappedField optionalExtraInfo) |
Object |
EnumConverter.encode(Object value,
MappedField optionalExtraInfo) |
void |
Converters.fromDBObject(com.mongodb.DBObject dbObj,
MappedField mf,
Object targetEntity) |
boolean |
Converters.hasDbObjectConverter(MappedField c) |
boolean |
Converters.hasSimpleValueConverter(MappedField c) |
void |
Converters.toDBObject(Object containingObject,
MappedField mf,
com.mongodb.DBObject dbObj,
MapperOptions opts) |
Modifier and Type | Method and Description |
---|---|
Object |
GuiceObjectFactory.createInstance(Mapper mapper,
MappedField mf,
com.mongodb.DBObject dbObj) |
List |
GuiceObjectFactory.createList(MappedField mf) |
Map |
GuiceObjectFactory.createMap(MappedField mf) |
Set |
GuiceObjectFactory.createSet(MappedField mf) |
Modifier and Type | Method and Description |
---|---|
Object |
NamedCoordinateReferenceSystemConverter.decode(Class<?> targetClass,
Object fromDBObject,
MappedField optionalExtraInfo) |
Object |
GeometryShapeConverter.decode(Class<?> targetClass,
Object fromDBObject,
MappedField optionalExtraInfo) |
Object |
GeometryQueryConverter.decode(Class<?> targetClass,
Object fromDBObject,
MappedField optionalExtraInfo) |
Object |
GeometryConverter.decode(Class<?> targetClass,
Object fromDBObject,
MappedField optionalExtraInfo) |
Object |
NamedCoordinateReferenceSystemConverter.encode(Object value,
MappedField optionalExtraInfo) |
Object |
GeometryShapeConverter.encode(Object value,
MappedField optionalExtraInfo) |
Object |
GeometryQueryConverter.encode(Object value,
MappedField optionalExtraInfo) |
Modifier and Type | Class and Description |
---|---|
class |
EphemeralMappedField
This is a MappedField facade that allows us to convert and collect values to be gathered back in to a Map or Collection, e.g., rather
than directly on a mapped entity.
|
Modifier and Type | Method and Description |
---|---|
MappedField |
MappedClass.getMappedField(String storedName)
Returns the MappedField by the name that it will stored in mongodb as
|
MappedField |
MappedClass.getMappedFieldByJavaField(String name)
Returns MappedField for a given java field name on the this MappedClass
|
MappedField |
MappedClass.getMappedIdField() |
MappedField |
EphemeralMappedField.getParent() |
Modifier and Type | Method and Description |
---|---|
List<MappedField> |
MappedClass.getFieldsAnnotatedWith(Class<? extends Annotation> clazz)
Returns fields annotated with the clazz
|
List<MappedField> |
MappedClass.getPersistenceFields() |
List<MappedField> |
MappedField.getTypeParameters() |
Modifier and Type | Method and Description |
---|---|
Object |
DefaultCreator.createInstance(Mapper mapper,
MappedField mf,
com.mongodb.DBObject dbObj) |
List |
DefaultCreator.createList(MappedField mf) |
Map |
DefaultCreator.createMap(MappedField mf) |
Set |
DefaultCreator.createSet(MappedField mf) |
void |
CustomMapper.fromDBObject(com.mongodb.DBObject dbObject,
MappedField mf,
Object entity,
EntityCache cache,
Mapper mapper) |
void |
CustomMapper.toDBObject(Object entity,
MappedField mf,
com.mongodb.DBObject dbObject,
Map<Object,com.mongodb.DBObject> involvedObjects,
Mapper mapper) |
Object |
Mapper.toMongoObject(MappedField mf,
MappedClass mc,
Object value)
Converts a java object to a mongo-compatible object (possibly a DBObject for complex mappings).
|
Constructor and Description |
---|
EphemeralMappedField(ParameterizedType t,
MappedField mf,
Mapper mapper) |
EphemeralMappedField(Type t,
MappedField mf,
Mapper mapper) |
Constructor and Description |
---|
ConstraintViolation(ConstraintViolation.Level level,
MappedClass clazz,
MappedField field,
Class<? extends ClassConstraint> validator,
String message) |
Constructor and Description |
---|
FieldEnumString(MappedField... fields) |
Constructor and Description |
---|
FieldEnumString(List<MappedField> fields) |
Modifier and Type | Method and Description |
---|---|
boolean |
EntityTypeAndIdValueValidator.apply(MappedClass mappedClass,
MappedField mappedField,
Object value,
List<ValidationFailure> validationFailures)
Checks the class of the
value against the type of the ID for the type . |
boolean |
OperationValidator.apply(MappedField mappedField,
FilterOperator operator,
Object value,
List<ValidationFailure> validationFailures)
Apply validation for the given operator.
|
Copyright © 2016. All rights reserved.