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 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 use
        dbObject - the object state to use
        mf - the MappedField with the metadata to use during conversion
        entity - the entity to populate
        cache - the EntityCache to use to prevent multiple loads of the same entities over and over
        mapper - 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 convert
        mf - the MappedField with the metadata to use during conversion
        dbObject - the DBObject to populate
        involvedObjects - a Map of objects already seen
        mapper - the Mapper to use