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()
Methods in dev.morphia with parameters of type Mapper Modifier and Type Method Description Object
ObjectFactory. createInstance(Mapper mapper, PropertyModel mf, Document document)
Creates an instance of the class defined in the discriminator field in the document passed in.default void
EntityInterceptor. postLoad(Object ent, Document document, Mapper mapper)
Deprecated, for removal: This API element is subject to removal in a future version.useEntityInterceptor.postPersist(Object, Document, Datastore)
instead and access the Mapper viaDatastore.getMapper()
ifdefault void
EntityListener. postLoad(T entity, Document document, Mapper mapper)
Deprecated, for removal: This API element is subject to removal in a future version.useEntityListener.postPersist(Object, Document, Datastore)
instead and access the Mapper viaDatastore.getMapper()
ifdefault void
EntityInterceptor. postPersist(Object ent, Document document, Mapper mapper)
Deprecated, for removal: This API element is subject to removal in a future version.useEntityInterceptor.postPersist(Object, Document, Datastore)
instead and access the Mapper viaDatastore.getMapper()
ifdefault void
EntityListener. postPersist(T entity, Document document, Mapper mapper)
Deprecated, for removal: This API element is subject to removal in a future version.useEntityListener.postPersist(Object, Document, Datastore)
instead and access the Mapper viaDatastore.getMapper()
ifdefault void
EntityInterceptor. preLoad(Object ent, Document document, Mapper mapper)
Deprecated, for removal: This API element is subject to removal in a future version.useEntityInterceptor.preLoad(Object, Document, Datastore)
instead and access the Mapper viaDatastore.getMapper()
if necessarydefault void
EntityListener. preLoad(T entity, Document document, Mapper mapper)
Deprecated, for removal: This API element is subject to removal in a future version.useEntityListener.preLoad(Object, Document, Datastore)
instead and access the Mapper viaDatastore.getMapper()
if necessarydefault void
EntityInterceptor. prePersist(Object ent, Document document, Mapper mapper)
Deprecated, for removal: This API element is subject to removal in a future version.useEntityInterceptor.prePersist(Object, Document, Datastore)
instead and access the Mapper viaDatastore.getMapper()
if necessarydefault void
EntityListener. prePersist(T entity, Document document, Mapper mapper)
Deprecated, for removal: This API element is subject to removal in a future version.useEntityListener.prePersist(Object, Document, Datastore)
instead and access the Mapper viaDatastore.getMapper()
if necessary -
Uses of Mapper in dev.morphia.aggregation.codecs
Methods in dev.morphia.aggregation.codecs with parameters of type Mapper Modifier and Type Method Description static Document
ExpressionHelper. document(Mapper mapper, Document seed, Consumer<BsonWriter> body)
-
Uses of Mapper in dev.morphia.mapping
Methods in dev.morphia.mapping that return Mapper Modifier and Type Method Description Mapper
Mapper. copy()
Methods in dev.morphia.mapping with parameters of type Mapper Modifier and Type Method Description MorphiaCodecProvider
EntityModelImporter. getCodecProvider(Mapper mapper)
Returns the codec provider responsible for creating the codecs for theEntityModel
s returned by this importer.List<EntityModel>
EntityModelImporter. getModels(Mapper mapper)
Returns the models to be introduced by this importer. -
Uses of Mapper in dev.morphia.mapping.codec
Methods in dev.morphia.mapping.codec that return Mapper Modifier and Type Method Description protected Mapper
MorphiaCodecProvider. getMapper()
-
Uses of Mapper in dev.morphia.mapping.codec.pojo
Methods in dev.morphia.mapping.codec.pojo that return Mapper Modifier and Type Method Description Mapper
MorphiaCodec. getMapper()
Constructors in dev.morphia.mapping.codec.pojo with parameters of type Mapper Constructor Description EntityModelBuilder(Mapper mapper, Class<?> type)
Create a builder -
Uses of Mapper in dev.morphia.mapping.codec.references
Methods in dev.morphia.mapping.codec.references with parameters of type Mapper Modifier and Type Method Description static Object
ReferenceCodec. encodeId(Mapper mapper, Object value, EntityModel model)
Encodes a value -
Uses of Mapper in dev.morphia.mapping.codec.writer
Methods in dev.morphia.mapping.codec.writer with parameters of type Mapper Modifier and Type Method Description static Document
DocumentWriter. encode(Object value, Mapper mapper, CodecRegistry codecRegistry)
Encodes a value.static Document
DocumentWriter. encode(Object value, Mapper mapper, CodecRegistry codecRegistry, EncoderContext encoderContext)
Encodes this writer's structuring using the given codec -
Uses of Mapper in dev.morphia.mapping.conventions
Methods in dev.morphia.mapping.conventions with parameters of type Mapper Modifier and Type Method Description void
ConfigureProperties. apply(Mapper mapper, EntityModelBuilder modelBuilder)
void
FieldDiscovery. apply(Mapper mapper, EntityModelBuilder builder)
void
MethodDiscovery. apply(Mapper mapper, EntityModelBuilder builder)
void
MorphiaConvention. apply(Mapper mapper, EntityModelBuilder builder)
This method applies this Convention to the given buildervoid
MorphiaDefaultsConvention. apply(Mapper mapper, EntityModelBuilder modelBuilder)
-
Uses of Mapper in dev.morphia.mapping.experimental
Methods in dev.morphia.mapping.experimental that return Mapper Modifier and Type Method Description protected Mapper
MorphiaReference. getMapper()
Deprecated, for removal: This API element is subject to removal in a future version.Methods in dev.morphia.mapping.experimental with parameters of type Mapper Modifier and Type Method Description static MapReference
MapReference. decode(Datastore datastore, Mapper mapper, PropertyModel property, Document document)
Deprecated, for removal: This API element is subject to removal in a future version.Decodes a document in to entitiesstatic MorphiaReference<?>
SingleReference. decode(Datastore datastore, Mapper mapper, PropertyModel mappedField, Class<?> paramType, Document document)
Deprecated, for removal: This API element is subject to removal in a future version.Decodes a document in to an entityMap<String,Object>
MapReference. getId(Mapper mapper, EntityModel field)
Deprecated, for removal: This API element is subject to removal in a future version. -
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, EntityModel model, Set<ConstraintViolation> ve)
Check that an EntityModel meets the constraintvoid
MappingValidator. validate(Mapper mapper, EntityModel entityModel)
-
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
DuplicatedAttributeNames. check(Mapper mapper, EntityModel entityModel, Set<ConstraintViolation> ve)
void
EntityAndEmbed. check(Mapper mapper, EntityModel entityModel, Set<ConstraintViolation> ve)
void
EntityOrEmbed. check(Mapper mapper, EntityModel entityModel, Set<ConstraintViolation> ve)
void
MultipleId. check(Mapper mapper, EntityModel entityModel, Set<ConstraintViolation> ve)
void
MultipleVersions. check(Mapper mapper, EntityModel entityModel, Set<ConstraintViolation> ve)
void
ShardKeyNames. check(Mapper mapper, EntityModel model, 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
ContradictingAnnotations. check(Mapper mapper, EntityModel entityModel, PropertyModel propertyModel, Set<ConstraintViolation> ve)
protected void
IdDoesNotMix. check(Mapper mapper, EntityModel entityModel, PropertyModel propertyModel, Set<ConstraintViolation> ve)
protected void
LazyReferenceMissingDependencies. check(Mapper mapper, EntityModel entityModel, PropertyModel propertyModel, Set<ConstraintViolation> ve)
protected void
LazyReferenceOnArray. check(Mapper mapper, EntityModel model, PropertyModel propertyModel, Set<ConstraintViolation> ve)
protected void
MapKeyTypeConstraint. check(Mapper mapper, EntityModel entityModel, PropertyModel propertyModel, Set<ConstraintViolation> ve)
protected abstract void
PropertyConstraint. check(Mapper mapper, EntityModel entityModel, PropertyModel propertyModel, Set<ConstraintViolation> ve)
void
PropertyConstraint. check(Mapper mapper, EntityModel entityModel, Set<ConstraintViolation> ve)
protected void
ReferenceToUnidentifiable. check(Mapper mapper, EntityModel entityModel, PropertyModel propertyModel, Set<ConstraintViolation> ve)
protected void
VersionMisuse. check(Mapper mapper, EntityModel entityModel, PropertyModel propertyModel, Set<ConstraintViolation> ve)
-
Uses of Mapper in dev.morphia.query
Methods in dev.morphia.query with parameters of type Mapper Modifier and Type Method Description <T> FindIterable<T>
FindOptions. apply(FindIterable<T> iterable, Mapper mapper, Class<?> type)
Document
Projection. map(Mapper mapper, Class<?> type)
Converts this to Document form -
Uses of Mapper in dev.morphia.query.filters
Methods in dev.morphia.query.filters with parameters of type Mapper Modifier and Type Method Description protected String
Filter. path(Mapper mapper)
-