Package | Description |
---|---|
org.bson.codecs.pojo |
This package contains classes specific to mapping user POJOs.
|
Modifier and Type | Method and Description |
---|---|
ClassModelBuilder<T> |
ClassModelBuilder.annotations(List<Annotation> annotations)
Sets the annotations for the model
|
static <S> ClassModelBuilder<S> |
ClassModel.builder(Class<S> type)
Creates a new Class Model builder instance using reflection.
|
ClassModelBuilder<T> |
ClassModelBuilder.conventions(List<Convention> conventions)
Sets the conventions to apply to the model
|
ClassModelBuilder<T> |
ClassModelBuilder.discriminator(String discriminator)
Sets the discriminator to be used when storing instances of the modeled type
|
ClassModelBuilder<T> |
ClassModelBuilder.discriminatorKey(String discriminatorKey)
Sets the discriminator key to be used when storing instances of the modeled type
|
ClassModelBuilder<T> |
ClassModelBuilder.enableDiscriminator(boolean discriminatorEnabled)
Enables or disables the use of a discriminator when serializing
|
ClassModelBuilder<T> |
ClassModelBuilder.idPropertyName(String idPropertyName)
Designates a property as the
_id property for this type. |
ClassModelBuilder<T> |
ClassModelBuilder.instanceCreatorFactory(InstanceCreatorFactory<T> instanceCreatorFactory)
Sets the InstanceCreatorFactory for the ClassModel
|
ClassModelBuilder<T> |
ClassModelBuilder.type(Class<T> type)
Sets the type of the model
|
Modifier and Type | Method and Description |
---|---|
void |
Convention.apply(ClassModelBuilder<?> classModelBuilder)
This method applies this Convention to the given ClassModelBuilder
|
Copyright © 2017. All Rights Reserved.