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 Mapper
Datastore. getMapper()
Mapper
DatastoreImpl. getMapper()
Deprecated.Mapper
Morphia. getMapper()
Methods in dev.morphia with parameters of type Mapper Modifier and Type Method Description Datastore
Morphia. createDatastore(com.mongodb.MongoClient mongoClient, Mapper mapper, java.lang.String dbName)
Creates a new Datastore for interacting with MongoDB using POJOsjava.lang.Object
ObjectFactory. 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.void
AbstractEntityInterceptor. postLoad(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)
void
EntityInterceptor. postLoad(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)
void
AbstractEntityInterceptor. postPersist(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)
void
EntityInterceptor. postPersist(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)
void
AbstractEntityInterceptor. preLoad(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)
void
EntityInterceptor. preLoad(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)
void
AbstractEntityInterceptor. prePersist(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)
void
EntityInterceptor. prePersist(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)
void
AbstractEntityInterceptor. preSave(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)
void
EntityInterceptor. preSave(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)
Deprecated.removed in 2.0void
MapreduceResults. setInlineRequiredOptions(Datastore datastore, java.lang.Class<T> clazz, Mapper mapper, EntityCache cache)
Deprecated.Sets the required options when the operation type was INLINEvoid
DatastoreImpl. 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 Mapper
TypeConverter. getMapper()
Methods in dev.morphia.converters with parameters of type Mapper Modifier and Type Method Description void
TypeConverter. setMapper(Mapper mapper)
Sets the Mapper to use.Constructors in dev.morphia.converters with parameters of type Mapper Constructor Description Converters(Mapper mapper)
Deprecated.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.DBObject
MappedClass. 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.Object
DefaultCreator. createInstance(Mapper mapper, MappedField mf, com.mongodb.DBObject dbObj)
protected void
MappedClass. discover(Mapper mapper)
Deprecated.Discovers interesting (that we care about) things about the class.protected void
MappedField. discover(Mapper mapper)
Deprecated.Discovers interesting (that we care about) things about the field.protected void
MappedField. discoverType(Mapper mapper)
Deprecated.void
CustomMapper. 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
CustomMapper. 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.void
MappedClass. 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 MapReference
MapReference. 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.Object
CollectionReference. encode(Mapper mapper, java.lang.Object value, MappedField field)
java.lang.Object
MapReference. encode(Mapper mapper, java.lang.Object value, MappedField field)
abstract java.lang.Object
MorphiaReference. encode(Mapper mapper, java.lang.Object value, MappedField optionalExtraInfo)
java.lang.Object
SingleReference. 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 void
ClassConstraint. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)
Check that a MappedClass meets the constraintvoid
MappingValidator. validate(Mapper mapper, MappedClass mappedClass)
Deprecated.void
MappingValidator. 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 void
ContainsEmbeddedWithId. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)
void
DuplicatedAttributeNames. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)
void
EmbeddedAndId. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)
void
EmbeddedAndValue. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)
void
EntityAndEmbed. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)
void
EntityCannotBeMapOrIterable. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)
void
MultipleId. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)
void
MultipleVersions. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)
void
NoId. 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 void
ContradictingFieldAnnotation. check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)
protected abstract void
FieldConstraint. check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)
void
FieldConstraint. check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)
protected void
IdDoesNotMix. check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)
protected void
LazyReferenceMissingDependencies. check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)
protected void
LazyReferenceOnArray. check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)
protected void
MapKeyDifferentFromString. check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)
protected void
MapNotSerializable. check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)
protected void
MisplacedProperty. check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)
protected void
ReferenceToUnidentifiable. check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)
protected void
VersionMisuse. 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 Mapper
MorphiaIterator. getMapper()
Deprecated.Methods in dev.morphia.query with parameters of type Mapper Modifier and Type Method Description static com.mongodb.BasicDBObject
QueryImpl. 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
-