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.annotations
Methods in dev.morphia.annotations with parameters of type EntityModel Modifier and Type Method Description void
IndexHelper. createIndex(com.mongodb.client.MongoCollection<?> collection, EntityModel model)
-
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
PropertyCodec. 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
FieldModelBuilder. entityModel()
EntityModel
FieldModel. getEntityModel()
EntityModel
MorphiaCodec. getEntityModel()
EntityModel
EntityModel. getSuperClass()
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)
FieldModelBuilder
FieldModelBuilder. entityModel(EntityModel entityModel)
Sets the entity model ownerprotected MorphiaInstanceCreator
EntityDecoder. getInstanceCreator(EntityModel classModel)
Constructors 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, Datastore datastore, 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)
-
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
ConstructorParameterNameConstraint. check(Mapper mapper, EntityModel model, Set<ConstraintViolation> ve)
void
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, FieldModel field, 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
EmbeddedAndId. check(Mapper mapper, EntityModel entityModel, Set<ConstraintViolation> ve)
void
EmbeddedAndValue. check(Mapper mapper, EntityModel entityModel, Set<ConstraintViolation> ve)
void
EntityAndEmbed. check(Mapper mapper, EntityModel entityModel, Set<ConstraintViolation> ve)
void
EntityCannotBeMapOrIterable. 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
NoId. 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
ContradictingFieldAnnotation. check(Mapper mapper, EntityModel entityModel, FieldModel mf, Set<ConstraintViolation> ve)
protected abstract void
FieldConstraint. check(Mapper mapper, EntityModel entityModel, FieldModel mf, Set<ConstraintViolation> ve)
void
FieldConstraint. check(Mapper mapper, EntityModel entityModel, Set<ConstraintViolation> ve)
protected void
IdDoesNotMix. check(Mapper mapper, EntityModel entityModel, FieldModel mf, Set<ConstraintViolation> ve)
protected void
LazyReferenceMissingDependencies. check(Mapper mapper, EntityModel entityModel, FieldModel mf, Set<ConstraintViolation> ve)
protected void
LazyReferenceOnArray. check(Mapper mapper, EntityModel model, FieldModel mf, Set<ConstraintViolation> ve)
protected void
MapKeyTypeConstraint. check(Mapper mapper, EntityModel entityModel, FieldModel mf, Set<ConstraintViolation> ve)
protected void
ReferenceToUnidentifiable. check(Mapper mapper, EntityModel entityModel, FieldModel mf, Set<ConstraintViolation> ve)
protected void
VersionMisuse. check(Mapper mapper, EntityModel entityModel, FieldModel mf, 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.
-