| Package | Description |
|---|---|
| org.springframework.data.mongodb.core |
MongoDB core support.
|
| org.springframework.data.mongodb.core.query |
MongoDB specific query and update support.
|
| org.springframework.data.mongodb.core.schema |
MongoDB-specific JSON schema implementation classes.
|
| org.springframework.data.mongodb.core.validation |
MongoDB schema validation specifics.
|
| Modifier and Type | Method and Description |
|---|---|
CollectionOptions |
CollectionOptions.schema(MongoJsonSchema schema)
Create new
CollectionOptions with already given settings and validationOptions set to given
MongoJsonSchema. |
| Modifier and Type | Method and Description |
|---|---|
Criteria |
Criteria.andDocumentStructureMatches(MongoJsonSchema schema)
Creates a criterion (
$jsonSchema) matching documents against a given structure defined by the
MongoJsonSchema. |
static Criteria |
Criteria.matchingDocumentStructure(MongoJsonSchema schema)
Static factory method to create a
Criteria matching documents against a given structure defined by the
MongoJsonSchema using ($jsonSchema) operator. |
| Modifier and Type | Method and Description |
|---|---|
MongoJsonSchema |
MongoJsonSchema.MongoJsonSchemaBuilder.build()
Obtain the
MongoJsonSchema. |
static MongoJsonSchema |
MongoJsonSchema.of(org.bson.Document document)
Create a new
MongoJsonSchema for a given root Document containing the schema definition. |
static MongoJsonSchema |
MongoJsonSchema.of(JsonSchemaObject root)
Create a new
MongoJsonSchema for a given root object. |
| Modifier and Type | Method and Description |
|---|---|
static Validator |
Validator.schema(MongoJsonSchema schema)
Creates a new
Validator checking documents against the structure defined in MongoJsonSchema. |
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.