Package | Description |
---|---|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.internal.validator | |
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
org.bson |
Contains the base BSON classes.
|
Modifier and Type | Class and Description |
---|---|
private class |
UpdateCommandMessage.UpdatesValidator |
Modifier and Type | Field and Description |
---|---|
private FieldNameValidator |
CommandProtocol.fieldNameValidator |
private FieldNameValidator |
CommandMessage.validator |
Modifier and Type | Method and Description |
---|---|
private FieldNameValidator |
InsertMessage.createValidator() |
protected FieldNameValidator |
UpdateCommandMessage.getFieldNameValidator() |
protected FieldNameValidator |
InsertCommandMessage.getFieldNameValidator() |
protected FieldNameValidator |
DeleteCommandMessage.getFieldNameValidator() |
protected abstract FieldNameValidator |
BaseWriteCommandMessage.getFieldNameValidator()
Gets the field name validator to apply.
|
FieldNameValidator |
UpdateCommandMessage.UpdatesValidator.getValidatorForField(java.lang.String fieldName) |
Modifier and Type | Method and Description |
---|---|
protected void |
RequestMessage.addCollectibleDocument(BsonDocument document,
BsonOutput bsonOutput,
FieldNameValidator validator)
Appends a document to the message that is intended for storage in a collection.
|
protected <T> void |
RequestMessage.addDocument(BsonDocument document,
BsonOutput bsonOutput,
FieldNameValidator validator)
Appends a document to the message.
|
private <T> void |
RequestMessage.addDocument(T obj,
Encoder<T> encoder,
EncoderContext encoderContext,
BsonOutput bsonOutput,
FieldNameValidator validator,
int maxDocumentSize) |
<T> T |
DefaultServerConnection.command(java.lang.String database,
BsonDocument command,
boolean slaveOk,
FieldNameValidator fieldNameValidator,
Decoder<T> commandResultDecoder) |
<T> T |
Connection.command(java.lang.String database,
BsonDocument command,
boolean slaveOk,
FieldNameValidator fieldNameValidator,
Decoder<T> commandResultDecoder)
Execute the command.
|
<T> void |
DefaultServerConnection.commandAsync(java.lang.String database,
BsonDocument command,
boolean slaveOk,
FieldNameValidator fieldNameValidator,
Decoder<T> commandResultDecoder,
SingleResultCallback<T> callback) |
<T> void |
AsyncConnection.commandAsync(java.lang.String database,
BsonDocument command,
boolean slaveOk,
FieldNameValidator fieldNameValidator,
Decoder<T> commandResultDecoder,
SingleResultCallback<T> callback)
Execute the command asynchronously.
|
Constructor and Description |
---|
CommandMessage(java.lang.String collectionName,
BsonDocument command,
boolean slaveOk,
FieldNameValidator validator,
MessageSettings settings) |
CommandProtocol(java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
Decoder<T> commandResultDecoder) |
Modifier and Type | Class and Description |
---|---|
class |
CollectibleDocumentFieldNameValidator
A field name validator for document that are meant for storage in MongoDB collections.
|
class |
MappedFieldNameValidator
A field name validator that serves as a root validator for a map of validators that are applied to child fields.
|
class |
NoOpFieldNameValidator
A field name validator that treats all fields as valid.
|
class |
UpdateFieldNameValidator
A field name validator for update documents.
|
Modifier and Type | Field and Description |
---|---|
private FieldNameValidator |
MappedFieldNameValidator.defaultValidator |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,FieldNameValidator> |
MappedFieldNameValidator.fieldNameToValidatorMap |
Modifier and Type | Method and Description |
---|---|
FieldNameValidator |
UpdateFieldNameValidator.getValidatorForField(java.lang.String fieldName) |
FieldNameValidator |
NoOpFieldNameValidator.getValidatorForField(java.lang.String fieldName) |
FieldNameValidator |
MappedFieldNameValidator.getValidatorForField(java.lang.String fieldName) |
FieldNameValidator |
CollectibleDocumentFieldNameValidator.getValidatorForField(java.lang.String fieldName) |
Constructor and Description |
---|
MappedFieldNameValidator(FieldNameValidator defaultValidator,
java.util.Map<java.lang.String,FieldNameValidator> fieldNameToValidatorMap)
The default validator will be use to validate all fields whose names are not contained int the fieldNameToValidator map.
|
Constructor and Description |
---|
MappedFieldNameValidator(FieldNameValidator defaultValidator,
java.util.Map<java.lang.String,FieldNameValidator> fieldNameToValidatorMap)
The default validator will be use to validate all fields whose names are not contained int the fieldNameToValidator map.
|
Modifier and Type | Field and Description |
---|---|
private FieldNameValidator |
CommandOperationHelper.CommandProtocolExecutingCallback.fieldNameValidator |
Modifier and Type | Method and Description |
---|---|
private FieldNameValidator |
FindAndUpdateOperation.getValidator() |
private FieldNameValidator |
FindAndReplaceOperation.getValidator() |
Modifier and Type | Method and Description |
---|---|
private static <D,T> T |
CommandOperationHelper.executeWrappedCommandProtocol(java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
Decoder<D> decoder,
Connection connection,
ReadPreference readPreference,
CommandOperationHelper.CommandTransformer<D,T> transformer) |
private static <T> T |
CommandOperationHelper.executeWrappedCommandProtocol(java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
Decoder<T> decoder,
ConnectionSource source,
ReadPreference readPreference) |
(package private) static <T> T |
CommandOperationHelper.executeWrappedCommandProtocol(WriteBinding binding,
java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
Decoder<BsonDocument> decoder,
Connection connection,
CommandOperationHelper.CommandTransformer<BsonDocument,T> transformer) |
(package private) static <D,T> T |
CommandOperationHelper.executeWrappedCommandProtocol(WriteBinding binding,
java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
Decoder<D> decoder,
CommandOperationHelper.CommandTransformer<D,T> transformer) |
(package private) static <T> void |
CommandOperationHelper.executeWrappedCommandProtocolAsync(AsyncWriteBinding binding,
java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
Decoder<BsonDocument> decoder,
AsyncConnection connection,
CommandOperationHelper.CommandTransformer<BsonDocument,T> transformer,
SingleResultCallback<T> callback) |
(package private) static <D,T> void |
CommandOperationHelper.executeWrappedCommandProtocolAsync(AsyncWriteBinding binding,
java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
Decoder<D> decoder,
CommandOperationHelper.CommandTransformer<D,T> transformer,
SingleResultCallback<T> callback) |
private static <D,T> void |
CommandOperationHelper.executeWrappedCommandProtocolAsync(java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
Decoder<D> decoder,
AsyncConnection connection,
ReadPreference readPreference,
CommandOperationHelper.CommandTransformer<D,T> transformer,
SingleResultCallback<T> callback) |
Constructor and Description |
---|
CommandProtocolExecutingCallback(java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
Decoder<D> decoder,
ReadPreference readPreference,
CommandOperationHelper.CommandTransformer<D,R> transformer,
SingleResultCallback<R> callback) |
Modifier and Type | Field and Description |
---|---|
private java.util.Stack<FieldNameValidator> |
AbstractBsonWriter.fieldNameValidatorStack |
Modifier and Type | Method and Description |
---|---|
FieldNameValidator |
NoOpFieldNameValidator.getValidatorForField(java.lang.String fieldName) |
FieldNameValidator |
FieldNameValidator.getValidatorForField(java.lang.String fieldName)
Gets a new validator to use for the value of the field with the given name.
|
Constructor and Description |
---|
AbstractBsonWriter(BsonWriterSettings settings,
FieldNameValidator validator)
Initializes a new instance of the BsonWriter class.
|
BsonBinaryWriter(BsonOutput bsonOutput,
FieldNameValidator validator)
Construct an instance.
|
BsonBinaryWriter(BsonWriterSettings settings,
BsonBinaryWriterSettings binaryWriterSettings,
BsonOutput bsonOutput,
FieldNameValidator validator)
Construct an instance.
|