Package | Description |
---|---|
org.bson.codecs.pojo |
This package contains classes specific to mapping user POJOs.
|
Modifier and Type | Method and Description |
---|---|
static <T> PropertyModelBuilder<T> |
PropertyModel.builder()
Create a new
PropertyModelBuilder |
PropertyModelBuilder<T> |
PropertyModelBuilder.codec(Codec<T> codec)
Sets a custom codec for the property
|
PropertyModelBuilder<T> |
PropertyModelBuilder.discriminatorEnabled(boolean discriminatorEnabled)
Enables or disables the use of a discriminator when serializing
|
PropertyModelBuilder<?> |
ClassModelBuilder.getProperty(String propertyName)
Gets a property by the property name.
|
PropertyModelBuilder<T> |
PropertyModelBuilder.propertyAccessor(PropertyAccessor<T> propertyAccessor)
Sets the
PropertyAccessor |
PropertyModelBuilder<T> |
PropertyModelBuilder.propertySerialization(PropertySerialization<T> propertySerialization)
Sets the
PropertySerialization checker |
PropertyModelBuilder<T> |
PropertyModelBuilder.readAnnotations(List<Annotation> annotations)
Sets the read annotations, to be applied when serializing to BSON
|
PropertyModelBuilder<T> |
PropertyModelBuilder.readName(String readName)
Sets the readName, the key for this property when deserializing the data from BSON.
|
PropertyModelBuilder<T> |
PropertyModelBuilder.writeAnnotations(List<Annotation> writeAnnotations)
Sets the writeAnnotations, to be applied when deserializing from BSON
|
PropertyModelBuilder<T> |
PropertyModelBuilder.writeName(String writeName)
Sets the writeName, the key for this property when serializing the data into BSON.
|
Modifier and Type | Method and Description |
---|---|
List<PropertyModelBuilder<?>> |
ClassModelBuilder.getPropertyModelBuilders() |
Copyright © 2018. All rights reserved.