Modifier and Type | Method and Description |
---|---|
MappedClass |
Mapper.addMappedClass(Class c)
Creates a MappedClass and validates it.
|
MappedClass |
Mapper.getMappedClass(Object obj)
Gets the
MappedClass for the object (type). |
Modifier and Type | Method and Description |
---|---|
Collection<MappedClass> |
Mapper.getMappedClasses()
Returns collection of MappedClasses
|
Map<String,MappedClass> |
Mapper.getMCMap()
Returns map of MappedClasses by class name
|
Modifier and Type | Method and Description |
---|---|
Object |
Mapper.toMongoObject(MappedField mf,
MappedClass mc,
Object value)
Converts a java object to a mongo-compatible object (possibly a DBObject for complex mappings).
|
Modifier and Type | Method and Description |
---|---|
void |
ClassConstraint.check(MappedClass mc,
Set<ConstraintViolation> ve) |
void |
MappingValidator.validate(MappedClass mappedClass)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
MappingValidator.validate(List<MappedClass> classes) |
Constructor and Description |
---|
ConstraintViolation(ConstraintViolation.Level level,
MappedClass clazz,
Class<? extends ClassConstraint> validator,
String message) |
ConstraintViolation(ConstraintViolation.Level level,
MappedClass clazz,
MappedField field,
Class<? extends ClassConstraint> validator,
String message) |
Modifier and Type | Method and Description |
---|---|
void |
EmbeddedAndValue.check(MappedClass mc,
Set<ConstraintViolation> ve) |
void |
EntityAndEmbed.check(MappedClass mc,
Set<ConstraintViolation> ve) |
void |
DuplicatedAttributeNames.check(MappedClass mc,
Set<ConstraintViolation> ve) |
void |
EntityCannotBeMapOrIterable.check(MappedClass mc,
Set<ConstraintViolation> ve) |
void |
NoId.check(MappedClass mc,
Set<ConstraintViolation> ve) |
void |
MultipleVersions.check(MappedClass mc,
Set<ConstraintViolation> ve) |
void |
EmbeddedAndId.check(MappedClass mc,
Set<ConstraintViolation> ve) |
void |
MultipleId.check(MappedClass mc,
Set<ConstraintViolation> ve) |
void |
ContainsEmbeddedWithId.check(MappedClass mc,
Set<ConstraintViolation> ve) |
Modifier and Type | Method and Description |
---|---|
void |
FieldConstraint.check(MappedClass mc,
Set<ConstraintViolation> ve) |
Modifier and Type | Method and Description |
---|---|
boolean |
EntityTypeAndIdValueValidator.apply(MappedClass mappedClass,
MappedField mappedField,
Object value,
List<ValidationFailure> validationFailures)
Checks the class of the
value against the type of the ID for the type . |
Copyright © 2016. All rights reserved.