Uses of Class
dev.morphia.mapping.codec.pojo.FieldModel
-
-
Uses of FieldModel in dev.morphia
Methods in dev.morphia with parameters of type FieldModel Modifier and Type Method Description Object
ObjectFactory. createInstance(Mapper mapper, FieldModel mf, org.bson.Document document)
Creates an instance of the class defined in the discriminator field in the document passed in.List
ObjectFactory. createList(FieldModel mf)
Defines how morphia creates a List object.Map
ObjectFactory. createMap(FieldModel mf)
Defines how morphia creates a Map object.Set
ObjectFactory. createSet(FieldModel mf)
Defines how morphia creates a Set object. -
Uses of FieldModel in dev.morphia.mapping
Methods in dev.morphia.mapping with parameters of type FieldModel Modifier and Type Method Description void
NoArgCreator. set(Object value, FieldModel model)
-
Uses of FieldModel in dev.morphia.mapping.codec
Methods in dev.morphia.mapping.codec that return FieldModel Modifier and Type Method Description protected FieldModel
PropertyCodec. getFieldModel()
Methods in dev.morphia.mapping.codec with parameters of type FieldModel Modifier and Type Method Description void
InstanceCreator. set(Object value, FieldModel model)
Sets a value for the given FieldModel -
Uses of FieldModel in dev.morphia.mapping.codec.pojo
Methods in dev.morphia.mapping.codec.pojo that return FieldModel Modifier and Type Method Description FieldModel
FieldModelBuilder. build()
Creates theFieldModel
.FieldModel
EntityModel. getField(String name)
FieldModel
EntityModel. getIdField()
FieldModel
EntityModel. getVersionField()
Methods in dev.morphia.mapping.codec.pojo that return types with arguments of type FieldModel Modifier and Type Method Description List<FieldModel>
EntityModel. getFields()
Returns all the fields on this modelList<FieldModel>
EntityModel. getFields(Class<? extends Annotation> type)
Returns all the fields on this model annotated by the given typeMethods in dev.morphia.mapping.codec.pojo with parameters of type FieldModel Modifier and Type Method Description protected void
EntityDecoder. decodeModel(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext, MorphiaInstanceCreator instanceCreator, FieldModel model)
-
Uses of FieldModel in dev.morphia.mapping.codec.references
Methods in dev.morphia.mapping.codec.references with parameters of type FieldModel Modifier and Type Method Description static Object
ReferenceCodec. encodeId(Mapper mapper, Datastore datastore, Object value, FieldModel model)
Encodes a value -
Uses of FieldModel in dev.morphia.mapping.experimental
Methods in dev.morphia.mapping.experimental with parameters of type FieldModel Modifier and Type Method Description static MapReference
MapReference. decode(Datastore datastore, Mapper mapper, FieldModel mappedField, org.bson.Document document)
Decodes a document in to entitiesstatic MorphiaReference<?>
SingleReference. decode(Datastore datastore, Mapper mapper, FieldModel mappedField, Class<?> paramType, org.bson.Document document)
Decodes a document in to an entityObject
CollectionReference. encode(Mapper mapper, Object value, FieldModel field)
Object
MapReference. encode(Mapper mapper, Object value, FieldModel field)
abstract Object
MorphiaReference. encode(Mapper mapper, Object value, FieldModel optionalExtraInfo)
Object
SingleReference. encode(Mapper mapper, Object value, FieldModel optionalExtraInfo)
void
ConstructorCreator. set(Object value, FieldModel model)
-
Uses of FieldModel in dev.morphia.mapping.validation
Constructors in dev.morphia.mapping.validation with parameters of type FieldModel Constructor Description ConstraintViolation(ConstraintViolation.Level level, EntityModel entityModel, FieldModel field, Class<? extends ClassConstraint> validator, String message)
Creates a violation instance to record invalid mapping metadata -
Uses of FieldModel in dev.morphia.mapping.validation.classrules
Constructors in dev.morphia.mapping.validation.classrules with parameters of type FieldModel Constructor Description FieldEnumString(FieldModel... fields)
Creates a FieldEnumString for the given fieldsConstructor parameters in dev.morphia.mapping.validation.classrules with type arguments of type FieldModel Constructor Description FieldEnumString(List<FieldModel> fields)
Creates a FieldEnumString for the given fields -
Uses of FieldModel in dev.morphia.mapping.validation.fieldrules
Methods in dev.morphia.mapping.validation.fieldrules with parameters of type FieldModel 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)
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)
-