public interface CustomMapper
| Modifier and Type | Method and Description |
|---|---|
void |
fromDBObject(Datastore datastore,
DBObject dbObject,
MappedField mf,
Object entity,
EntityCache cache,
Mapper mapper)
Creates an entity and populates its state based on the dbObject given.
|
void |
toDBObject(Object entity,
MappedField mf,
DBObject dbObject,
Map<Object,DBObject> involvedObjects,
Mapper mapper)
Converts an entity to a DBObject.
|
void fromDBObject(Datastore datastore, DBObject dbObject, MappedField mf, Object entity, EntityCache cache, Mapper mapper)
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 usevoid toDBObject(Object entity, MappedField mf, DBObject dbObject, Map<Object,DBObject> involvedObjects, Mapper mapper)
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