Package com.mongodb.bulk
Class InsertRequest
- java.lang.Object
 - 
- com.mongodb.bulk.WriteRequest
 - 
- com.mongodb.bulk.InsertRequest
 
 
 
- 
@Deprecated public final class InsertRequest extends WriteRequest
Deprecated.A representation of a document to insert.- Since:
 - 3.0
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class com.mongodb.bulk.WriteRequest
WriteRequest.Type 
 - 
 
- 
Constructor Summary
Constructors Constructor Description InsertRequest(BsonDocument document)Deprecated.Construct an instance with the given document. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BsonDocumentgetDocument()Deprecated.Gets the document to insert.WriteRequest.TypegetType()Deprecated.Gets the type of the write. 
 - 
 
- 
- 
Constructor Detail
- 
InsertRequest
public InsertRequest(BsonDocument document)
Deprecated.Construct an instance with the given document.- Parameters:
 document- the document, which may not be null
 
 - 
 
- 
Method Detail
- 
getDocument
public BsonDocument getDocument()
Deprecated.Gets the document to insert.- Returns:
 - the document
 
 
- 
getType
public WriteRequest.Type getType()
Deprecated.Description copied from class:WriteRequestGets the type of the write.- Specified by:
 getTypein classWriteRequest- Returns:
 - the type
 
 
 - 
 
 -