Uses of Class
dev.morphia.mapping.Mapper
-
-
Uses of Mapper in dev.morphia
Methods in dev.morphia that return Mapper Modifier and Type Method Description MapperDatastore. getMapper()MapperDatastoreImpl. getMapper()Deprecated.MapperMorphia. getMapper()Methods in dev.morphia with parameters of type Mapper Modifier and Type Method Description DatastoreMorphia. createDatastore(com.mongodb.MongoClient mongoClient, Mapper mapper, java.lang.String dbName)Creates a new Datastore for interacting with MongoDB using POJOsjava.lang.ObjectObjectFactory. createInstance(Mapper mapper, MappedField mf, com.mongodb.DBObject dbObj)Creates an instance of the class defined in the discriminator field in the dbObject passed in.voidAbstractEntityInterceptor. postLoad(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)voidEntityInterceptor. postLoad(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)voidAbstractEntityInterceptor. postPersist(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)voidEntityInterceptor. postPersist(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)voidAbstractEntityInterceptor. preLoad(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)voidEntityInterceptor. preLoad(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)voidAbstractEntityInterceptor. prePersist(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)voidEntityInterceptor. prePersist(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)voidAbstractEntityInterceptor. preSave(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)voidEntityInterceptor. preSave(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)voidMapreduceResults. setInlineRequiredOptions(Datastore datastore, java.lang.Class<T> clazz, Mapper mapper, EntityCache cache)Deprecated.Sets the required options when the operation type was INLINEvoidDatastoreImpl. setMapper(Mapper mapper)Deprecated.Sets the Mapper this Datastore usesConstructors in dev.morphia with parameters of type Mapper Constructor Description DatastoreImpl(Morphia morphia, Mapper mapper, com.mongodb.MongoClient mongoClient, java.lang.String dbName)Deprecated.This is not meant to be directly instantiated by end user code.Morphia(Mapper mapper)Creates a Morphia instance with the given MapperMorphia(Mapper mapper, java.util.Set<java.lang.Class> classesToMap)Creates a Morphia instance with the given Mapper and class set. -
Uses of Mapper in dev.morphia.converters
Methods in dev.morphia.converters that return Mapper Modifier and Type Method Description MapperTypeConverter. getMapper()Methods in dev.morphia.converters with parameters of type Mapper Modifier and Type Method Description voidTypeConverter. setMapper(Mapper mapper)Sets the Mapper to use.Constructors in dev.morphia.converters with parameters of type Mapper Constructor Description Converters(Mapper mapper)Creates a bundle with a particular Mapper.CustomConverters(Mapper mapper)Creates a bundle with a particular Mapper.DefaultConverters(Mapper mapper)Creates a bundle with a particular Mapper.LocalDateConverter(Mapper mapper)Creates the Converter.LocalDateTimeConverter(Mapper mapper)Creates the Converter. -
Uses of Mapper in dev.morphia.converters.experimental
Constructors in dev.morphia.converters.experimental with parameters of type Mapper Constructor Description ReferenceConverter(Mapper mapper)Creates the Converter. -
Uses of Mapper in dev.morphia.geo
Constructors in dev.morphia.geo with parameters of type Mapper Constructor Description GeometryQueryConverter(Mapper mapper)Create a new converter. -
Uses of Mapper in dev.morphia.internal
Constructors in dev.morphia.internal with parameters of type Mapper Constructor Description PathTarget(Mapper mapper, MappedClass root, java.lang.String path)Creates a resolution context for the given root and path.PathTarget(Mapper mapper, MappedClass root, java.lang.String path, boolean validateNames)Creates a resolution context for the given root and path.PathTarget(Mapper mapper, java.lang.Class<T> clazz, java.lang.String field)PathTarget(Mapper mapper, java.lang.Class<T> clazz, java.lang.String field, boolean validateNames) -
Uses of Mapper in dev.morphia.mapping
Methods in dev.morphia.mapping with parameters of type Mapper Modifier and Type Method Description com.mongodb.DBObjectMappedClass. callLifecycleMethods(java.lang.Class<? extends java.lang.annotation.Annotation> event, java.lang.Object entity, com.mongodb.DBObject dbObj, Mapper mapper)Deprecated.Call the lifecycle methodsjava.lang.ObjectDefaultCreator. createInstance(Mapper mapper, MappedField mf, com.mongodb.DBObject dbObj)protected voidMappedClass. discover(Mapper mapper)Deprecated.Discovers interesting (that we care about) things about the class.protected voidMappedField. discover(Mapper mapper)Deprecated.Discovers interesting (that we care about) things about the field.protected voidMappedField. discoverType(Mapper mapper)Deprecated.voidCustomMapper. 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.voidCustomMapper. 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.voidMappedClass. validate(Mapper mapper)Deprecated.Validates this MappedClassConstructors in dev.morphia.mapping with parameters of type Mapper Constructor Description EphemeralMappedField(java.lang.reflect.ParameterizedType t, MappedField mf, Mapper mapper)Creates an EphemeralMappedField.EphemeralMappedField(java.lang.reflect.Type t, MappedField mf, Mapper mapper)Creates an EphemeralMappedField.MappedClass(java.lang.Class<?> clazz, Mapper mapper)Deprecated.Creates a MappedClass instanceMapper(MapperOptions options, Mapper mapper)Deprecated.Creates a new Mapper with the given options and a Mapper to copy. -
Uses of Mapper in dev.morphia.mapping.experimental
Methods in dev.morphia.mapping.experimental with parameters of type Mapper Modifier and Type Method Description static MorphiaReference<?>CollectionReference. decode(Datastore datastore, Mapper mapper, MappedField mappedField, java.lang.Class paramType, com.mongodb.DBObject dbObject)Decodes a document in to entitiesstatic MapReferenceMapReference. decode(Datastore datastore, Mapper mapper, MappedField mappedField, com.mongodb.DBObject dbObject)Decodes a document in to entitiesstatic MorphiaReference<?>SingleReference. decode(Datastore datastore, Mapper mapper, MappedField mappedField, java.lang.Class paramType, com.mongodb.DBObject dbObject)Decodes a document in to an entityjava.lang.ObjectCollectionReference. encode(Mapper mapper, java.lang.Object value, MappedField field)java.lang.ObjectMapReference. encode(Mapper mapper, java.lang.Object value, MappedField field)abstract java.lang.ObjectMorphiaReference. encode(Mapper mapper, java.lang.Object value, MappedField optionalExtraInfo)java.lang.ObjectSingleReference. encode(Mapper mapper, java.lang.Object value, MappedField optionalExtraInfo) -
Uses of Mapper in dev.morphia.mapping.validation
Methods in dev.morphia.mapping.validation with parameters of type Mapper Modifier and Type Method Description voidClassConstraint. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)Check that a MappedClass meets the constraintvoidMappingValidator. validate(Mapper mapper, MappedClass mappedClass)Deprecated.voidMappingValidator. validate(Mapper mapper, java.util.List<MappedClass> classes)Validates a List of MappedClasses -
Uses of Mapper in dev.morphia.mapping.validation.classrules
Methods in dev.morphia.mapping.validation.classrules with parameters of type Mapper Modifier and Type Method Description voidContainsEmbeddedWithId. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)voidDuplicatedAttributeNames. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)voidEmbeddedAndId. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)voidEmbeddedAndValue. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)voidEntityAndEmbed. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)voidEntityCannotBeMapOrIterable. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)voidMultipleId. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)voidMultipleVersions. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)voidNoId. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve) -
Uses of Mapper in dev.morphia.mapping.validation.fieldrules
Methods in dev.morphia.mapping.validation.fieldrules with parameters of type Mapper Modifier and Type Method Description protected voidContradictingFieldAnnotation. check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)protected abstract voidFieldConstraint. check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)voidFieldConstraint. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)protected voidIdDoesNotMix. check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)protected voidLazyReferenceMissingDependencies. check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)protected voidLazyReferenceOnArray. check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)protected voidMapKeyDifferentFromString. check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)protected voidMapNotSerializable. check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)protected voidMisplacedProperty. check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)protected voidReferenceToUnidentifiable. check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)protected voidVersionMisuse. check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve) -
Uses of Mapper in dev.morphia.query
Methods in dev.morphia.query that return Mapper Modifier and Type Method Description MapperMorphiaIterator. getMapper()Deprecated.Methods in dev.morphia.query with parameters of type Mapper Modifier and Type Method Description static com.mongodb.BasicDBObjectQueryImpl. parseFieldsString(java.lang.String str, java.lang.Class clazz, Mapper mapper, boolean validate)Deprecated.this is an internal method and will be removed in the next versionConstructors in dev.morphia.query with parameters of type Mapper Constructor Description MorphiaIterator(Datastore datastore, java.util.Iterator<com.mongodb.DBObject> it, Mapper mapper, java.lang.Class<T> clazz, java.lang.String collection, EntityCache cache)Deprecated.Creates a MorphiaIteratorMorphiaKeyIterator(Datastore datastore, com.mongodb.DBCursor cursor, Mapper mapper, java.lang.Class<T> clazz, java.lang.String collection)Deprecated.CreateUpdateOpsImpl(java.lang.Class<T> type, Mapper mapper)Creates an UpdateOpsImpl for the type given. -
Uses of Mapper in dev.morphia.query.internal
Constructors in dev.morphia.query.internal with parameters of type Mapper Constructor Description MorphiaCursor(Datastore datastore, com.mongodb.Cursor cursor, Mapper mapper, java.lang.Class<T> clazz, EntityCache cache)Creates a MorphiaCursorMorphiaKeyCursor(Datastore datastore, com.mongodb.Cursor cursor, Mapper mapper, java.lang.Class<T> clazz, java.lang.String collection)Create
-