Uses of Class
dev.morphia.mapping.codec.pojo.EntityModel
-
-
Uses of EntityModel in dev.morphia
Methods in dev.morphia with parameters of type EntityModel Modifier and Type Method Description void
DatastoreImpl. enableValidation(EntityModel model, Validation validation)
-
Uses of EntityModel in dev.morphia.internal
Methods in dev.morphia.internal that return EntityModel Modifier and Type Method Description EntityModel
PathTarget. root()
Constructors in dev.morphia.internal with parameters of type EntityModel Constructor Description PathTarget(Mapper mapper, EntityModel root, String path)
Creates a resolution context for the given root and path.PathTarget(Mapper mapper, EntityModel root, String path, boolean validateNames)
Creates a resolution context for the given root and path. -
Uses of EntityModel in dev.morphia.mapping
Methods in dev.morphia.mapping that return EntityModel Modifier and Type Method Description EntityModel
Mapper. getEntityModel(Class type)
Gets theEntityModel
for the object (type).<A extends Annotation>
EntityModelMapper. mapExternal(A annotation, Class type)
Maps an external class.Methods in dev.morphia.mapping that return types with arguments of type EntityModel Modifier and Type Method Description List<EntityModel>
Mapper. getClassesMappedToCollection(String collection)
Finds all the types mapped to a named collectionList<EntityModel>
Mapper. getMappedEntities()
List<EntityModel>
Mapper. map(Class... entityClasses)
Maps a set of classesList<EntityModel>
Mapper. map(List<Class> classes)
Maps a set of classesMethods in dev.morphia.mapping with parameters of type EntityModel Modifier and Type Method Description void
DiscriminatorLookup. addModel(EntityModel entityModel)
Adds a model to the mapvoid
Mapper. updateQueryWithDiscriminators(EntityModel model, org.bson.Document query)
Updates a query with any discriminators from subtypes if polymorphic queries are enabledConstructors in dev.morphia.mapping with parameters of type EntityModel Constructor Description InstanceCreatorFactoryImpl(EntityModel model)
Creates a factory for this type -
Uses of EntityModel in dev.morphia.mapping.codec
Methods in dev.morphia.mapping.codec that return EntityModel Modifier and Type Method Description protected EntityModel
BaseReferenceCodec. getEntityModelForField()
-
Uses of EntityModel in dev.morphia.mapping.codec.pojo
Methods in dev.morphia.mapping.codec.pojo that return EntityModel Modifier and Type Method Description EntityModel
EntityModelBuilder. build()
Creates a new ClassModel instance based on the mapping data provided.EntityModel
MorphiaCodec. getEntityModel()
EntityModel
PropertyModel. getEntityModel()
EntityModel
EntityModel. getSuperClass()
EntityModel
PropertyModelBuilder. owner()
EntityModel
EntityModelBuilder. superclass()
Methods in dev.morphia.mapping.codec.pojo that return types with arguments of type EntityModel Modifier and Type Method Description List<EntityModel>
EntityModel. getSubtypes()
Get the subtypes of this modelList<EntityModel>
EntityModelBuilder. interfaces()
Methods in dev.morphia.mapping.codec.pojo with parameters of type EntityModel Modifier and Type Method Description protected void
EntityDecoder. decodeProperties(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext, MorphiaInstanceCreator instanceCreator, EntityModel classModel)
protected void
EntityEncoder. encodeDiscriminator(org.bson.BsonWriter writer, EntityModel model)
protected void
MergingEncoder. encodeDiscriminator(org.bson.BsonWriter writer, EntityModel model)
PropertyModelBuilder
PropertyModelBuilder. owner(EntityModel entityModel)
Sets the entity model ownerConstructors in dev.morphia.mapping.codec.pojo with parameters of type EntityModel Constructor Description MorphiaCodec(Datastore datastore, EntityModel model, List<org.bson.codecs.pojo.PropertyCodecProvider> propertyCodecProviders, DiscriminatorLookup discriminatorLookup, org.bson.codecs.configuration.CodecRegistry registry)
Creates a new codec -
Uses of EntityModel in dev.morphia.mapping.codec.references
Methods in dev.morphia.mapping.codec.references with parameters of type EntityModel Modifier and Type Method Description static Object
ReferenceCodec. encodeId(Mapper mapper, Object value, EntityModel model)
Encodes a value -
Uses of EntityModel in dev.morphia.mapping.experimental
Methods in dev.morphia.mapping.experimental with parameters of type EntityModel Modifier and Type Method Description static Constructor<?>
ConstructorCreator. getFullConstructor(EntityModel model)
Map<String,Object>
MapReference. getId(Mapper mapper, Datastore datastore, EntityModel field)
Constructors in dev.morphia.mapping.experimental with parameters of type EntityModel Constructor Description ConstructorCreator(EntityModel model, Constructor<?> constructor)
ListReference(Datastore datastore, EntityModel model, List ids)
MapReference(Datastore datastore, Map<String,Object> ids, EntityModel entityModel)
SetReference(Datastore datastore, EntityModel entityModel, List ids)
SingleReference(Datastore datastore, EntityModel entityModel, Object id)
UnsafeConstructorCreator(EntityModel model)
-
Uses of EntityModel in dev.morphia.mapping.validation
Methods in dev.morphia.mapping.validation with parameters of type EntityModel 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)
Constructors in dev.morphia.mapping.validation with parameters of type EntityModel Constructor Description ConstraintViolation(ConstraintViolation.Level level, EntityModel entityModel, PropertyModel property, Class<? extends ClassConstraint> validator, String message)
Creates a violation instance to record invalid mapping metadataConstraintViolation(ConstraintViolation.Level level, EntityModel entityModel, Class<? extends ClassConstraint> validator, String message)
Creates a violation instance to record invalid mapping metadata -
Uses of EntityModel in dev.morphia.mapping.validation.classrules
Methods in dev.morphia.mapping.validation.classrules with parameters of type EntityModel 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)
-
Uses of EntityModel in dev.morphia.mapping.validation.fieldrules
Methods in dev.morphia.mapping.validation.fieldrules with parameters of type EntityModel 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 EntityModel in dev.morphia.query
Constructors in dev.morphia.query with parameters of type EntityModel Constructor Description FieldEndImpl(Mapper mapper, String field, T target, EntityModel model, boolean validating)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a FieldEnd for a particular field.
-