Uses of Class
org.springframework.data.mongodb.core.schema.TypedJsonSchemaObject
Packages that use TypedJsonSchemaObject
Package
Description
MongoDB-specific JSON schema implementation classes.
-
Uses of TypedJsonSchemaObject in org.springframework.data.mongodb.core.schema
Subclasses of TypedJsonSchemaObject in org.springframework.data.mongodb.core.schemaModifier and TypeClassDescriptionstatic classJsonSchemaObjectimplementation oftype : 'array'schema elements.
Provides programmatic access to schema specifics like range, minItems, maxItems,... via a fluent API producing immutableschema objects.static classJsonSchemaObjectimplementation oftype : 'boolean'schema elements.
Provides programmatic access to schema specifics via a fluent API producing immutableschema objects.static classJsonSchemaObjectimplementation oftype : 'number',bsonType : 'int',bsonType : 'long',bsonType : 'double'andbsonType : 'decimal128'schema elements.
Provides programmatic access to schema specifics like multipleOf, minimum, maximum,... via a fluent API producing immutableschema objects.static classJsonSchemaObjectimplementation oftype : 'object'schema elements.
Provides programmatic access to schema specifics like required, properties, patternProperties,... via a fluent API producing immutableschema objects.static classJsonSchemaObjectimplementation oftype : 'string'schema elements.
Provides programmatic access to schema specifics like minLength, maxLength, pattern,... via a fluent API producing immutableschema objects.Methods in org.springframework.data.mongodb.core.schema that return TypedJsonSchemaObjectModifier and TypeMethodDescriptionTypedJsonSchemaObject.allOf(Collection<JsonSchemaObject> allOf) The field value must match all specified schemas.TypedJsonSchemaObject.anyOf(Collection<JsonSchemaObject> anyOf) The field value must match at least one of the specified schemas.TypedJsonSchemaObject.description(String description) Set the description.TypedJsonSchemaObject.generatedDescription()Auto generate the description if not explicitly set.TypedJsonSchemaObject.notMatch(JsonSchemaObject notMatch) The field value must not match the specified schemas.static TypedJsonSchemaObjectCreate a newJsonSchemaObjectmatching the giventype.static TypedJsonSchemaObjectJsonSchemaObject.of(JsonSchemaObject.Type type) Create a newJsonSchemaObjectof givenJsonSchemaObject.Type.static TypedJsonSchemaObjectTypedJsonSchemaObject.of(JsonSchemaObject.Type... types) Creates newTypedJsonSchemaObjectof given types.TypedJsonSchemaObject.oneOf(Collection<JsonSchemaObject> oneOf) The field value must match exactly one of the specified schemas.TypedJsonSchemaObject.possibleValues(Collection<? extends Object> possibleValues) enumerates all possible values of the field.Methods in org.springframework.data.mongodb.core.schema that return types with arguments of type TypedJsonSchemaObjectModifier and TypeMethodDescriptionConfigure theJsonSchemaObject.Typefor the property by deriving it from the giventype.JsonSchemaProperty.JsonSchemaPropertyBuilder.ofType(JsonSchemaObject.Type type) Configure aJsonSchemaObject.Typefor the property.JsonSchemaProperty.JsonSchemaPropertyBuilder.with(TypedJsonSchemaObject schemaObject) Configure aTypedJsonSchemaObjectfor the property.Methods in org.springframework.data.mongodb.core.schema with parameters of type TypedJsonSchemaObjectModifier and TypeMethodDescriptionJsonSchemaProperty.JsonSchemaPropertyBuilder.with(TypedJsonSchemaObject schemaObject) Configure aTypedJsonSchemaObjectfor the property.