T - the type of document to insert. This can be of any type for which a Codec is registeredpublic final class InsertOneModel<T> extends WriteModel<T>
| 构造器和说明 |
|---|
InsertOneModel(T document)
Construct a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
T |
getDocument()
Gets the document to insert.
|