Package dev.morphia.mapping
Interface CustomMapper
-
public interface CustomMapper
Deprecated.Developer note. This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
fromDBObject(Datastore datastore, com.mongodb.DBObject dbObject, MappedField mf, java.lang.Object entity, EntityCache cache, Mapper mapper)
Deprecated.Creates an entity and populates its state based on the dbObject given.void
toDBObject(java.lang.Object entity, MappedField mf, com.mongodb.DBObject dbObject, java.util.Map<java.lang.Object,com.mongodb.DBObject> involvedObjects, Mapper mapper)
Deprecated.Converts an entity to a DBObject.
-
-
-
Method Detail
-
fromDBObject
void fromDBObject(Datastore datastore, com.mongodb.DBObject dbObject, MappedField mf, java.lang.Object entity, EntityCache cache, Mapper mapper)
Deprecated.Creates an entity and populates its state based on the dbObject given. This method is primarily an internal method. Reliance on this method may break your application in future releases.- Parameters:
datastore
- the Datastore to usedbObject
- the object state to usemf
- the MappedField with the metadata to use during conversionentity
- the entity to populatecache
- the EntityCache to use to prevent multiple loads of the same entities over and overmapper
- the Mapper to use
-
toDBObject
void toDBObject(java.lang.Object entity, MappedField mf, com.mongodb.DBObject dbObject, java.util.Map<java.lang.Object,com.mongodb.DBObject> involvedObjects, Mapper mapper)
Deprecated.Converts an entity to a DBObject. This method is primarily an internal method. Reliance on this method may break your application in future releases.- Parameters:
entity
- the entity to convertmf
- the MappedField with the metadata to use during conversiondbObject
- the DBObject to populateinvolvedObjects
- a Map of objects already seenmapper
- the Mapper to use
-
-