Package org.bson.codecs.pojo
Class ClassModel<T>
java.lang.Object
org.bson.codecs.pojo.ClassModel<T>
- Type Parameters:
T- The type of the class the ClassModel represents
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
This model represents the metadata for a class and all its properties.
- Since:
- 3.5
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S> ClassModelBuilder<S> Deprecated.Creates a new Class Model builder instance using reflection.booleanDeprecated.Deprecated.Returns the discriminator key.Deprecated.Gets the value for the discriminator.Deprecated.Returns thePropertyModelmapped as the id property for this ClassModelgetName()Deprecated.Returns the name of the class represented by this ClassModelgetPropertyModel(String propertyName) Deprecated.Gets aPropertyModelby the property name.List<PropertyModel<?>> Deprecated.Returns all the properties on this modelgetType()Deprecated.inthashCode()Deprecated.booleanDeprecated.toString()Deprecated.booleanDeprecated.
-
Method Details
-
builder
Deprecated.Creates a new Class Model builder instance using reflection.- Type Parameters:
S- the type of the class- Parameters:
type- the POJO class to reflect and configure the builder with.- Returns:
- a new Class Model builder instance using reflection on the
clazz.
-
getType
Deprecated.- Returns:
- the backing class for the ClassModel
-
hasTypeParameters
public boolean hasTypeParameters()Deprecated.- Returns:
- true if the underlying type has type parameters.
-
useDiscriminator
public boolean useDiscriminator()Deprecated.- Returns:
- true if a discriminator should be used when storing the data.
-
getDiscriminatorKey
Deprecated.Gets the value for the discriminator.- Returns:
- the discriminator value or null if not set
-
getDiscriminator
Deprecated.Returns the discriminator key.- Returns:
- the discriminator key or null if not set
-
getPropertyModel
Deprecated.Gets aPropertyModelby the property name.- Parameters:
propertyName- the PropertyModel's property name- Returns:
- the PropertyModel or null if the property is not found
-
getPropertyModels
Deprecated.Returns all the properties on this model- Returns:
- the list of properties
-
getIdPropertyModel
Deprecated.Returns thePropertyModelmapped as the id property for this ClassModel- Returns:
- the PropertyModel for the id
-
getName
Deprecated.Returns the name of the class represented by this ClassModel- Returns:
- the name
-
toString
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-